Reputation: 135
I have a table with data like this
How to insert value to C10 base on A10&B10? And C11 base on A11 & B11 too?
Upvotes: 0
Views: 55
Reputation: 1
Use this formula to get the desired result:
INDIRECT(ADDRESS(MATCH($A$10,$B:$B,0),MATCH($B$10,$2:$2,0)))
Upvotes: 0
Reputation: 152595
This is a simple INDEX/MATCH/MATCH:
=INDEX(A:D,MATCH(A10,B:B,0),MATCH(B10,$2:$2,0))
Upvotes: 0
Reputation: 246
One way is to insert an if function into your vlookup.
VLOOKUP(A10,B3:D6,IF(B10="x",2,3))
Upvotes: 0