sumif with offset match

sh1pley

Board Regular
Joined
Dec 22, 2006
Messages
160
Hi

I have a summary page with monthly date column headings. At the moment I have all the months for 6 years going across the sheet. Below these headings I am doing a simple sumif formula that looks at the relevent column in another sheet.

What I need to do is only show 12 months based on a drop down box and have the sumif formula look at the relevent column.

I believe I can do this with some sort of Sumif(offset(match formula but I cant get this to work?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi

I have a summary page with monthly date column headings. At the moment I have all the months for 6 years going across the sheet. Below these headings I am doing a simple sumif formula that looks at the relevent column in another sheet.

What I need to do is only show 12 months based on a drop down box and have the sumif formula look at the relevent column.

I believe I can do this with some sort of Sumif(offset(match formula but I cant get this to work?
Try something like this...

=SUMIF(A2:A100,"X",INDEX(B2:Z100,,MATCH(A1,B1:Z1,0)))

Where A1 = the variable column header to be matched.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,628
Members
452,933
Latest member
patv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top