Returning value if conditions are met

jrbeavers559

New Member
Joined
May 2, 2018
Messages
1
I have two worksheets that I need to find where 3 cells within the row match. The cells that I need to match are CODE, ID, and DATE. I have a master sheet that displays all consumers information and another one that is detailed to a specific demographic. In the master sheet the columns are P, X, and Y, but in the detail sheet, they are C, D, and J.

For example, in my detailed sheet C2 is "40", D2 is 22-apr-17, and J2 is "7896"
In my master sheet that record is on row 68719.

So, I want to return a value "Return" on my master sheet, in column EA if column P matches column C [in detail sheet], column X matches column D [detail sheet], and Y matches J [detail sheet].

Thank you! Sorry for my noob question.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Try this

=IF(SUMPRODUCT(--(Detail!C:C=P68719),--(Detail!D:D=X68719),--(Detail!J:J=Y68719))>0,"Return","")
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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