How to compare/match 3 columns

clwong

New Member
Joined
Mar 17, 2002
Messages
38
I've to compare two sheets with similar columns are :
Sheet1: Column A (O/N), Column B ( P/N), Column C (QTY), Column D (Date)
Sheet2: Column A (QTY), Column B (O/N ), Column C (P/N)

All Columns are in text format except Column D which is in Date mm/dd/yy).

Here I have to compare these two sheets and return value of Coulmn D of sheet1 on Column E of sheet2 with following conditions:
-If cln A of Sht1 equal to cln B of sht2 then go to copare cln B of sht1 with cln C of sht2;
-if both match, then compare cln C of sht1 with cln A of sht2;
-if these three column are matched, return value of cln D of sht1 on cln E of sht 2

I've tried to use MATCH and INDEX formula, but fail at all. Should I use array formula to solve such conditions?

Btw, anyone can help to post formula here?

Tks a lot.

Regards,
CL :oops: :oops:
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
dtchan,

Tks for your suggestion.
But i still don't know how to make it.
Could you post formula with example sheet here?

Regards,
CL
 
Upvote 0
clwong said:
I've to compare two sheets with similar columns are :
Sheet1: Column A (O/N), Column B ( P/N), Column C (QTY), Column D (Date)
Sheet2: Column A (QTY), Column B (O/N ), Column C (P/N)

All Columns are in text format except Column D which is in Date mm/dd/yy).

Here I have to compare these two sheets and return value of Coulmn D of sheet1 on Column E of sheet2 with following conditions:
-If cln A of Sht1 equal to cln B of sht2 then go to copare cln B of sht1 with cln C of sht2;
-if both match, then compare cln C of sht1 with cln A of sht2;
-if these three column are matched, return value of cln D of sht1 on cln E of sht 2

I've tried to use MATCH and INDEX formula, but fail at all. Should I use array formula to solve such conditions?

Btw, anyone can help to post formula here?

Tks a lot.

Regards,
CL :oops: :oops:

Search for multikey lookup where an additional column is used to concatenate relevant columns.
 
Upvote 0
Hi, Aladin,

Tks for your hits too.
Sorry, as I don't know what "Search for multikey lookup where an additional column is used to concatenate relevant columns." mean, could you give me more hits or a real example?

Tks in adv.

Yours,
CL
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,205
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top