Question

I have the following data: enter image description here

I want to match the Date and Value col to the Mapped Date and Value colume:

I am doing this with:

=COUNTIFS($A:$A;E2;$B:$B;F2)

However that does not give me the Higher/Lower colume which I want to map. Basically it should look like the expected results col.

Any suggestions how to map this value?

I appreciate your answer!

PS.: One problem with just using:

=IF(COUNTIFS($A:$A;E8;$B:$B;F8);C8;"")

the value in row 20 gets marked with 0 because the if goes sequentially...

Was it helpful?

Solution

This is an extension of @Peter Albert's answer.

use this one in G2:

=IFERROR(INDEX($C$2:$C$19,MATCH(E2 & F2, $A$2:$A$19 & $B$2:$B$19, 0)),"")

and press CTRL+SHIFT+ENTER to evaluate it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top