Identify row containing max date for multiple rederences

Corp_exceller

New Member
Joined
Aug 7, 2022
Messages
19
Office Version
  1. 2013
Platform
  1. Windows
Hi,

I have a sheet of data containing multiple rows of non distinct application numbers, and columns containing a date and time, which will be different per entry. This is a non distinct set of application numbers which I want to make distinct based on latest date.

*Note there are many other columns in the data set which don’t apply to the problem I’m trying to fix.

I want to identify the row which contains the latest date (for each application number) by putting either true false or any other two binary markings, so that I can filter on the ‘true’s, giving me a leaned out data set.

Anyone know how to do this? Thanks!
 
I suppose I’m wanting the latest dates to be based on the category, but taking into account the code, so that I’m not just left with one latest date for IN and one for OUT. I’d want it per code.
Is it what are you looking for?

Book1
FGHI
2ValuesDatesCategoryStatus
3AA6/12/2022IN 
4CC6/28/2022OUT 
5EE9/1/2022INLatest
6BB7/3/2022INLatest
7EE7/11/2022IN 
8VV9/14/2022OUTLatest
9EE2/4/2022OUTLatest
10AA9/22/2022INLatest
11CC9/30/2022OUTLatest
12BB1/7/2022IN 
13AA2/3/2022OUTLatest
14VV4/3/2022OUT 
15DD8/5/2022OUTLatest
Sheet1
Cell Formulas
RangeFormula
I3:I15I3=IF(G3=MAX(IF(F3=$F$3:$F$15,IF(H3=$H$3:$H$15,$G$3:$G$15))),"Latest","")
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Yes
Is it what are you looking for?

Book1
FGHI
2ValuesDatesCategoryStatus
3AA6/12/2022IN 
4CC6/28/2022OUT 
5EE9/1/2022INLatest
6BB7/3/2022INLatest
7EE7/11/2022IN 
8VV9/14/2022OUTLatest
9EE2/4/2022OUTLatest
10AA9/22/2022INLatest
11CC9/30/2022OUTLatest
12BB1/7/2022IN 
13AA2/3/2022OUTLatest
14VV4/3/2022OUT 
15DD8/5/2022OUTLatest
Sheet1
Cell Formulas
RangeFormula
I3:I15I3=IF(G3=MAX(IF(F3=$F$3:$F$15,IF(H3=$H$3:$H$15,$G$3:$G$15))),"Latest","")
Yes, that is the one! Thanks very much!!!
 
Upvote 0
I don't suppose there would be an array type formula that would work for this problemI have?

 
Upvote 0
I don't suppose there would be an array type formula that would work for this problemI have?

What's, specifically, your last addressed problem? Is it new / separated , or it relates with the previous one?
 
Last edited:
Upvote 0
Please ask/answer anything related to post #24 in the thread linked in that post.
Sorry, but that thread was mentioned in the body of this one. That's why, I considered it as a part of the present topic related with its previous messages, and answered accordingly asking clarifications.
 
Upvote 0
Sorry, but that thread was mentioned in the body of this one.
True, but the consequence of #12 of our Forum Rules is that we do not want the same question running in two places.
In any case, I presumed that if you had followed the link to the other thread you would have seen that the question had already been resolved there by the time you made post #25 here.
 
Upvote 0
@vladimiratanasiu i posted on the thread in the above link and Peter managed to give me an excel solution for this. But unfortunately the AGGREGATE function doesn’t exist in Google sheets so wondered if anyone know of an alternative to AGGREGATE in Google sheets

 
Upvote 0
True, but the consequence of #12 of our Forum Rules is that we do not want the same question running in two places.
In any case, I presumed that if you had followed the link to the other thread you would have seen that the question had already been resolved there by the time you made post #25 here.
True, but it was not me posting the same problem in more threads. I read the content of the related thread, and saw that its answers didn't solve (completly) the Google sheets issues. That's why, I asked more details. They are provided in last answer of Corp_exceller, that can be considered the missing link of our discussion.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

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