Looking for formula to look into table A2:D102 and pull values into F2:F102 If condition is met. The two (2) conditions are Year in J1 and Names in M1:M26. Year condition in J1 is manually entered and can be changed to any year. Names condition is also manually entered and can be changed based on the Year in consideration. For this sample file, Year 1993 (J1) is used and the names for this year is copied into M1:M26.
If a name in M1:M26 is in D2:D102 and the Sales City and Sales ID are not the same as the Sales City and Sales ID for the name in M1:M26, the formula should return that name in M1:M26 into F2:F102. For example, Murp, Chris (in M10. Sales City for Murp, Chris is Hiss and Sales ID 45234 in Table A2:D102) is in D6 and the Sales City and Sales ID for Murp, Chris in D6 are Kirt-Wise and 21222 which are unique. Formula should return Murp, Chris in F6. If the Sales City for Murp, Chris (SALES CITY in N1:N26 is the same Sales City in B2:B102 for the name being considered in M1:M26, the formula should not return a value since the Sales City are the same AND NOT UNIQUE.
Array formula and non-array welcome. Non-array preferred.
See sample file.
Thanks.
Bookmarks