Latest date

Tofik

Board Regular
Joined
Feb 4, 2021
Messages
114
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi guys, how are you? Guys, I need to understand which formula can show me the latest date in my product list?

On the left side is my imagination example Data Base and on the right the final version of how it should be.
I need to solve problems as fast as possible because I should give the report the final version to my boss.
Thanks, guys.





AF-099-QF-199 Welding Log FINAL VERSION.xlsb
DEFGHI
6product namedateproduct namelast date
7apple01.01.2021apple02.01.2021
8apple 02.01.2021banana01.01.2021
9banana01.01.2021cherry07.01.2021
10orange03.01.2021orange08.01.2021
11cherry07.01.2021
12apple
13orange
14orange
15orange08.01.2021
16
17
Sheet1
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How about
+Fluff 1.xlsm
ABCDEF
1product namedateproduct namelast date
2apple01/01/2021apple02/01/2021
3apple02/01/2021banana01/01/2021
4banana01/01/2021orange08/01/2021
5orange03/01/2021cherry07/01/2021
6cherry07/01/2021
7apple
8orange
9orange
10orange08/01/2021
11
Test
Cell Formulas
RangeFormula
E2:E5E2=UNIQUE(FILTER(A2:A100,A2:A100<>""))
F2:F5F2=MAXIFS(B:B,A:A,E2#)
Dynamic array formulas.
 
Upvote 0
Or use a pivot table and the Max function for the date.
 
Upvote 0
With Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Trimmed Text" = Table.TransformColumns(Source,{{"product name", Text.Trim, type text}}),
    #"Changed Type" = Table.TransformColumnTypes(#"Trimmed Text",{{"product name", type text}, {"date", type datetime}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"product name"}, {{"Max Date", each List.Max([date]), type nullable datetime}})
in
    #"Grouped Rows"
 
Upvote 0

Forum statistics

Threads
1,214,608
Messages
6,120,500
Members
448,968
Latest member
screechyboy79

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