sumif

securityman

Board Regular
Joined
Mar 5, 2005
Messages
128
I've been working on a sumif formula that I can't get to work.
In k13:k32 I have a state name (Mississippi, Alababma, etc).
In I13:I32 I have weights (185,000 - 196,500 etc)
in H13:H32 I have products (Chips, Fuel, etc)

I need a sumif (or other) formula that will give me the sum of all the weights where k13:k32="Mississippi" and h13:h32="Fuel". If that is true then sum I13:I32 that match and divide that answer by cell H5.

I worked on this for over an hour at work this morning and couldn't get it to do right. Any help would be appreciated!!!

Thanks,
Don
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try

=SUMPRODUCT(--(K13:K32="Mississippi"),--(H13:H32="Fuel"),I13:I32)/5
 
Upvote 0
I keep forgetting about sumifs.....didn't even think about sumproduct.....

Thanks guys....I'll try both of these when I get back to work.
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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