Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Marc
 
Posts: n/a
Default =right and =vlookup

Hello -

I've extracted the right character from a list of prices ($12.99 my result
is 9). Now when I do a vlookup using a table array in which I have typed
1-9, I get N/A instead of the result column to which I point. I've tried
changing all of the formats to number, general, and text, but I can't seem to
get it.

Thanks for any help.

Marc
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Marc,

It is probably because you are now comparing a text value to a numeric
value. Try converting the lookup value, something like

=VLOOKUP(VALUE(B14),E14:F16,2,FALSE)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Marc" wrote in message
...
Hello -

I've extracted the right character from a list of prices ($12.99 my result
is 9). Now when I do a vlookup using a table array in which I have typed
1-9, I get N/A instead of the result column to which I point. I've tried
changing all of the formats to number, general, and text, but I can't seem

to
get it.

Thanks for any help.

Marc



  #3   Report Post  
Ron Coderre
 
Posts: n/a
Default

Instead of RIGHT(some_cell,1), use this variation:
--RIGHT(some_cell,1)

(that's 2 minus signs in front)

Does that hellp?

Ron


  #4   Report Post  
Marc
 
Posts: n/a
Default

Ron -

Both your and Bob's suggestions work! I appreciate the quick feedback.

Marc

"Ron Coderre" wrote:

Instead of RIGHT(some_cell,1), use this variation:
--RIGHT(some_cell,1)

(that's 2 minus signs in front)

Does that hellp?

Ron



  #5   Report Post  
Marc
 
Posts: n/a
Default

Bob -
Both you and Ron gave excellent, working suggestions. Thank you very much.
Marc

"Bob Phillips" wrote:

Marc,

It is probably because you are now comparing a text value to a numeric
value. Try converting the lookup value, something like

=VLOOKUP(VALUE(B14),E14:F16,2,FALSE)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Marc" wrote in message
...
Hello -

I've extracted the right character from a list of prices ($12.99 my result
is 9). Now when I do a vlookup using a table array in which I have typed
1-9, I get N/A instead of the result column to which I point. I've tried
changing all of the formats to number, general, and text, but I can't seem

to
get it.

Thanks for any help.

Marc




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 Rao Ratan Singh Excel Discussion (Misc queries) 2 April 25th 05 05:55 PM


All times are GMT +1. The time now is 07:49 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"