Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Excel GuRu
 
Posts: n/a
Default lookups referring to formulas

I am trying to use the vlookup function to add detail relating to one figure
in a sales part number. I have item needed in the sales part number parsed
using the a right function.

For some items the parsed value is a letter, but for most it is a number.
The vlookup function works well for those fields where the parsed value is a
letter, but when it is a number(1-8 in this case), it doesn't work.

Is there a solution? Or, is this a limitation of the vlookup function
referring to calculated cells?
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

My bet it that you have a mismatch between the parsed value you want to lookup
and the leftmost column in the lookup table.

I think I'd try to match that parsed value to whatever you have in that lookup
column.

If you have real numbers, maybe you could convert your formula:

=vlookup(if(isnumber(-(FormulaThatExtractsValue)),--(FormulaThatExtractsValue),
FormulaThatExtractsValue),sheet2!a:c,2,false)





Excel GuRu wrote:

I am trying to use the vlookup function to add detail relating to one figure
in a sales part number. I have item needed in the sales part number parsed
using the a right function.

For some items the parsed value is a letter, but for most it is a number.
The vlookup function works well for those fields where the parsed value is a
letter, but when it is a number(1-8 in this case), it doesn't work.

Is there a solution? Or, is this a limitation of the vlookup function
referring to calculated cells?


--

Dave Peterson
  #3   Report Post  
RagDyer
 
Posts: n/a
Default

You could try to revise your parsing formula to return "true" numbers:

=IF(ISERROR(--RIGHT(A1)),RIGHT(A1),--RIGHT(A1))
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Excel GuRu" wrote in message
...
I am trying to use the vlookup function to add detail relating to one figure
in a sales part number. I have item needed in the sales part number parsed
using the a right function.

For some items the parsed value is a letter, but for most it is a number.
The vlookup function works well for those fields where the parsed value is a
letter, but when it is a number(1-8 in this case), it doesn't work.

Is there a solution? Or, is this a limitation of the vlookup function
referring to calculated cells?

  #4   Report Post  
Excel GuRu
 
Posts: n/a
Default

Maybe my original post wasn't clear enough. I'm trying to lookup using cell
h9 which contains a formula such as =left(k9,1) If I key in a figure i cell
h9, the lookup formula works, but with the formula calculating, it
doesn't(unless the result of the formula is a letter).

Please let me know if you have any other ideas. We encounter this frequently.

"RagDyer" wrote:

You could try to revise your parsing formula to return "true" numbers:

=IF(ISERROR(--RIGHT(A1)),RIGHT(A1),--RIGHT(A1))
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Excel GuRu" wrote in message
...
I am trying to use the vlookup function to add detail relating to one figure
in a sales part number. I have item needed in the sales part number parsed
using the a right function.

For some items the parsed value is a letter, but for most it is a number.
The vlookup function works well for those fields where the parsed value is a
letter, but when it is a number(1-8 in this case), it doesn't work.

Is there a solution? Or, is this a limitation of the vlookup function
referring to calculated cells?


  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

=left(k9,1)
will return a string--It could be a letter A-Z or it could be a digit, but it's
still a string to excel.

And the number 9 doesn't equal the string '9 (note the apostrophe).

RagDyer's formula checks to see if that left most character is a digit. If it
is, it returns a number. If it's really text, then it returns the letter (or
special character).

So you could modify RadDyer's formula to return the left most character:

=IF(ISERROR(--left(k9,1)),left(k9,1),--left(k9,1))

or even:

=if(isnumber(-left(k9,1)),--left(k9,1),left(k9,1))


Excel GuRu wrote:

Maybe my original post wasn't clear enough. I'm trying to lookup using cell
h9 which contains a formula such as =left(k9,1) If I key in a figure i cell
h9, the lookup formula works, but with the formula calculating, it
doesn't(unless the result of the formula is a letter).

Please let me know if you have any other ideas. We encounter this frequently.

"RagDyer" wrote:

You could try to revise your parsing formula to return "true" numbers:

=IF(ISERROR(--RIGHT(A1)),RIGHT(A1),--RIGHT(A1))
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Excel GuRu" wrote in message
...
I am trying to use the vlookup function to add detail relating to one figure
in a sales part number. I have item needed in the sales part number parsed
using the a right function.

For some items the parsed value is a letter, but for most it is a number.
The vlookup function works well for those fields where the parsed value is a
letter, but when it is a number(1-8 in this case), it doesn't work.

Is there a solution? Or, is this a limitation of the vlookup function
referring to calculated cells?



--

Dave Peterson


  #6   Report Post  
Excel GuRu
 
Posts: n/a
Default

Thank you Dave, the vlookup function now works. I appreciate the
clarification.

"Dave Peterson" wrote:

=left(k9,1)
will return a string--It could be a letter A-Z or it could be a digit, but it's
still a string to excel.

And the number 9 doesn't equal the string '9 (note the apostrophe).

RagDyer's formula checks to see if that left most character is a digit. If it
is, it returns a number. If it's really text, then it returns the letter (or
special character).

So you could modify RadDyer's formula to return the left most character:

=IF(ISERROR(--left(k9,1)),left(k9,1),--left(k9,1))

or even:

=if(isnumber(-left(k9,1)),--left(k9,1),left(k9,1))


Excel GuRu wrote:

Maybe my original post wasn't clear enough. I'm trying to lookup using cell
h9 which contains a formula such as =left(k9,1) If I key in a figure i cell
h9, the lookup formula works, but with the formula calculating, it
doesn't(unless the result of the formula is a letter).

Please let me know if you have any other ideas. We encounter this frequently.

"RagDyer" wrote:

You could try to revise your parsing formula to return "true" numbers:

=IF(ISERROR(--RIGHT(A1)),RIGHT(A1),--RIGHT(A1))
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Excel GuRu" wrote in message
...
I am trying to use the vlookup function to add detail relating to one figure
in a sales part number. I have item needed in the sales part number parsed
using the a right function.

For some items the parsed value is a letter, but for most it is a number.
The vlookup function works well for those fields where the parsed value is a
letter, but when it is a number(1-8 in this case), it doesn't work.

Is there a solution? Or, is this a limitation of the vlookup function
referring to calculated cells?



--

Dave Peterson

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
Why won't formulas obey vertical alignment commands? imoux1 Excel Discussion (Misc queries) 2 December 28th 04 04:45 PM
In Exel 2000, stop the blank cells (with formulas) from printing. tonyoc Excel Discussion (Misc queries) 1 December 10th 04 12:38 AM
delete values in several cells without deleting the formulas dranreb Excel Discussion (Misc queries) 4 December 9th 04 01:15 AM
when displaying formulas, how to start a new line in the same cel. EL Excel Discussion (Misc queries) 1 December 7th 04 07:18 AM
How do I sort a column of formulas in Excel? Gordon Excel Discussion (Misc queries) 0 November 26th 04 03:19 PM


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

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"