Vlookup / choose

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,831
Office Version
  1. 2010
Platform
  1. Windows
A little lost here…why isn’t the formula in C9 working please?

Excel Workbook
ABCDEFGHIJKLMNO
1Norwich CityWatford0206-Aug-1023ReadingScunthorpe United1107-Aug-1012
2Bristol CityMillwall0107-Aug-1003BurnleyNottingham Forest1007-Aug-1010
3Coventry CityPortsmouth1007-Aug-1020Crystal PalaceLeicester City3007-Aug-1032
4Hull CitySwansea City1007-Aug-1020MiddlesbroughIpswich Town1007-Aug-1013
5Preston North EndDoncaster Rovers0207-Aug-1002Leeds UtdDerby County1207-Aug-1012
6QPRBarnsley1007-Aug-1040Cardiff CitySheffield United0108-Aug-1011
7
8Lookup Value
9Coventry CityPortsmouth 
Sheet1
#VALUE!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi,

The VLOOKUPs in C9 returns column C or K that contains numbers.

So you need

=LOOKUP(9.99E+307,CHOOSE({1,2,3},"",VLOOKUP($A9,$I$1:$O$6,3,0),VLOOKUP($A9,$A$1:$G$6,3,0)))

M.
 
Upvote 0
Thanks Marcelo...I had a feeling it was something to do with that...

So if I didn't know if the return was a number or text I'd have to use something like the following formulas for B10 and C10 I assume...

Excel Workbook
ABC
8Lookup Value23
9Crystal PalaceLeicester City3
10Leicester City3
Sheet1
#VALUE!
 
Upvote 0
As an alternative

Array-formula in B9

=IF(COUNTIF($A$1:$J$6,$A$9)=0,"Not Found",INDIRECT(TEXT(MAX(IF($A$1:$J$6=A9,10000*ROW($A$1:$J$6)+COLUMN($A$1:$J$6)+1)),"\R0000\C0000"),0))

Ctrl+Shift+Enter

Drag to C9

M.
 
Upvote 0
Maybe I misunderstood your req'ts but do you need to get so technical here. Wouldn't the below serve for both numbers or text?
=IFERROR(VLOOKUP($A9,$A$1:$G$6,3,0),VLOOKUP($A9,$I$1:$O$6,3,0))
 
Upvote 0
Ah apologies. Well it's still basically the same idea.

=IF(ISERROR(VLOOKUP(A9,A1:G6,3,0)),VLOOKUP(A9,I1:O6,3,0),VLOOKUP(A9,A1:G6,3,0))
 
Upvote 0

Forum statistics

Threads
1,215,432
Messages
6,124,858
Members
449,194
Latest member
HellScout

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top