Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
HK HK is offline
external usenet poster
 
Posts: 3
Default using vlookup for words w/different indentation

Hi,
I'm trying figure out a way to use a vlookup function when the word in the
table is the same but indented differently. For instance, you're looking for
the price of an 'apple' but the word 'apple' in the table is actually written
' apple' with 4 spaces in front of the word.

I was trying to use the 'Right' function but the number of letters my vary.
Thanks for your inputs.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default using vlookup for words w/different indentation

This might suffice, where we append 4 spaces in front of the lookup value in
A1 to make it consistent with the table array's lookup col :

In say, B1: =VLOOKUP(" "&TRIM(A1),E:F,2,0)

Adapt to suit ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"HK" wrote in message
...
Hi,
I'm trying figure out a way to use a vlookup function when the word in the
table is the same but indented differently. For instance, you're looking
for
the price of an 'apple' but the word 'apple' in the table is actually
written
' apple' with 4 spaces in front of the word.

I was trying to use the 'Right' function but the number of letters my
vary.
Thanks for your inputs.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default using vlookup for words w/different indentation

looking for the *price* of an 'apple'

If the return value is numeric:

D1 = apple

=SUMIF(A1:A10,"*"&D1,B1:B10)

Biff

"HK" wrote in message
...
Hi,
I'm trying figure out a way to use a vlookup function when the word in the
table is the same but indented differently. For instance, you're looking
for
the price of an 'apple' but the word 'apple' in the table is actually
written
' apple' with 4 spaces in front of the word.

I was trying to use the 'Right' function but the number of letters my
vary.
Thanks for your inputs.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
HK HK is offline
external usenet poster
 
Posts: 3
Default using vlookup for words w/different indentation

Thanks for your input, guys.


"Biff" wrote:

looking for the *price* of an 'apple'


If the return value is numeric:

D1 = apple

=SUMIF(A1:A10,"*"&D1,B1:B10)

Biff

"HK" wrote in message
...
Hi,
I'm trying figure out a way to use a vlookup function when the word in the
table is the same but indented differently. For instance, you're looking
for
the price of an 'apple' but the word 'apple' in the table is actually
written
' apple' with 4 spaces in front of the word.

I was trying to use the 'Right' function but the number of letters my
vary.
Thanks for your inputs.




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 a Vlookup adamb2000 Excel Worksheet Functions 4 June 28th 06 10:54 PM
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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