Return latest information from another worksheet

SerenityNetworks

Board Regular
Joined
Aug 13, 2009
Messages
131
Office Version
  1. 365
Platform
  1. Windows
I need to return the latest/last information, by date, from Sheet 2 into Sheet 1. The following mini-sheet shows in Sheet 1, Columns C and D the information that needs to be returned from Sheet 2, Columns H and G. The "Name" column is the search criteria. The Name may appear more than once in each worksheet, but I only want the latest/last information returned from Sheet 2. I'm at a loss as to how to do this, since the data order will change in both sheets. I can't count on the information being sorted in ascending or descending order in either of the sheets. I could use a macro to sort the data then use a lookup or match function to return the data, but I'd rather do it with a formula than utilizing macros. How is this doable?

Thanks in advance,
Andrew

Book1
ABCDEFGH
1Sheet 1Sheet 2
2ClassNameLatest Yes/No value from Sheet 2Corresponding Date from Sheet 2NameDateYes/No
31BobYes03/01/2023Bob01/01/2023No
45BobYes03/01/2023Jill01/01/2023Yes
53JillNo03/01/2023Bob03/01/2023Yes
61JillNo03/01/2023Jill03/01/2023No
72WandaNo02/01/2023Ziggy02/15/2023Yes
83BobYes03/01/2023Wanda02/01/2023No
94ZiggyYes02/15/2023Bob02/10/2023No
105JillNo03/01/2023Jill02/10/2023No
Sheet1
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Never mind. I'm not sure why I had such a brain cramp. Once I remembered MAXIFS then the brain cramp relaxed and I was off and running.

question.xlsx
ABCDEFGHI
1Sheet 1Sheet 2
2ClassNameMM/YYLatest Yes/No value from Sheet 2Corresponding Date from Sheet 2Criteria 1DateYes/No
31This12/22Yes03/01/2023This01/01/2023No
45This02/23Yes03/01/2023That01/01/2023Yes
53That02/23No03/01/2023This03/01/2023Yes
61That12/22No03/01/2023That03/01/2023No
72Another01/23No02/01/2023Other02/15/2023Yes
83This02/23Yes03/01/2023Another02/01/2023No
94Other02/23Yes02/15/2023This02/10/2023No
105That02/23No03/01/2023That02/10/2023No
Sheet1
Cell Formulas
RangeFormula
D3:D10D3=INDEX($I$3:$I$10,MATCH(1,($H$3:$H$10=$E3)*($G$3:$G$10=$B3),0),1)
E3:E10E3=MAXIFS($H$3:$H$10,$G$3:$G$10,B3)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,327
Messages
6,124,281
Members
449,149
Latest member
mwdbActuary

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