Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default VLLOKUP AND SPACES

I have 2 worksheets in the same workbook where i'm trying to lookup store in
both. In sheet 1 the store is entered normal, in sheet 2 it is preceeded by
' spaces.
I tried using trim(sheet2!range)etc but get a #value! error. I messed
around with the match function trying to get this to work and could when I
used the value in sheet 2 1st, and I had to trim it. when I ran the formula
with sheet 1 1st, even with trim on sheet 2 I got the #value error.
I know I could trim the column in sheet 2 1st and then it would work, but I
can't mess with the format of someone elses worksheet.
Thoughts on how to make this work?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default VLLOKUP AND SPACES

Try this:

Sheet1 A1 = lookup_value: store

Sheet2 some cell in column A = __store

=VLOOKUP("*"&A1,Sheet2!A1:B5,2,0)

Biff

"toolman" wrote in message
...
I have 2 worksheets in the same workbook where i'm trying to lookup store
in
both. In sheet 1 the store is entered normal, in sheet 2 it is preceeded
by
' spaces.
I tried using trim(sheet2!range)etc but get a #value! error. I messed
around with the match function trying to get this to work and could when I
used the value in sheet 2 1st, and I had to trim it. when I ran the
formula
with sheet 1 1st, even with trim on sheet 2 I got the #value error.
I know I could trim the column in sheet 2 1st and then it would work, but
I
can't mess with the format of someone elses worksheet.
Thoughts on how to make this work?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default VLLOKUP AND SPACES

Worked perfect. Thanks

"T. Valko" wrote:

Try this:

Sheet1 A1 = lookup_value: store

Sheet2 some cell in column A = __store

=VLOOKUP("*"&A1,Sheet2!A1:B5,2,0)

Biff

"toolman" wrote in message
...
I have 2 worksheets in the same workbook where i'm trying to lookup store
in
both. In sheet 1 the store is entered normal, in sheet 2 it is preceeded
by
' spaces.
I tried using trim(sheet2!range)etc but get a #value! error. I messed
around with the match function trying to get this to work and could when I
used the value in sheet 2 1st, and I had to trim it. when I ran the
formula
with sheet 1 1st, even with trim on sheet 2 I got the #value error.
I know I could trim the column in sheet 2 1st and then it would work, but
I
can't mess with the format of someone elses worksheet.
Thoughts on how to make this work?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default VLLOKUP AND SPACES

You're welcome. Thanks for the feedback!

Biff

"toolman" wrote in message
...
Worked perfect. Thanks

"T. Valko" wrote:

Try this:

Sheet1 A1 = lookup_value: store

Sheet2 some cell in column A = __store

=VLOOKUP("*"&A1,Sheet2!A1:B5,2,0)

Biff

"toolman" wrote in message
...
I have 2 worksheets in the same workbook where i'm trying to lookup
store
in
both. In sheet 1 the store is entered normal, in sheet 2 it is
preceeded
by
' spaces.
I tried using trim(sheet2!range)etc but get a #value! error. I messed
around with the match function trying to get this to work and could
when I
used the value in sheet 2 1st, and I had to trim it. when I ran the
formula
with sheet 1 1st, even with trim on sheet 2 I got the #value error.
I know I could trim the column in sheet 2 1st and then it would work,
but
I
can't mess with the format of someone elses worksheet.
Thoughts on how to make this work?






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
Vllokup rk0909 Excel Discussion (Misc queries) 2 February 23rd 07 07:59 PM
VLLOKUP formulas mr_teacher Excel Discussion (Misc queries) 4 July 25th 06 08:26 PM
VLLOKUP - more than one result?? luvthavodka Excel Worksheet Functions 3 May 27th 06 06:15 AM
Find last match in vllokup snax500 Excel Discussion (Misc queries) 1 May 4th 05 09:42 PM
Using VLLOKUP Cessna12 Excel Worksheet Functions 1 January 24th 05 02:42 PM


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