Vary column to sum in SumIf

S

Steph

Hi. Given the following Sumif formula:
=SUMIF(Data!$F$7:$F$1100,$A16,Data!$AA$7:$AA$1100)

Column AA is January results, with AB February, AC March, and so on. Above
each column header (for example, in cell AA1) I have the number of the month
(1,2,3 etc). Then I have a pulldown validation list in A1 with 1 through 12
in it. The goal here it to choose a number from the pulldown and have the
formula update and sumif the proper column. It doesn't seem like that
complicated of a problem, but I can't figure it out! Thanks for you help!
 
M

Max

Steph said:
Hi. Given the following Sumif formula:
=SUMIF(Data!$F$7:$F$1100,$A16,Data!$AA$7:$AA$1100)

Column AA is January results, with AB February, AC March, and so on. Above
each column header (for example, in cell AA1) I have the number of the month
(1,2,3 etc). Then I have a pulldown validation list in A1 with 1 through 12
in it. The goal here it to choose a number from the pulldown and have the
formula update and sumif the proper column. It doesn't seem like that
complicated of a problem, but I can't figure it out! Thanks for you help!

Another way ..

=SUMIF(Data!$F$7:$F$1100,$A16,OFFSET(Data!$AA$7:$AA$1100,,MATCH($A$1,Data!$AA$1:$AL$1,0)-1))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Formula question 2
Mapping strings to integers 6
Need Help with Sumif function 9
SUMIF 1
sumif 1
Using named ranges in a formula 3
SUMIF with multiple columns in sum range 3
Formula assistance column match sum 3

Top