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.
 
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,""))
Thank you for your response.

I apologize for the delayed response. This is the earliest I could.

Yes, this version of Excel is absent the compatibility list for XL2bb. Thank you for saying so. I understand it is helpful to post the spreadsheet itself and will look into it.

I tried your formula with the real table names in my sheet. But, Excel returned a pop up error which said it is not a formula.
i then tried replacing the tables with cell ranges and a SPILL error was returned.
Is there any other change i need to make? There are more rows and columns in the actual tables versus what I posted here. Could that be a problem? This is a complicated formula to me.

Thank you.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

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