SUMIF with additional parameter
On one sheet I show PO#, Total amount USD, and the status of Approval. On a different sheet, I want to add up the "Total Amount USD" for each PO, but only if the approval column is showing "Approved."
I know the right SUMIF formula: =SUMIF({PO}, [PO Number]@row, {Total Amount USD}) but I don't know how to add in the parameter to only add if {{Approval}} = "Approved"
Thanks in advance.
Best Answer
-
@JLen Sorry, I misunderstood the solution you were creating, try this:
=SUMIFS({Total Amount USD}, {Approval}, "Approved", {PO #}, PO)
The SUMIFS formula allows you to add additional criteria, such as the "Approved" status and the PO #.
Answers
-
Place this formula in your metric sheet and create the cross-sheet references:
=INDEX(COLLECT({Total Amount USD}, {PO#}, PO#@row, {Approval}, "Approved"), 1)
-
First, thank you, @ShelbyWarren - this works. However, when the {Approval} column is anything other "Approved" then I get an error: Invalid Value. There could be situations where 3 invoices for the same PO are approved but the fourth is not. How do adjust my formula to only count the invoice totals where the approval status is "approved" without getting an invalid value?
-
@JLen Sorry, I misunderstood the solution you were creating, try this:
=SUMIFS({Total Amount USD}, {Approval}, "Approved", {PO #}, PO)
The SUMIFS formula allows you to add additional criteria, such as the "Approved" status and the PO #.
-
@ShelbyWarren - thank you so much. This works! I had a SUMIFs but I had the syntax wrong. Such a silly mistake - thank you for steering me in the right direction!
-
Glad it worked out 😀
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 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!