ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Strange Vlookup problem (https://www.excelbanter.com/excel-worksheet-functions/63910-strange-vlookup-problem.html)

peter.thompson

Strange Vlookup problem
 

I have an array that has months in the first coumn (i.e.
January,February etc) and a number in the next column representing the
month (i.e. 1,2, etc)

I have a cell in the same worksheet that returns a specific month from
another worksheet e.g. January.

When I do a Vlookup on "January" i get spurious results such as 8
instead of 1

Any idea what's going on here??

Cheers

Peter


--
peter.thompson
------------------------------------------------------------------------
peter.thompson's Profile: http://www.excelforum.com/member.php...o&userid=29686
View this thread: http://www.excelforum.com/showthread...hreadid=499270


Peo Sjoblom

Strange Vlookup problem
 
1. Use exact match vlookup(lookup,Table,2,false)
2 make sure that there is a match by comparing 2 cells
=lookup=cell_that_should_match
should return TRUE, the reason can be one is formatted date mmmm returns
January and the other is text

--
Regards,

Peo Sjoblom

(No private emails please)


"peter.thompson"
<peter.thompson.21cogb_1136781302.7192@excelforu m-nospam.com wrote in
message news:peter.thompson.21cogb_1136781302.7192@excelfo rum-nospam.com...

I have an array that has months in the first coumn (i.e.
January,February etc) and a number in the next column representing the
month (i.e. 1,2, etc)

I have a cell in the same worksheet that returns a specific month from
another worksheet e.g. January.

When I do a Vlookup on "January" i get spurious results such as 8
instead of 1

Any idea what's going on here??

Cheers

Peter


--
peter.thompson
------------------------------------------------------------------------
peter.thompson's Profile:
http://www.excelforum.com/member.php...o&userid=29686
View this thread: http://www.excelforum.com/showthread...hreadid=499270



peter.thompson

Strange Vlookup problem
 

The exact match fixed it up !

Thanks Peo

Peter


--
peter.thompson
------------------------------------------------------------------------
peter.thompson's Profile: http://www.excelforum.com/member.php...o&userid=29686
View this thread: http://www.excelforum.com/showthread...hreadid=499270



All times are GMT +1. The time now is 02:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com