Sumproduct/Index/Match for Year to Date and Quarterly data

becca51178

Board Regular
Joined
Feb 19, 2012
Messages
64
I have the following code to show the data for the current month I am analyzing. It shows there are 4 criterias. 1 constant, and 3 options.

Code:
=SUMPRODUCT(--((Table3[CCN]=CCN_Analysis!F3)+(Table3[VP]=CCN_Analysis!F3)+(Table3[Section]=CCN_Analysis!F3)+(Table3[Plant]=CCN_Analysis!F3)),INDEX(Table3[[January]:[December]],,MATCH(CCN_Analysis!A2,Table3[[#Headers],[January]:[December]],0)))

This shows the month the user can choose from a combobox. What I need is a formula that can show Year to Date numbers.


Say if you choose the Month of March to analyze, the above formula will show the values for just the month of March

Another will show all the values for January, February and March. I just can't seem to figure out how to make it work.

Any help would be awesome!

Thanks!

Rebecca
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
This worked for me:

=SUMPRODUCT(((Table3[CCN]=CCN_Analysis!F3)+(Table3[VP]=CCN_Analysis!F3)+(Table3[Section]=CCN_Analysis!F3)+(Table3[Plant]=CCN_Analysis!F3))*(Table3[January]:INDEX(Table3[[January]:[December]],,MATCH(CCN_Analysis!A2,Table3[[#Headers],[January]:[December]],0))))
 
Upvote 0
Thank you so much!

It works like a dream. I knew it was going to be something simple. I have tried just about everything, but that!

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,213,559
Messages
6,114,302
Members
448,564
Latest member
ED38

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