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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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