Calculate totals of two categories within a date range?
I want to display a stacked bar graph in a widget that shows the total amount by month in the "Awarded or Expected Award Date" column broken out into "Funded" and "Submitted". I've included a screenshot of what I'm attempting to do.
I found this formula in another discussion thread and tried to adapt but I know it's missing some pieces. Any help is appreciated!
=COUNTIFS({Award Date}, >=Date(2020, 01,01), {Award Date}, <= Date(2020,01,30))
Best Answer
-
Do you want the count or do you want the sum?
Count "Funded" for Jan. 2020:
=COUNTIFS({Funding Status Column}, "Funded", {Award Date}, AND(IFERROR(MONTH(@cell), 0) = 1, IFERROR(YEAR(@cell), 0) = 2020))
Sum amount for "Funded" for Jan. 2020:
=SUMIFS({Funding Amount Column}, {Funding Status Column}, "Funded", {Award Date}, AND(IFERROR(MONTH(@cell), 0) = 1, IFERROR(YEAR(@cell), 0) = 2020))
Answers
-
Do you want the count or do you want the sum?
Count "Funded" for Jan. 2020:
=COUNTIFS({Funding Status Column}, "Funded", {Award Date}, AND(IFERROR(MONTH(@cell), 0) = 1, IFERROR(YEAR(@cell), 0) = 2020))
Sum amount for "Funded" for Jan. 2020:
=SUMIFS({Funding Amount Column}, {Funding Status Column}, "Funded", {Award Date}, AND(IFERROR(MONTH(@cell), 0) = 1, IFERROR(YEAR(@cell), 0) = 2020))
-
Thanks Paul, that worked!
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!