Hello,
I've been searching for possible solutions to this particular problem for an hour (seems like every time I solve one thing, I break five others).
What I'm trying to do:
I need to search a report based on two values (for an example lets say 4 and D). They are in two separate columns on the report page. I need to return the value in a third column based on these two criterias. I need to return only the first value in the third column.
For Example:
This is the report
[TABLE="class: grid, width: 500, align: left"]
<TBODY>[TR]
[TD]1
[/TD]
[TD][/TD]
[TD]10.00
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]A
[/TD]
[TD]20.00
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]A
[/TD]
[TD]25.00
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD]0.00
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]D
[/TD]
[TD]40.00
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]D
[/TD]
[TD]5.00
[/TD]
[/TR]
</TBODY>[/TABLE]
So I need to find the first 4 & D combo and only return the 40.00 that is in the third column. Currently I have a SUMIFS as the formula.
But this pulls back 40.00 + 5.00 and returns 45.00. Is there another formula that will allow me to search by both criteria but return the first matching value?
Thank you,
-Alex
I've been searching for possible solutions to this particular problem for an hour (seems like every time I solve one thing, I break five others).
What I'm trying to do:
I need to search a report based on two values (for an example lets say 4 and D). They are in two separate columns on the report page. I need to return the value in a third column based on these two criterias. I need to return only the first value in the third column.
For Example:
This is the report
[TABLE="class: grid, width: 500, align: left"]
<TBODY>[TR]
[TD]1
[/TD]
[TD][/TD]
[TD]10.00
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]A
[/TD]
[TD]20.00
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]A
[/TD]
[TD]25.00
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD]0.00
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]D
[/TD]
[TD]40.00
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]D
[/TD]
[TD]5.00
[/TD]
[/TR]
</TBODY>[/TABLE]
So I need to find the first 4 & D combo and only return the 40.00 that is in the third column. Currently I have a SUMIFS as the formula.
Code:
=SUMIFS(TB!$F:$F,TB!$A:$A,'Source '!B5,TB!$B:$B,'Source '!C5)
But this pulls back 40.00 + 5.00 and returns 45.00. Is there another formula that will allow me to search by both criteria but return the first matching value?
Thank you,
-Alex