Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default vlookup lookup_value text

I have a very simple vlookup function that I am using to pull data from
another worksheet. The problem I'm having is that the text I'm referencing as
the lookup_value contains a quotation mark ... 18" Bead Diameter. So, if I
key it in as "18" Bead Diameter" of course it gives me an error. The
correction Excel suggests is "18""BeadDiameter" which is not correct. Can't
figure out how many quotation marks I need and where to put them to make this
work.

Thanks in advance!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup lookup_value text

18" Bead Diameter
Excel suggests is "18""BeadDiameter"


Excel's suggestion has removed the spaces. That will work, just add the
spaces:

=VLOOKUP("18"" Bead Diameter",F1:G10,2,0)

Better yet, use a cell to hold the lookup value:

A1 = 18" Bead Diameter

Then:

=VLOOKUP(A1,F1:G10,2,0)

--
Biff
Microsoft Excel MVP


"natk" wrote in message
...
I have a very simple vlookup function that I am using to pull data from
another worksheet. The problem I'm having is that the text I'm referencing
as
the lookup_value contains a quotation mark ... 18" Bead Diameter. So, if I
key it in as "18" Bead Diameter" of course it gives me an error. The
correction Excel suggests is "18""BeadDiameter" which is not correct.
Can't
figure out how many quotation marks I need and where to put them to make
this
work.

Thanks in advance!!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default vlookup lookup_value text

Ok... got it. I knew it was taking out spaces, but wasn't sure how to
account for the spaces that did belong.

How about this one? 43" - 45" ...

I know it would be better to just reference a cell containing this, but I
can't alter the structure of the worksheet b/c someone else's sheets are fed
from it and I don't want to cause them grief in having to change their
format/formulas. : p

Thanks!!

"T. Valko" wrote:

18" Bead Diameter
Excel suggests is "18""BeadDiameter"


Excel's suggestion has removed the spaces. That will work, just add the
spaces:

=VLOOKUP("18"" Bead Diameter",F1:G10,2,0)

Better yet, use a cell to hold the lookup value:

A1 = 18" Bead Diameter

Then:

=VLOOKUP(A1,F1:G10,2,0)

--
Biff
Microsoft Excel MVP


"natk" wrote in message
...
I have a very simple vlookup function that I am using to pull data from
another worksheet. The problem I'm having is that the text I'm referencing
as
the lookup_value contains a quotation mark ... 18" Bead Diameter. So, if I
key it in as "18" Bead Diameter" of course it gives me an error. The
correction Excel suggests is "18""BeadDiameter" which is not correct.
Can't
figure out how many quotation marks I need and where to put them to make
this
work.

Thanks in advance!!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup lookup_value text

How about this one? 43" - 45" ...

=VLOOKUP("43"" - 45""",F1:G10,2,0)


--
Biff
Microsoft Excel MVP


"natk" wrote in message
...
Ok... got it. I knew it was taking out spaces, but wasn't sure how to
account for the spaces that did belong.

How about this one? 43" - 45" ...

I know it would be better to just reference a cell containing this, but I
can't alter the structure of the worksheet b/c someone else's sheets are
fed
from it and I don't want to cause them grief in having to change their
format/formulas. : p

Thanks!!

"T. Valko" wrote:

18" Bead Diameter
Excel suggests is "18""BeadDiameter"


Excel's suggestion has removed the spaces. That will work, just add the
spaces:

=VLOOKUP("18"" Bead Diameter",F1:G10,2,0)

Better yet, use a cell to hold the lookup value:

A1 = 18" Bead Diameter

Then:

=VLOOKUP(A1,F1:G10,2,0)

--
Biff
Microsoft Excel MVP


"natk" wrote in message
...
I have a very simple vlookup function that I am using to pull data from
another worksheet. The problem I'm having is that the text I'm
referencing
as
the lookup_value contains a quotation mark ... 18" Bead Diameter. So,
if I
key it in as "18" Bead Diameter" of course it gives me an error. The
correction Excel suggests is "18""BeadDiameter" which is not correct.
Can't
figure out how many quotation marks I need and where to put them to
make
this
work.

Thanks in advance!!






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 Question..if text lookup_value do not match with table_arr ldiaz Excel Discussion (Misc queries) 11 June 30th 08 05:35 PM
vlookup lookup_value ATIHelp Excel Worksheet Functions 5 July 18th 07 07:12 AM
Vlookup(lookup_value) TSulit Excel Worksheet Functions 1 February 22nd 07 04:23 PM
vlookup:same lookup_value, different returns Biff Excel Worksheet Functions 2 December 16th 05 01:00 AM
VLOOKUP - dealing with lookup_value differences Cheese Excel Worksheet Functions 1 July 29th 05 11:00 PM


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