Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default error using LOOKUP function

I am getting a #N/A error when using the LOOKUP function in conjunction with
LEFT.

I have a number followed by a letter (e.g., 7442C). I want to compare the
number portion (7442) with a range of numbers (E1:E10), and return the
corresponding description from F1:F10. To drop off the letter portion, I used
LEFT(B5,LEN(B5)-1).

Here's the formula I'm using:
=LOOKUP(LEFT(B5,LEN(B5)-1),E1:E10,F1:F10)
The result is #N/A


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default error using LOOKUP function

If you are comparing a text string with a number, then you wouldn't expect
to get a match. It might be worth trying --LEFT() to coerce the text string
to a number.
--
David Biddulph

"Horatio J. Bilge, Jr." wrote in
message ...
I am getting a #N/A error when using the LOOKUP function in conjunction
with
LEFT.

I have a number followed by a letter (e.g., 7442C). I want to compare the
number portion (7442) with a range of numbers (E1:E10), and return the
corresponding description from F1:F10. To drop off the letter portion, I
used
LEFT(B5,LEN(B5)-1).

Here's the formula I'm using:
=LOOKUP(LEFT(B5,LEN(B5)-1),E1:E10,F1:F10)
The result is #N/A




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default error using LOOKUP function

First of all if you are looking for an exact match it's better to use
VLOOKUP, then if the
E1:E10 are numbers then you need to convert what you parse with left to
numbers since it is text

=VLOOKUP(--LEFT(B5,LEN(B5)-1),E1:F10,2,0)

you might still get errors but then it might be other causes like extra
spaces etc


--


Regards,


Peo Sjoblom


"Horatio J. Bilge, Jr." wrote in
message ...
I am getting a #N/A error when using the LOOKUP function in conjunction
with
LEFT.

I have a number followed by a letter (e.g., 7442C). I want to compare the
number portion (7442) with a range of numbers (E1:E10), and return the
corresponding description from F1:F10. To drop off the letter portion, I
used
LEFT(B5,LEN(B5)-1).

Here's the formula I'm using:
=LOOKUP(LEFT(B5,LEN(B5)-1),E1:E10,F1:F10)
The result is #N/A




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default error using LOOKUP function

Thank you. That solved it.
~ Horatio

"Peo Sjoblom" wrote:

First of all if you are looking for an exact match it's better to use
VLOOKUP, then if the
E1:E10 are numbers then you need to convert what you parse with left to
numbers since it is text

=VLOOKUP(--LEFT(B5,LEN(B5)-1),E1:F10,2,0)

you might still get errors but then it might be other causes like extra
spaces etc


--


Regards,


Peo Sjoblom


"Horatio J. Bilge, Jr." wrote in
message ...
I am getting a #N/A error when using the LOOKUP function in conjunction
with
LEFT.

I have a number followed by a letter (e.g., 7442C). I want to compare the
number portion (7442) with a range of numbers (E1:E10), and return the
corresponding description from F1:F10. To drop off the letter portion, I
used
LEFT(B5,LEN(B5)-1).

Here's the formula I'm using:
=LOOKUP(LEFT(B5,LEN(B5)-1),E1:E10,F1:F10)
The result is #N/A





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
lookup error??? Daniel Excel Worksheet Functions 6 October 18th 07 05:58 PM
Error in lookup function hellotroy Excel Worksheet Functions 0 September 18th 05 11:51 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
Lookup Function Error Jacinthe Excel Worksheet Functions 2 March 10th 05 07:37 AM
Vlookup & Lookup function error Beginner Excel Worksheet Functions 9 January 11th 05 12:37 AM


All times are GMT +1. The time now is 11:33 AM.

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

About Us

"It's about Microsoft Excel"