SUMIF with 1 range, 1 criteria, but multiple sum ranges

TheIowaKid

New Member
Joined
Jan 20, 2010
Messages
12
I have spent over an hour looking for a solution and cannot find one so I apologize if this has been answered before. It seems like it should have, but I couldnt find a solution posted. I want to use SUMIF with one range, one criteria which is text, and multiple sum ranges that are not adjacent to each other. Here is what I have tried to use, which of course will not work:

=SUMIF(B2:B21,"Fake Name",(E2:E21,H2:H21,N2:N21,T2:T21,Z2:Z21,AC2:AC21,AF2:AF21,AI2:AI21,AO2:AO21,AQ2:AQ21,AS2:AS21,AY2:AY21,BA2:BA21,BC2:BC21,BE2:BE21,BG2:BG21,BI2:BI21,BK2:BK21,AS2:AS21))

Here is a smaller scale example with the solution I tried and failed. Note that I dont want to do multiple SUMIFS as you can see there are A LOT of ranges.

SUMIF(A2:A6, "Fake Name",(B2:B6, D2:D6, E2:E6)) (this or course does not work, what will?)

Basically if A2:A6 contains the text "Fake Name" Then I would like to add the corresponding sum ranges.

Name Rejected NIGO Rejected IGO Rejected Mnt Rejected
Fake Name 8 5 3 2
Fake Name 6 3 7 0
Same Name 8 5 3 2
Fake Name 1 7 2 9
Same Name 8 5 3 2



Hopefully I have provided enough info here to get someone started! Excel is some fun stuff actually! Thanks for any help that can be provided.


EDIT: I noticed that my data was crunched but it should have 6 rows with 5 columns.
 
Last edited:
The ones that return "" would be a problem, that is not actually blank, it's a text value.

Try making those return 0 instead of "", there are other ways to hide the zeros if you must.
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,586
Messages
6,179,712
Members
452,939
Latest member
WCrawford

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