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

I'm trying to lookup a value where my lookup_values contain extra text.

e.g.

lookup_values = "Los Angeles, CA TOTAL

the table array will have Los Angeles, CA but not the word "TOTAL"

so, i'm lost somewhere at the beginning of the function. I know that i need
to remove the last six characters from my lookup_value, i'm not sure how.

please help.

thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default vlookup removing characters

Ryan.

Use the TRUE switch

=VLOOKUP("Los Angeles, CA TOTAL",$A$1:$B$17,2,TRUE)

or if your lookup value is in a cell (say) c1

=VLOOKUP(LEFT(C1,LEN(C1)-6),$A$1:$B$17,2,FALSE)

Mike



"ryan" wrote:

I'm trying to lookup a value where my lookup_values contain extra text.

e.g.

lookup_values = "Los Angeles, CA TOTAL

the table array will have Los Angeles, CA but not the word "TOTAL"

so, i'm lost somewhere at the beginning of the function. I know that i need
to remove the last six characters from my lookup_value, i'm not sure how.

please help.

thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 124
Default vlookup removing characters

perfect!! I get scared of the TRUE switch, so I tend to avoid it, but the
second option works great.

thank you much!!

"Mike H" wrote:

Ryan.

Use the TRUE switch

=VLOOKUP("Los Angeles, CA TOTAL",$A$1:$B$17,2,TRUE)

or if your lookup value is in a cell (say) c1

=VLOOKUP(LEFT(C1,LEN(C1)-6),$A$1:$B$17,2,FALSE)

Mike



"ryan" wrote:

I'm trying to lookup a value where my lookup_values contain extra text.

e.g.

lookup_values = "Los Angeles, CA TOTAL

the table array will have Los Angeles, CA but not the word "TOTAL"

so, i'm lost somewhere at the beginning of the function. I know that i need
to remove the last six characters from my lookup_value, i'm not sure how.

please help.

thanks!

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
removing characters DEI[_2_] Excel Discussion (Misc queries) 7 April 29th 08 09:02 PM
Removing characters Maksko Excel Discussion (Misc queries) 8 November 3rd 06 11:26 AM
Removing characters Maksko Excel Discussion (Misc queries) 7 October 19th 06 02:26 PM
Removing characters Tomsriv Excel Worksheet Functions 2 August 14th 06 11:54 PM
Removing blank characters ? bvinternet Excel Discussion (Misc queries) 2 July 24th 05 09:15 AM


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