SUMIF function usually works, but this time...

aherzog

New Member
Joined
May 27, 2015
Messages
33
HELP with SUMIF function....

I'm trying to make a budget sheet. I want everything in the F column that says a keyword, like "food", to calculate the price I paid for that in cell D.

I have done this function before in other excel workbooks and it is fine. For some reason, it won't work on this one and I get an error message. It says the first cell is empty, or something is wrong from there?

Any ideas on why I'm getting this error message when I have similar workbooks with no issue using this format and layout?
Screen Shot 2020-02-02 at 2.48.30 PM.png
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I think you meant column H (or I) that is "food" (and not column F)

I didn't have a problem with (placed in K column and filled down):
Code:
=SUMIF($H$5:$H$15,L5,$D$5:$D$15)

as long as column D was formatted using a custom format of: 0.00 kr;;-
 
Upvote 0
I think you meant column H (or I) that is "food" (and not column F)

I didn't have a problem with (placed in K column and filled down):
Code:
=SUMIF($H$5:$H$15,L5,$D$5:$D$15)

as long as column D was formatted using a custom format of: 0.00 kr;;-
To be clear, I forgot to mention.... column H is a replica of column I but is instead a drop down. Are you suggesting I should try to add some $ ?
 
Upvote 0
If you need to sometimes pick up the values in column C, consider this ARRAY FORMULA:
Code:
=SUM(($C$5:$C$15+$D$5:$D$15)*(--($H$5:$H$15=L5)))
 
Upvote 0
If you need to sometimes pick up the values in column C, consider this ARRAY FORMULA:
Code:
=SUM(($C$5:$C$15+$D$5:$D$15)*(--($H$5:$H$15=L5)))

Good news... I got the error code to go away. However, the number still shows up as 0. I noticed one of the cells was blank so I filled it with 0 and it may the total zero though, for the whole row. The goal is to have every row which is labeled "Food" to Sum all of them and add the total from their corresponding amount in column D to the SUMIF function. Does that make sense? So then why are they showing up as 0 still?
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
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