take a column of daily transaction numbers with duplicates and show in different table with its corresponding date and no duplicates

turn7or5

New Member
Joined
Aug 21, 2024
Messages
12
Office Version
  1. 2021
Platform
  1. MacOS


the duplicate transaction numbers are a result of the same number being applied to each part of a multi-part transaction.
the goal is formulas to show a single count and date for each transaction in a new table whose functions need to know where to look in first table.

the table on the Left (Columns A-B) is the current data. Right table (Columns M-N) has no formulas but is a model of what the end result should look like.

I tried work it out with countif and finding the max transaction count per date knowing that each day begins with no. 1 but did not get far.

If someone knows any solution I would greatly appreciate it.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I am new to excel so was glad to see a simple solution however it produced a spill error when used in the table.
It seems Excel can't accommodate this type of function in a table.
Is there a modification or even a different formula that will work but from within a table?
 
Upvote 0
N.B. You posted just an image of your data.
In future, please post an extract of your data with the forum's tool named XL2BB.

Unique.xlsm
ABCDEF
20
21TransactionDate
22129-Aug129-Aug
23129-Aug229-Aug
24229-Aug130-Aug
25130-Aug
26130-Aug129-Aug
27130-Aug229-Aug
28130-Aug
29
30
9h
Cell Formulas
RangeFormula
E22:F24E22=UNIQUE(B22:C27)
E26:F28E26=UNIQUE(Table8)
Dynamic array formulas.
 
Upvote 0
In future, please post an extract of your data with the forum's tool named XL2BB.
Not sure, but that may not be possible for the OP since their Excel version is not one listed in the XL2BB specifications

1725158236781.png


@turn7or5
Whilst you possibly may not be able to use XL2BB as mentioned above, you could consider just copy/paste a small set of sample data into your post so that helpers would find it a bit easier to get some sample data to work with rather than having to type it out manually. :)

Anyway, assuming the tables already exist and, left to right, are Table1 and Table2, see if this type of formula would work for you.

turn7or5.xlsm
ABLMN
1Transaction NumberDateTransactionDate
2  
3129/09/2022129/09/2022
4129/09/2022229/09/2022
5229/09/2022329/09/2022
6229/09/2022429/09/2022
7329/09/2022529/09/2022
8329/09/2022629/09/2022
9429/09/2022121/06/2023
10429/09/2022  
11529/09/2022  
12529/09/2022  
13629/09/2022  
14629/09/2022  
15629/09/2022  
16629/09/2022  
17121/06/2023  
18121/06/2023  
19121/06/2023  
20121/06/2023  
21121/06/2023  
22121/06/2023  
23
24
Sheet1
Cell Formulas
RangeFormula
M2:M22M2=LET(v,INDEX(UNIQUE(Table1),ROW()-ROW(Table2[#Headers]),1)&"",IFERROR(--v,""))
N2:N22N2=LET(v,INDEX(UNIQUE(Table1),ROW()-ROW(Table2[#Headers]),2)&"",IFERROR(--v,""))
 
Upvote 0
I may be reading the request differently.

turn7or5 stated "the table on the Left (Columns A-B) is the current data. Right table (Columns M-N) has no formulas but is a model of what the end result should look like"

Unique.xlsm
ABCMN
1Transaction NumberDateTransaction NumberDate
2129-Sep-22129-Sep-22
3129-Sep-22229-Sep-22
4229-Sep-22329-Sep-22
5229-Sep-22429-Sep-22
6329-Sep-22529-Sep-22
7329-Sep-22629-Sep-22
8429-Sep-22121-Jun-23
9429-Sep-22
10529-Sep-22
11529-Sep-22
12629-Sep-22
13629-Sep-22
14629-Sep-22
15629-Sep-22
16121-Jun-23
17121-Jun-23
18121-Jun-23
19121-Jun-23
20121-Jun-23
21121-Jun-23
9hh
Cell Formulas
RangeFormula
M2:N8M2=UNIQUE(Table9)
Dynamic array formulas.
 
Upvote 0
turn7or5 stated ...
They also stated (post 3) in relation to a spilling dynamic array formula suggestion very similar to yours
I am new to excel so was glad to see a simple solution however it produced a spill error when used in the table.
It seems Excel can't accommodate this type of function in a table.
Is there a modification or even a different formula that will work but from within a table?
Makes me think the formula is to put in a table.
 
Upvote 0
Excel may have built-in features to do what you require.
Have your tried the following?

Select the table that is in columns A and B
Then Data Filter Advanced and select
- copy to another location
- unique records only
 
Upvote 0
Solution
Not sure, but that may not be possible for the OP since their Excel version is not one listed in the XL2BB specifications

View attachment 116223

@turn7or5
Whilst you possibly may not be able to use XL2BB as mentioned above, you could consider just copy/paste a small set of sample data into your post so that helpers would find it a bit easier to get some sample data to work with rather than having to type it out manually. :)

Anyway, assuming the tables already exist and, left to right, are Table1 and Table2, see if this type of formula would work for you.

turn7or5.xlsm
ABLMN
1Transaction NumberDateTransactionDate
2  
3129/09/2022129/09/2022
4129/09/2022229/09/2022
5229/09/2022329/09/2022
6229/09/2022429/09/2022
7329/09/2022529/09/2022
8329/09/2022629/09/2022
9429/09/2022121/06/2023
10429/09/2022  
11529/09/2022  
12529/09/2022  
13629/09/2022  
14629/09/2022  
15629/09/2022  
16629/09/2022  
17121/06/2023  
18121/06/2023  
19121/06/2023  
20121/06/2023  
21121/06/2023  
22121/06/2023  
23
24
Sheet1
Cell Formulas
RangeFormula
M2:M22M2=LET(v,INDEX(UNIQUE(Table1),ROW()-ROW(Table2[#Headers]),1)&"",IFERROR(--v,""))
N2:N22N2=LET(v,INDEX(UNIQUE(Table1),ROW()-ROW(Table2[#Headers]),2)&"",IFERROR(--v,""))

Not sure, but that may not be possible for the OP since their Excel version is not one listed in the XL2BB specifications

View attachment 116223

@turn7or5
Whilst you possibly may not be able to use XL2BB as mentioned above, you could consider just copy/paste a small set of sample data into your post so that helpers would find it a bit easier to get some sample data to work with rather than having to type it out manually. :)

Anyway, assuming the tables already exist and, left to right, are Table1 and Table2, see if this type of formula would work for you.

turn7or5.xlsm
ABLMN
1Transaction NumberDateTransactionDate
2  
3129/09/2022129/09/2022
4129/09/2022229/09/2022
5229/09/2022329/09/2022
6229/09/2022429/09/2022
7329/09/2022529/09/2022
8329/09/2022629/09/2022
9429/09/2022121/06/2023
10429/09/2022  
11529/09/2022  
12529/09/2022  
13629/09/2022  
14629/09/2022  
15629/09/2022  
16629/09/2022  
17121/06/2023  
18121/06/2023  
19121/06/2023  
20121/06/2023  
21121/06/2023  
22121/06/2023  
23
24
Sheet1
Cell Formulas
RangeFormula
M2:M22M2=LET(v,INDEX(UNIQUE(Table1),ROW()-ROW(Table2[#Headers]),1)&"",IFERROR(--v,""))
N2:N22N2=LET(v,INDEX(UNIQUE(Table1),ROW()-ROW(Table2[#Headers]),2)&"",IFERROR(--v,""))
 
Upvote 0
I may be reading the request differently.

turn7or5 stated "the table on the Left (Columns A-B) is the current data. Right table (Columns M-N) has no formulas but is a model of what the end result should look like"

Unique.xlsm
ABCMN
1Transaction NumberDateTransaction NumberDate
2129-Sep-22129-Sep-22
3129-Sep-22229-Sep-22
4229-Sep-22329-Sep-22
5229-Sep-22429-Sep-22
6329-Sep-22529-Sep-22
7329-Sep-22629-Sep-22
8429-Sep-22121-Jun-23
9429-Sep-22
10529-Sep-22
11529-Sep-22
12629-Sep-22
13629-Sep-22
14629-Sep-22
15629-Sep-22
16121-Jun-23
17121-Jun-23
18121-Jun-23
19121-Jun-23
20121-Jun-23
21121-Jun-23
9hh
Cell Formulas
RangeFormula
M2:N8M2=UNIQUE(Table9)
Dynamic array formulas.

Not sure, but that may not be possible for the OP since their Excel version is not one listed in the XL2BB specifications

View attachment 116223

@turn7or5
Whilst you possibly may not be able to use XL2BB as mentioned above, you could consider just copy/paste a small set of sample data into your post so that helpers would find it a bit easier to get some sample data to work with rather than having to type it out manually. :)

Anyway, assuming the tables already exist and, left to right, are Table1 and Table2, see if this type of formula would work for you.

turn7or5.xlsm
ABLMN
1Transaction NumberDateTransactionDate
2  
3129/09/2022129/09/2022
4129/09/2022229/09/2022
5229/09/2022329/09/2022
6229/09/2022429/09/2022
7329/09/2022529/09/2022
8329/09/2022629/09/2022
9429/09/2022121/06/2023
10429/09/2022  
11529/09/2022  
12529/09/2022  
13629/09/2022  
14629/09/2022  
15629/09/2022  
16629/09/2022  
17121/06/2023  
18121/06/2023  
19121/06/2023  
20121/06/2023  
21121/06/2023  
22121/06/2023  
23
24
Sheet1
Cell Formulas
RangeFormula
M2:M22M2=LET(v,INDEX(UNIQUE(Table1),ROW()-ROW(Table2[#Headers]),1)&"",IFERROR(--v,""))
N2:N22N2=LET(v,INDEX(UNIQUE(Table1),ROW()-ROW(Table2[#Headers]),2)&"",IFERROR(--v,""))
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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