With Power Query's Group By Function
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"ACTUAL#(lf)DATE", type date}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"ACTUAL#(lf)DATE"}, {{"Reported Total", each Table.RowCount(_), Int64.Type}, {"Reported Unique", each Table.RowCount(Table.Distinct(_)), Int64.Type}})
in
#"Grouped Rows"
Excel 2016 (Windows) 64 bit
|
D |
E |
F |
16 |
ACTUAL
DATE |
Reported Total |
Reported Unique |
17 |
6/28/2022 |
4 |
4 |
18 |
6/29/2022 |
2 |
2 |
19 |
6/30/2022 |
8 |
7 |
20 |
7/1/2022 |
5 |
5 |
21 |
7/2/2022 |
4 |
4 |
22 |
7/3/2022 |
1 |
1 |
23 |
7/4/2022 |
9 |
9 |
Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").
It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.
- Follow this link to learn how to install Power Query in Excel 2010 / 2013.
- Follow this link for an introduction to Power Query functionality.
- Follow this link for a video which demonstrates how to use Power Query code provided.
Bookmarks