SUMIFS with MULTIPLE INDEX RANGES ROLL UP AND DRILL DOWN

Grimm127

Board Regular
Joined
Aug 17, 2011
Messages
132
Hi ALL,

I am currently using this formula
=SUMIFS(INDEX('2018A'!U:AF,0,$BG$8),INDEX('2018A'!A:H,0,$BG$10),$BF$10,INDEX('2018A'!A:H,0,$BG$11),$BF$11,INDEX('2018A'!A:H,0,$BG$12),$BF$12,'2018A'!J:J,$C$7)/1000
AKA - SUMIFS((MONTH COLUMN, MONTH ID),(REGION COULMN,REGION ID),(SUB-REGION COULMN,SUB-REGION ID),(TERMINAL COULMN, TERMINAL ID), (ACCOUNT COULMN, REVENUE ID)

THE ID'S ARE SELECTED VIA DROP DOWN COMBO BOXES. SO WHEN ALL MY DROP DOWN FIELDS ARE POPULATED THEN I GET THE DESIRED RESULT.
HOWEVER, HERE IS THE RUB. WHEN I ONLY WANT TO SUM JUST THE TWO OF THE THREE (REGION, SUB-REGION). MAKING THE THIRD DROP DOWN FIELD EQUAL TO "ALL" I GET A #VALUE ! ERROR. MONTH AND ACCOUNT ARE CONSTANTS AND ALWAYS HAVE A VALUE.

QUESTION, HOW CAN I GET THIS FORMULA TO SUMIFS AND SOMEHOW IGNORE THE THIRD PORTION AND ULTAIMATLEY THE 2ND PORTION AS WELL OF THE FORMULA SO I CAN GET THE DESIRED RETURN? THE IDEA IS A ROLL UP TOTAL AND DRILLING DOWN TO A TERMINAL LEVEL

THANK YOU IN ADVANCE
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
You may need to implement two different formulas based on the "ALL" possibility, where If ALL use SUMIFS without that condition.

I believe a Pivot Table summary using SLICERS in place of your Combo boxes should be considered a possible solution.
 
Upvote 0
Thank you for your reply. I am not at all familiar with slicers. is there a link I can go to where I can familiarize myself about slicers?

Best regards
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,536
Members
449,037
Latest member
tmmotairi

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