Manipulating SUMIF formulas dealing with array constraints

myers_co

New Member
Joined
Mar 23, 2015
Messages
6
Here is the problem:

I need to be able to drive a SUMIF that is incorporating an array from a combo box as in the attached spreadsheet "Sumif Array Manipulation.xlsx" (sorry, I don't have upload privileges so I copy and paste images)

On the Summary tab you see an example of a combo box located at B2. Its input is from E3:E7 and the selection is stored under the combo box in B2.


-- removed inline image ---


The formula for "Total Sales:" is located in B5 and is constructed with a SUM wrapper around a SUMIF to handle array selections.

Note that when you change the combo box, "Total Sales" reflects the amounts attributable to the appropriate filter for all but "Eastern Region" which is a combination of two reps - hence the array return.

The problem occurs on the selection of the filter that returns the array. I need either to figure out how to edit/create the array that is shown in F4 so that it works like it is supposed to in B5 or how to change the formula in B5 so that it works against the array as enterred in F4.

By the way, the correct answer for the formula in B5 if the combo box is set to "Eastern Region" is shown in B7 which is replacing the index lookup of the combo box return value with the static text that it is supposed to emulate [=SUM(SUMIF(rep,{"Smith, Joe","Jones, John"},sales))].

Here is what the data looks like:


-- removed inline image ---
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Welcome to the board, you posted an invalid link
Try Mr Excel HTML maker to post a clean image of your speadsheet.
Se on my signature how to do it...
 
Upvote 0
Welcome to the board, you posted an invalid link
Try Mr Excel HTML maker to post a clean image of your speadsheet.
Se on my signature how to do it...

I'd love to except security policies prevent me from installing the add-in. Since I can't upload the sample file and I can't attach images, I guess I'm stuck.
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,956
Members
449,057
Latest member
FreeCricketId

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