Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Is it possible to do a v-lookup using similar data?

I am trying to use information from one database for another.
One data base lists the name as Jill Alexander, the other lists the name as
Alexander Jill. Can I do a v-lookup even though the data is entered
differently?

If so, please let me know how to do this.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 897
Default Is it possible to do a v-lookup using similar data?

If the other lists only had last names in each cell, you could use
something like this:

=VLOOKUP(RIGHT(A1,LEN(A1)-FIND(" ",A1)),MyRange,2,FALSE)

Assuming "Jill Alexander" was in A1, and "Alexander" was in the
leftmost column of a named range "MyRange". This is because the first
argument of VLOOKUP can accept either a cell reference or a string
literal.

However, this (array) formula will look up the value in A1 (FirstName
LastName) and return the corresponding value in a named range
"MyRange" where it finds "LastName, Firstname" in a named range
"SearchRange"

=INDEX(MyRange,MATCH(1,(RIGHT(A1,LEN(A1)-FIND("
",A1))=LEFT(SearchRange,LEN(RIGHT(A1,LEN(A1)-FIND("
",A1)))))*(LEFT(A1,FIND(" ",A1)-1)=RIGHT(SearchRange,FIND(" ",A1)-1)),
0))

For example if you put "Jill Alexander" in A1 and had another block of
cells with "Alexander, Jill" the formula would find her reversed name
and return the corresponding value from the SearchRange range.

HTH,
JP

On Jul 22, 12:50*pm, madmmurphy
wrote:
I am trying to use information from one database for another. *
One data base lists the name as Jill Alexander, the other lists the name as
Alexander Jill. *Can I do a v-lookup even though the data is entered
differently?

If so, please let me know how to do this. *


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 897
Default Is it possible to do a v-lookup using similar data?

Sure just send it to the email address above.

--JP

On Jul 22, 4:42*pm, madmmurphy
wrote:
Thank you for your help, but I am a bit confused.
Is it possible for me to send you a worksheet so I can see exactly what
youare taking about? *it might make it more clear.

thanks



"JP" wrote:
If the other lists only had last names in each cell, you could use
something like this:


=VLOOKUP(RIGHT(A1,LEN(A1)-FIND(" ",A1)),MyRange,2,FALSE)


Assuming "Jill Alexander" was in A1, and "Alexander" was in the
leftmost column of a named range "MyRange". This is because the first
argument of VLOOKUP can accept either a cell reference or a string
literal.


However, this (array) formula will look up the value in A1 (FirstName
LastName) and return the corresponding value in a named range
"MyRange" where it finds "LastName, Firstname" in a named range
"SearchRange"


=INDEX(MyRange,MATCH(1,(RIGHT(A1,LEN(A1)-FIND("
",A1))=LEFT(SearchRange,LEN(RIGHT(A1,LEN(A1)-FIND("
",A1)))))*(LEFT(A1,FIND(" ",A1)-1)=RIGHT(SearchRange,FIND(" ",A1)-1)),
0))


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
lookup same or similar NeedToKnow Excel Worksheet Functions 3 June 20th 09 01:09 AM
vlookup with similar lookup values Dave F[_2_] Excel Discussion (Misc queries) 3 July 5th 07 06:49 PM
lookup or some other type of similar function hotelmasters Excel Programming 0 October 11th 06 09:12 PM
Using the lookup Function for similar items to add together Brian Excel Worksheet Functions 1 July 13th 06 05:23 AM
Lookup or similar Andycleos Excel Worksheet Functions 7 June 14th 05 12:34 PM


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