0

Excel VLOOKUP is not working though I have followed exact syntax.

=VLOOKUP(C1,A1:B5,1,FALSE)

returns #N/A

enter image description here

Jean-François Corbett
  • 37,420
  • 30
  • 139
  • 188
logan
  • 7,946
  • 36
  • 114
  • 185
  • 1
    You are searching the first column (`1`,`2`,`3`,`4`,`5`) for `a` – Joe Jun 17 '14 at 06:57
  • 1
    possible duplicate of [VLOOKUP giving #N/A and I have no idea why](http://stackoverflow.com/questions/21618359/vlookup-giving-n-a-and-i-have-no-idea-why) – L42 Jun 17 '14 at 07:08

1 Answers1

1

Use this instead:

=INDEX(A1:A5,MATCH(C1,B1:B5,0))

returns 1 which I assume is what you want.

In fact, I would suggest (almost) always using this INDEX-MATCH combo rather than VLOOKUP. It's much more flexible.

Jean-François Corbett
  • 37,420
  • 30
  • 139
  • 188