Totaling cost by month
I am tracking medical case cost, i am trying to auto calculate the cost for the month using a date range. Formula is giving incorrect argument error.
=SUMIFS({date}, AND(@cell <= DATE(2019, 5, 1), @cell >= DATE(2019, 5, 31), {cost}))
someone help tell me where i am going wrong?
Answers
-
=SUMIFS({cost}, {date}, <=DATE(2019, 5, 1), {date}, >=DATE(2019, 5, 31))
I got this to equal 0, which is not right, but had found another formula to try
-
Hi @Kyle Black
You found the issue I was going to point out - with a SUMIFS (plural), you put the range you want to SUM at the start of the formula, versus the end.
A 0 would indicate that the formula is structured correctly, but it either can't find data for that date range or that your {cost} column is being read as text instead of values to SUM. If you're still seeing incorrect results, could you post a screen capture of the referenced sheet (but please block out sensitive data!)
Thanks,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 405 Global Discussions
- 216 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!