Formula to calculate Monthly Total

I am trying to get the Total Amount for January only, but I keep getting 0.
My sheet has dates up to Dec, and I created a helper column to filter months, but I can't get it to work. I used this formula:
=SUMIFS([Total Amount]1:[Total Amount]17, Date1:Date17, IFERROR(MONTH(@cell), 0) = [Helper Month Column]@row)
Any idea what I am doing wrong? screenshot attached. Thanks
Best Answer
-
Hi @Shile
The MONTH Function returns months as numerical values (ex. January = 1, not "January"). This means that if you're looking to see if the Date cell has January, you'll want to look for 1.
MONTH(@cell) = 1
Try this instead:
=SUMIFS([Total Amount]1:[Total Amount]17, Date1:Date17, IFERROR(MONTH(@cell), 0) = 1)
You could actually delete out your helper column in this instance! Let me know if that works and makes sense.
Cheers,
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Answers
-
Hi @Shile
The MONTH Function returns months as numerical values (ex. January = 1, not "January"). This means that if you're looking to see if the Date cell has January, you'll want to look for 1.
MONTH(@cell) = 1
Try this instead:
=SUMIFS([Total Amount]1:[Total Amount]17, Date1:Date17, IFERROR(MONTH(@cell), 0) = 1)
You could actually delete out your helper column in this instance! Let me know if that works and makes sense.
Cheers,
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
-
Thanks for helping.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 455 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!