SUMIFS Formula not working
= SUMIFS({2024 Expenses | Total Expenses}, {Staff Name | Name}, Name@row, {2024 Expenses | Type}, "STAFF - Medical", {2024 Expenses | YYYYMM}, YYYYMM@row, {2024 Expenses | Status}, "Approved")
Sheet 1
2024 Expenses:
(While Staff Name sheet is another sheet where we kept all Staff Name Details)
This is currently my formula where I'm trying to SUM the total expenses (to put at Medical Used) from different sheet that meets all the criteria listed as below:
Criteria & Range 1: {Staff Name | Name}, [Name]@row
Criteria & Range 2: {2024 Expenses | Type}, "STAFF - Medical"
Criteria & Range 3: {2024 Expenses | YYYYMM}, [YYYYMM]@row
Criteria & Range 4: {2024 Expenses | Status}, "Approved")
The '0' result proven that the formula I used is correct but it should be a total of 150 instead.
Can someone tell me whether which part should I correct?
Answers
-
Hello @Farhana,
I can't say what is not working without seeing all of the ranges you are referencing in your formula, but I would suggest breaking your formula into 4 separate SUMIF() or SUMIFS() formulas for each range and seeing which are returning 0 values, this could help identify where the error is.
= SUMIFS({2024 Expenses | Total Expenses}, {Staff Name | Name}, Name@row)
= SUMIFS({2024 Expenses | Total Expenses}, {2024 Expenses | Type}, "STAFF - Medical")
= SUMIFS({2024 Expenses | Total Expenses}, {2024 Expenses | YYYYMM}, YYYYMM@row)
= SUMIFS({2024 Expenses | Total Expenses}, {2024 Expenses | Status}, "Approved")
Make sure that your ranges and criterion are truly identical, for example whatever make sure the format and column type of {Staff Name | Name} is identical to Name@row.
Hope that helps!
School of Sheets (Smartsheet Partner)
If my answer helped please accept and react w/💡Insightful, ⬆️ Vote Up, ❤️Awesome!
-
Hey!
I decided to pull another criteria which is using Email instead of Name (idk why it didn't work bc both sheet using the same reference Name List) and the formula finally works!
Thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!