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.7K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 468 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 64 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!