cross reference two cells in one sheet against two cells in second sheet - return data from third cell

osaben

Board Regular
Joined
Mar 17, 2010
Messages
62
Office Version
  1. 365
Platform
  1. Windows
Hello,
Help please. I have myself all confused on how to accomplish the following.

Column H2/Sheet1 --- match data in last 4 characters in C2 & all of D2 against data in column B & C in Sheet2 and return the value in column D
Column I2/Sheet1 --- match data in I1 & D2 against data in column B & C in Sheet2 and return the value in Column D
Column J2/Sheet 1 --- match data in J1 & D2 against data in column B & C in Sheet2 and return value in column D

SO----when the formula is working right, the figures in Sheet1 with match those in Sheet2 (I color coded to help with explanation)

Thanks in advance for your help and expertise.

1730307233558.png
 
The formula is not looking at col E, wo which column has the trailing spaces?
Oh, My apologies. the trailing spaces are in column D, which is the year and is part of the formula.
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Ok, how about
Excel Formula:
=FILTER(Sheet2!$D$2:$D$1000,(Sheet2!$B$2:$B$1000=trim(D2))*(Sheet2!$C$2:$C$1000=RIGHT(C2,4)),"No match")
 
Upvote 0
Ok, how about
Excel Formula:
=FILTER(Sheet2!$D$2:$D$1000,(Sheet2!$B$2:$B$1000=trim(D2))*(Sheet2!$C$2:$C$1000=RIGHT(C2,4)),"No match")
Yes! that worked!

Have a great day and thank you for your willingness to respond to my inquiries. I am thankful for you.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,815
Messages
6,181,135
Members
453,021
Latest member
Justyna P

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