0

By checking the value in answer column it should return content from that column here answer is C so it should get Delhi from column C and put it in output column


Sample

enter image description here

Davesexcel
  • 6,896
  • 2
  • 27
  • 42

2 Answers2

1

You can use Index(), Match() combine, which are better than Vlookup(), HLookup().

=INDEX(B2:E2,,MATCH(F2,B1:E1,0))

enter image description here

Harun24hr
  • 30,391
  • 4
  • 21
  • 36
0

As Davesexcel stated, it seems HLOOKUP could work.

Here is a Google Sheet using HLOOKUP with a formula that should work in Excel as well: https://docs.google.com/spreadsheets/d/1LaCqkcLpgiQ1cYZEUBSSYbJkOaht1A34Af1MlZJwIc0/edit?usp=sharing.

The formula I have as an example is:

=hlookup(F2,B1:E2,row())

Doug Naphas
  • 380
  • 2
  • 8