Formula to calculate category totals
I have several expense categories in a dropdown list. I am looking for a formula to calculate totals when a given category is selected. I need it search the column and total all of the amounts listed as "other", "airfare", etc...
thanks,
SGF
Comments
-
Try something along the lines of
=SUMIFS(Amount:Amount, [Expense Category]:[Expense Category], Description@row)
-
Hi Steve,
Try something like this.
Put the formula in a new column or one that isn't included below.
=SUMIF([Expense Category]:[Expense Category]; Description@row; Amount:Amount)
The same version but with the below changes for your and others convenience.
=SUMIF([Expense Category]:[Expense Category], Description@row, Amount:Amount)
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
Did it work?
Have a fantastic week!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Steve:
Please note... Andree is correct that the formula would need to go into a cell that is not being referenced within itself.
A second note: You will see that Andree's formula is laid out differently that mine. They will both work the same way. The difference is that Andree used a SUMIF, and I used a SUMIFS.
Whichever you decide to try is entirely up to you, but it is important to be mindful of the changes in syntax when you add on that S vs going without. My formula with the S removed wouldn't work, and Andree's formula with the S added would also fail.
-
works perfectly!
Thanks!
SGF
-
Excellent!
Happy to help!
Best,
Andrée
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!