UNIQUE and SORT not getting me there...

jatatreadwell

New Member
Joined
Mar 5, 2025
Messages
2
Office Version
  1. 2021
Platform
  1. Windows
First thanks in advance for those that take the time to read and offer suggestions. Here is my problem:

I have a sheet that contains three columns: date, name, and department. I want to pull each unique department along with the earliest date associated with that department into a new sheet. The original data can be in any order with any number of repeats. I don't need the name but just for accuracy.

Using Microsoft Office LTSC Professional Plus 2021 Excel version 2108

I've tried using UNIQUE and SORT together but I'm not having any luck with pulling the least dates for each.
 

Attachments

  • unique.png
    unique.png
    20.9 KB · Views: 6
I used Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"dept"}, {{"Min", each List.Min([date]), type number}})
in
    #"Grouped Rows"

Book6
ABCDEF
1dateNamedeptdeptMin
21Jimaa1
32Bettybb2
43Bobcc0
52Suea
63Tomb
74Bettyc
83Janea
94Joeb
100Jackc
Sheet1
 
Upvote 0
Hello, a formula option:

Excel Formula:
=UNIQUE(H2:H10)

Excel Formula:
=MINIFS(F2:F10,H2:H10,UNIQUE(H2:H10))
 
Upvote 0
Solution

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