Return "Invoiced Amt" when "PO Number" matches PO number in multiple columns
Hi there,
Relatively new to SS here. I am trying to return the invoiced amount from sheet 1 when the PO number in sheet 1 matches the PO number in column 1, 2, and 3 in sheet 2.
I am currently using this formula =SUMIF({PO Number}, [PO Number 2024]@row, {Invoiced Amt}) but now the criterion needs to be from 3 columns, not just the one.
Thanks in advance!
Answers
-
Hello @melaniem
Something like this perhaps?
=SUMIFS({Invoiced Amt}, {PO Number}, [PO Number 2024]@row, {PO Number 2}, [PO Number 2024]@row, {PO Number 3}, [PO Number 2024]@row)
https://www.linkedin.com/in/zchrispalmer/
-
Does the PO number need to match in columns 1, 2, AND 3 or would it be a match in 1, 2, OR 3? Is there a single PO column in the source sheet, or does that have multiple PO columns as well?
-
@Paul Newcome the PO number in the source sheet is a single column, and that number needs to match a PO number in columns 1,2, or 3 to return a value.
-
In that case, give this a try:=SUMIF({PO Number}, OR(@cell = [PO Number 2023]@row, @cell = [PO Number 2024]@row, @cell = [PO Number Additional]@row), {Invoiced Amt})I realized after posting that blanks may mess with the above. Below is a modification that should work better:
=SUMIF({PO Number}, OR(@cell = IF([PO Number 2023]@row <> "", [PO Number 2023]@row, "z"), @cell = IF([PO Number 2024]@row <> "", [PO Number 2024]@row, "z"), @cell = IF([PO Number Additional]@row <> "", [PO Number Additional]@row, "z")), {Invoiced Amt})
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 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!