Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 06-29-2009, 03:11 AM
RyanF RyanF is offline
Registered User
 
Join Date: 16 Jun 2009
Location: Pretoria, South Africa
MS Office Version:Excel 2003
Posts: 30
RyanF is becoming part of the community
Text string closest match lookup not using vlookup true

Please Register to Remove these Ads

Hi all

I am trying to find a formula to find closest match on a text string using index match preferably and vlookup true so the data does not need to be altered.

I know the formula using index match to match closest amounts is =INDEX($H$2:$K$60,MATCH(A2&C2,$H$2:$H$60&$J$2:$J$61,0),1) entered as an array.
What would be the equivalent to look up closest text match?

I've attached a worksheet were I would be trying to lookup the vehicle type on sheet one column D to closest match on sheet two column E.


Appreciate any help.
Attached Files
File Type: xlsx Book4.xlsx (359.7 KB, 18 views)
Reply With Quote
  #2  
Old 07-01-2009, 09:12 AM
martindwilson's Avatar
martindwilson martindwilson is online now
Forum Guru
 
Join Date: 23 Jun 2007
Location: London,England
MS Office Version:office 97 ,2003 ,2007
Posts: 5,993
martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding
Re: Text string closest match lookup not using vlookup true

=INDEX($H$2:$K$60,MATCH(A2&C2,$H$2:$H$60&$J$2:$J$60,0),1) isnt an array entered formula.
it matches on 2 columns and returns from third, not a closest match either!
so what constitutes a close match in your examples?
__________________
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code

how to enter array formula


recommended reading
wiki Mojito

how to say no convincingly

most important think you need
Reply With Quote
  #3  
Old 07-01-2009, 12:14 PM
RyanF RyanF is offline
Registered User
 
Join Date: 16 Jun 2009
Location: Pretoria, South Africa
MS Office Version:Excel 2003
Posts: 30
RyanF is becoming part of the community
Re: Text string closest match lookup not using vlookup true

Sorry I entered the wrong formula-the formula I meant if you were looking up closest match on amount is INDEX($E$2:$E$248,MATCH(MIN(ABS($C$2:$C$247-C2)),ABS($C$2:$C$247-C2),0))

I'm looking for an equivalent for text string closest matching-as a Vlookup true would, but without altering the data source into ascending order.

In this case I would be looking for closest text match between column "d" in sheet one and column "e" in sheet two.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump