Help with SUMIFS

chrono2483

Board Regular
Joined
Aug 23, 2014
Messages
164
Office Version
  1. 2016
Hello,

I am working with a SUMIFS formula, where I want to target specific words in Col G (total of 40+ different words), and be able to reference their corresponding value in Col C, and add them up to give a total value. However, it always returns a 0. The formatting is in [h]:mm.

I use a similar SUMIF, with different words using the same columns and formatting and it works and returns the total value. I verified that the values in Col C are actually numbers, by using =ISNUMBER().

Here is a condensed version of the formula, using only three specific words, yet it still returns 0.

Formula: =SUMIFS(Data!C:C, Data!G:G,"*SNACK*", Data!G:G,"*LUNCH*", Data!G:G,"*PAUSE*")

Any reason why the SUMIF works, but SUMIFS does not?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
The SUMIFS criteria arguments are like AND statements. All need to be true in order for it to add them. If you want to add when the values contain snack OR Lunch OR Pause, you will need to do SUMIF function for SNACK + sumif function for lunch, etc.
 
Upvote 0
Hello,

I am working with a SUMIFS formula, where I want to target specific words in Col G (total of 40+ different words), and be able to reference their corresponding value in Col C, and add them up to give a total value. However, it always returns a 0. The formatting is in [h]:mm.

I use a similar SUMIF, with different words using the same columns and formatting and it works and returns the total value. I verified that the values in Col C are actually numbers, by using =ISNUMBER().

Here is a condensed version of the formula, using only three specific words, yet it still returns 0.

Formula: =SUMIFS(Data!C:C, Data!G:G,"*SNACK*", Data!G:G,"*LUNCH*", Data!G:G,"*PAUSE*")

Any reason why the SUMIF works, but SUMIFS does not?

Try rather:

=SUM(SUMIFS(Data!C:C, Data!G:G,{"*SNACK*","*LUNCH*","*PAUSE*"}))
 
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,007
Members
452,374
Latest member
keccles

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