Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default #n/a result for vlookup


In the data below I attempt to find items in column C and return date in
column B
using =VLOOKUP(C2, A9:C11, 2, FALSE)

A B C
1 NMR-2438 2/6/08 21098
2 NMR-2439 2/13/08 D817
3 NMR-2467 2/15/08 070321E

Problem is that column C type is 1 (number) or 2 (text).
I need then to convert C data to text, like C2&"", or text(C2, "").
But then vlookup needs to look in column C and covert at the time of search.

Is there a way to write the vlookup to do both value to lookup and range
value conversion to text?

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default #n/a result for vlookup

Try using:

TEXT(C2,"#")

HTH,
Paul

--

"adimar" wrote in message
...

In the data below I attempt to find items in column C and return date in
column B
using =VLOOKUP(C2, A9:C11, 2, FALSE)

A B C
1 NMR-2438 2/6/08 21098
2 NMR-2439 2/13/08 D817
3 NMR-2467 2/15/08 070321E

Problem is that column C type is 1 (number) or 2 (text).
I need then to convert C data to text, like C2&"", or text(C2, "").
But then vlookup needs to look in column C and covert at the time of
search.

Is there a way to write the vlookup to do both value to lookup and range
value conversion to text?

Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default #n/a result for vlookup

You're using VLOOKUP which searches for a value in the first column of your
specified table and then returns a value in the specified colunm of that
table.

I think you want to use LOOKUP instead.
Try this:

=LOOKUP(C2,C9:C11,B9:B11)

HTH,
Paul

--

"PCLIVE" wrote in message
...
Try using:

TEXT(C2,"#")

HTH,
Paul

--

"adimar" wrote in message
...

In the data below I attempt to find items in column C and return date in
column B
using =VLOOKUP(C2, A9:C11, 2, FALSE)

A B C
1 NMR-2438 2/6/08 21098
2 NMR-2439 2/13/08 D817
3 NMR-2467 2/15/08 070321E

Problem is that column C type is 1 (number) or 2 (text).
I need then to convert C data to text, like C2&"", or text(C2, "").
But then vlookup needs to look in column C and covert at the time of
search.

Is there a way to write the vlookup to do both value to lookup and range
value conversion to text?

Thank you.





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default #n/a result for vlookup

I copied all data from the text below, imported to new .xls, converted text
to columns, re-typed all vlookup flavors and lookup version and...

The "#" doesn't work...

The lookup version fails on data 070321E (C3).

Thanks.


"PCLIVE" wrote:

You're using VLOOKUP which searches for a value in the first column of your
specified table and then returns a value in the specified colunm of that
table.

I think you want to use LOOKUP instead.
Try this:

=LOOKUP(C2,C9:C11,B9:B11)

HTH,
Paul

--

"PCLIVE" wrote in message
...
Try using:

TEXT(C2,"#")

HTH,
Paul

--

"adimar" wrote in message
...

In the data below I attempt to find items in column C and return date in
column B
using =VLOOKUP(C2, A9:C11, 2, FALSE)

A B C
1 NMR-2438 2/6/08 21098
2 NMR-2439 2/13/08 D817
3 NMR-2467 2/15/08 070321E

Problem is that column C type is 1 (number) or 2 (text).
I need then to convert C data to text, like C2&"", or text(C2, "").
But then vlookup needs to look in column C and covert at the time of
search.

Is there a way to write the vlookup to do both value to lookup and range
value conversion to text?

Thank you.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default #n/a result for vlookup

This is because the lookup range needs to be in ascending order.

Try this alternative:
=INDIRECT("B" & MATCH(C1,C9:C11,0)+8)



--

"adimar" wrote in message
...
I copied all data from the text below, imported to new .xls, converted text
to columns, re-typed all vlookup flavors and lookup version and...

The "#" doesn't work...

The lookup version fails on data 070321E (C3).

Thanks.


"PCLIVE" wrote:

You're using VLOOKUP which searches for a value in the first column of
your
specified table and then returns a value in the specified colunm of that
table.

I think you want to use LOOKUP instead.
Try this:

=LOOKUP(C2,C9:C11,B9:B11)

HTH,
Paul

--

"PCLIVE" wrote in message
...
Try using:

TEXT(C2,"#")

HTH,
Paul

--

"adimar" wrote in message
...

In the data below I attempt to find items in column C and return date
in
column B
using =VLOOKUP(C2, A9:C11, 2, FALSE)

A B C
1 NMR-2438 2/6/08 21098
2 NMR-2439 2/13/08 D817
3 NMR-2467 2/15/08 070321E

Problem is that column C type is 1 (number) or 2 (text).
I need then to convert C data to text, like C2&"", or text(C2, "").
But then vlookup needs to look in column C and covert at the time of
search.

Is there a way to write the vlookup to do both value to lookup and
range
value conversion to text?

Thank you.









  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default #n/a result for vlookup


This one work. Thank you.

"PCLIVE" wrote:

This is because the lookup range needs to be in ascending order.

Try this alternative:
=INDIRECT("B" & MATCH(C1,C9:C11,0)+8)



--

"adimar" wrote in message
...
I copied all data from the text below, imported to new .xls, converted text
to columns, re-typed all vlookup flavors and lookup version and...

The "#" doesn't work...

The lookup version fails on data 070321E (C3).

Thanks.


"PCLIVE" wrote:

You're using VLOOKUP which searches for a value in the first column of
your
specified table and then returns a value in the specified colunm of that
table.

I think you want to use LOOKUP instead.
Try this:

=LOOKUP(C2,C9:C11,B9:B11)

HTH,
Paul

--

"PCLIVE" wrote in message
...
Try using:

TEXT(C2,"#")

HTH,
Paul

--

"adimar" wrote in message
...

In the data below I attempt to find items in column C and return date
in
column B
using =VLOOKUP(C2, A9:C11, 2, FALSE)

A B C
1 NMR-2438 2/6/08 21098
2 NMR-2439 2/13/08 D817
3 NMR-2467 2/15/08 070321E

Problem is that column C type is 1 (number) or 2 (text).
I need then to convert C data to text, like C2&"", or text(C2, "").
But then vlookup needs to look in column C and covert at the time of
search.

Is there a way to write the vlookup to do both value to lookup and
range
value conversion to text?

Thank you.








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP #N/A result Joe M. Excel Discussion (Misc queries) 2 July 25th 07 11:29 PM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
vlookup - more than one result Heine Excel Worksheet Functions 2 March 21st 07 04:04 PM
vlookup shows result one cell above the expected result Marie Excel Worksheet Functions 7 November 14th 06 02:52 AM
vlookup based on random result returns incorrect result rickat Excel Worksheet Functions 1 December 6th 05 01:16 PM


All times are GMT +1. The time now is 07:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"