Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2008

Tip: Looking for answers? Try searching our database.

Compare two worksheets where match is partial

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bexi - 04 Mar 2008 18:58 GMT
Hello,

I tried using the VLOOKUP AND MATCH functions, but they don't work for
the data I have.
I have two worksheets and they don't have unique identifiers. Below is
an illustration of my data.

Worksheet A
Credit Card Number      Last      First     REF                 Amount
AXXXXXXXXXXX91009    SMITH   MARY  F08GXSA308    477.50

Worksheet B
Credit Card Number      Name             Amount
1234-123456-91009      SMITH/MARY 477.50

I want to match the credit card number, the person's name and amount.
I want to pull the REF data based on the condition stated.

Please help.
Thanks
OssieMac - 04 Mar 2008 23:45 GMT
Hi Bexi,

You need to insert another column and create unique identifiers from the
data you have. In the below example, I have inserted a column to the left of
the credit card number so that the new column is column A.

In Worksheet A:- Assume that the credit card number is in B2 and the Last
Name is in C2. Insert this formula in A2.

=RIGHT(B2,5)& " " &C2

You should get 91009 SMITH

In Worksheet B assume that the credit card number is in B2 and the Name is
in C2. Insert this formula in A2.

=RIGHT(B2,5) & " " &LEFT(C2,SEARCH("/",C2,1)-1)

You should get 91009 SMITH (Same result as above)

Of course it assumes that you have the slash "/" between last name and first
name in all cases on worksheet B.

Now that you have a unique identifier you should be able to perform the
matches required.

Signature

Regards,

OssieMac

> Hello,
>
[quoted text clipped - 16 lines]
> Please help.
> Thanks
JP - 05 Mar 2008 00:48 GMT
In addition to what OssieMac suggested, how about an INDEX/MATCH
formula?

=INDEX(Ref_Col,MATCH(1,(("credit card
number"=CC_Col)*(LEFT(name_cell,FIND("/",name_cell)-1)=LName_Col)*(RIGHT(name_cell,LEN(name_cell)-
FIND("/",name_cell)))*("amount"=Amount_Col)),0))

Ref_Col is the range containing the ref numbers
"credit card number" is a cell reference to the cc number are trying
to match
CC_Col is the range containing the credit card numbers
name_cell is the cell containing the full name (with the slash in it)
LName_Col is the range of last names
"amount" is the cell reference to the amount you want to match
Amount_Col is the range containing the amounts

Enter as array formula (ctrl-shift-enter).

This was air code so please post back if it doesn't work.

HTH,
JP

> Hello,
>
[quoted text clipped - 16 lines]
> Please help.
> Thanks
Pete_UK - 05 Mar 2008 01:23 GMT
I like that term "air code" - I'll have to remember that !! <bg>

Pete

> In addition to what OssieMac suggested, how about an INDEX/MATCH
> formula?
[quoted text clipped - 41 lines]
>
> - Show quoted text -
JP - 05 Mar 2008 01:38 GMT
LOL you're welcome

--JP

> I like that term "air code" - I'll have to remember that !! <bg>
>
> Pete

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.