VLOOKUP

ds_robb

Board Regular
Joined
Aug 25, 2002
Messages
73
Has anyone else come across a problem in Excel 2002 where VLOOKUP appears to return the wrong results?. I have two columns (Client and Project):

A1 B1
CLIENT A PRO0001
CLIENT B PRO0002
CLIENT C PRO0003
CLIENT D PRO0004
CLIENT E PRO0005

The following VLOOKUP is used

VLOOKUP(C1,A1:B4,2,TRUE) and seems to work most of the time (C1 by the way is a drop down list complied from A1:A5).

But when I select CLIENT B - nothing is returned for the lookup and when I select CLIENT D - I get PRO00002 which should be for B.... anyone seen anything like this?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
On 2002-08-31 14:05, ds_robb wrote:
Has anyone else come across a problem in Excel 2002 where VLOOKUP appears to return the wrong results?. I have two columns (Client and Project):

A1 B1
CLIENT A PRO0001
CLIENT B PRO0002
CLIENT C PRO0003
CLIENT D PRO0004
CLIENT E PRO0005

The following VLOOKUP is used

VLOOKUP(C1,A1:B4,2,TRUE) and seems to work most of the time (C1 by the way is a drop down list complied from A1:A5).

But when I select CLIENT B - nothing is returned for the lookup and when I select CLIENT D - I get PRO00002 which should be for B.... anyone seen anything like this?

Switch to:

VLOOKUP(C1,A1:B4,2,0)

where 0 is read by Excel as FALSE (1 as TRUE).
This message was edited by Aladin Akyurek on 2002-08-31 14:07
 
Upvote 0
Sorry, re-read the VLOOKUP Syntax properly this time and TRUE should be FALSE as the list is not alphabetically sorted... sorry
 
Upvote 0

Forum statistics

Threads
1,214,817
Messages
6,121,717
Members
449,050
Latest member
MiguekHeka

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