SUMIF formula for Criteria that is a range

jlyn123

New Member
Joined
Jan 24, 2018
Messages
48
Office Version
  1. 2016
Is there a good sumif formula or a different formula that would be good to use for a range of criteria and the criteria is all different but specific to what totals I what pulled out of a larger listing?

Thanks!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Are you wanting to sum different categories, all at once? if so, you can use a helper column to determine which category each one falls in, tally them up, then show the sums of each category.
 
Upvote 0
You mean like this?


Excel 2010
ABCDEFG
1A927A
2B1B
3C7
4D1
5E11
6F6
7A12
8B5
Sheet1
Cell Formulas
RangeFormula
E1{=SUM(SUMIF(A1:B8,G1:G2,B1:B8))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
looks like you got it. I use a similar code in vba to tally all like items, then remove all duplicates. the result is a total of each unique item. One advantage of doing this through vba is you can use an obscure column to get the info, then delete the column afterwards. I use mine to update all A's with 21, and all B's with 6, then i remove all duplicate A's and B's = tally of each item. I can lookup the code tomorrow if you like.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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