#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 149
Default comparing

hi all
i have a list of data in column A and B... i.e
A1 : pete rose B1 : pete sam rose (they are the same person)
A2 : amber kerr B2 : amber dawn saly kerr (they are the same person)

i am comparing these two by using =exact(..) , but the result is false
although its true. any suggestions ?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 457
Default comparing

How would XL know they are the same person???

If you're really only wanting to compare first and last names...
=AND(LEFT(A1,FIND(" ",A1)-1)=LEFT(B1,FIND(" ",B1)-1),
MID(A1,FIND(" ",A1)+1,999)=MID(B1,FIND("xxx",SUBSTITUTE(B1,"
","xxx",LEN(B1)-LEN(SUBSTITUTE(B1," ",""))))+1,999))

--
Best Regards,

Luke M
"pierre" wrote in message
...
hi all
i have a list of data in column A and B... i.e
A1 : pete rose B1 : pete sam rose (they are the same person)
A2 : amber kerr B2 : amber dawn saly kerr (they are the same person)

i am comparing these two by using =exact(..) , but the result is false
although its true. any suggestions ?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 88
Default comparing

Luke

I have same problem like pieere..
i.e
A1 = Reza Aditia B1= rezaaditia

i tried with ur formula below, but doesn't work..can you share ur formula 4
me..

thanks

"Luke M" wrote:

How would XL know they are the same person???

If you're really only wanting to compare first and last names...
=AND(LEFT(A1,FIND(" ",A1)-1)=LEFT(B1,FIND(" ",B1)-1),
MID(A1,FIND(" ",A1)+1,999)=MID(B1,FIND("xxx",SUBSTITUTE(B1,"
","xxx",LEN(B1)-LEN(SUBSTITUTE(B1," ",""))))+1,999))

--
Best Regards,

Luke M
"pierre" wrote in message
...
hi all
i have a list of data in column A and B... i.e
A1 : pete rose B1 : pete sam rose (they are the same person)
A2 : amber kerr B2 : amber dawn saly kerr (they are the same person)

i am comparing these two by using =exact(..) , but the result is false
although its true. any suggestions ?



.

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
comparing Donna[_2_] Excel Worksheet Functions 3 November 3rd 09 01:45 AM
Comparing more than two Vern Excel Worksheet Functions 4 September 24th 08 04:03 PM
Comparing 2 spreadsheets mhan487 Excel Discussion (Misc queries) 1 August 28th 08 04:06 PM
Comparing Text beginner here Excel Worksheet Functions 7 July 18th 07 11:52 PM
Comparing two tables Peter Steiner Excel Discussion (Misc queries) 6 December 23rd 05 10:11 AM


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