Lookup unqiue ID between sheets to obtain most recent date

cwim1990

New Member
Joined
Jul 19, 2021
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi, I am looking to use a formula to lookup a unique id from one sheet, to the same id in another sheet to obtain the most recent date from the second sheet.
Example is a user id- to most recent appointment date where there are multiple appointment dates (and filtering is not an option) . Have tried: =MAX(IF(B3,'Sheet2'!AC2)} & =vlookup(max(date,B2,'Sheet2'!K:AC,19,0). The first formula gave me dates, but upon checking were not the most recent. Any help appreciated :)
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You could use MAXIFS to get the most recent date.

I have this data in one worksheet and in another sheet, I have this formula in B3


1626754925487.png



1626754995121.png





=MAXIFS(Sheet4!B:B,Sheet4!A:A,Sheet5!A3)

Kind regards

Saba


Kind regards

Saba
 
Upvote 0
You could use MAXIFS to get the most recent date.

I have this data in one worksheet and in another sheet, I have this formula in B3


View attachment 43096


View attachment 43097




=MAXIFS(Sheet4!B:B,Sheet4!A:A,Sheet5!A3)

Kind regards

Saba


Kind regards

Saba
Thanks Saba,

Having issues with this formula, my sheet 1 has various user ID's in column B and am trying to match those ID's with Sheet 2 along with obtaining the most recent date so have tried: =maxifs(B2,'sheet2'!K:AC,19,0) &=maxifs(B2,'sheet2'!K:AC,19) getting a #VALUE error. Unsure if this formula is able to lookup and match the various user ID's on each page.

Trying to match user ID on Sheet 1 - B2 with user ID on Sheet 2 Column K & Most recent date on Column AC (sheet 2) ( AC is 19 columns from column K)
 
Upvote 0
I think that you will have to change the formula in Sheet 1 to

=MAXIFS(Sheet2!AC:AC,Sheet2!K:K,B2)

Kind regards

Saba
 
Upvote 0
Solution

Forum statistics

Threads
1,214,548
Messages
6,120,146
Members
448,948
Latest member
spamiki

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