Sumifs formula not working

Groovy Chick

Board Regular
Joined
Oct 10, 2017
Messages
75
Office Version
  1. 2016
Platform
  1. Windows
Hi, I have a spreadsheet with one tab called 2022 lost days, image below. Month starts in column D. On another tab called DaysLost I want to calculate the number of lost days per month against month, blue/white, on/off site. My formula is =SUMIFS('2022 Lost Days'!I$3:I$52,'2022 Lost Days'!D$3:D$52,”January”,'2022 Lost Days'!O$3:O$52,”Blue”,'2022 Lost Days'!Q$3:Q$52,”On Site”)
So I am using this for the below data but I am getting a zero value back but it should be 8. The month column equals the event date column so has a formula in it, the days column is return to work minus start date and blue and off site columns are data validation.
I don't understand why it isn't working. Can anyone help? Thank you.

MonthEvent DateStart DateReturn to work dateDaysOn/Off Site
January
01/01/2022​
07/01/202209/01/20222BlueOff Site
February
01/02/2022​
02/02/202208/02/20226BlueOff Site
January
15/01/2022​
22/02/202228/02/20226BlueOff Site
February
01/02/2022​
03/03/202205/03/20222BlueOff Site
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
What is the formula in the Month column?
 
Upvote 0
Formula in month column is =E3 and I formatted it as mmmm so returns the month in text format.
 
Upvote 0
Then that's the problem, the cell format does not change the value of the cell, just the way it's displayed.
use
Excel Formula:
=text(e3,"mmmm")
 
Upvote 0
In that case you need to check the rest of your data. Especially check for leading/trailing spaces.
 
Upvote 0
In your SUMIFS() formula, your 3rd criteria is "On Site" but all of the data in your example is "Off Site"

So the answer would be zero. Try changing your "Off Site" values in the table to "On Site" - does the formula work then?
 
Upvote 0
Thanks very much. No, formula still not working. There was a space after off site in the validation. Also, the month needed formatting to text. However, done that and still showing value as zero. Very frustrating.
 
Upvote 0
The formula itself is fine, as can be seen in L3 & L4 below, so there is something wrong with your data.
+Fluff 1.xlsm
ABCDEFGHIJKLMNOPQ
1
2MonthEvent DateStart DateReturn to work dateDaysOn/Off Site
3January01/01/202207/01/202209/01/202226BlueOff Site
4February01/02/202202/02/202208/02/202262BlueOff Site
5January15/01/202222/02/202228/02/20226BlueOn Site
6February01/02/202203/03/202205/03/20222BlueOn Site
7
Data
Cell Formulas
RangeFormula
L3L3=SUMIFS(I$3:I$52,D$3:D$52,"January",O$3:O$52,"Blue",Q$3:Q$52,"On Site")
L4L4=SUMIFS(I$3:I$52,D$3:D$52,"February",O$3:O$52,"Blue",Q$3:Q$52,"On Site")
D3:D6D3=TEXT(E3,"mmmm")
I3:I6I3=H3-G3
 
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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