Combining Column Values depending on the Date in the first row

mazher

Active Member
Joined
Nov 26, 2003
Messages
363
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I will be extremely thankful, if someone can help me as I have no idea how It can be done. I am usinh Excel 365.

I Sheet 1 I have dates in column A1:AIC1 (duplicate dates) and underneath I have invoice numbers

In Sheet 2, I have used this formula in cell A1 =TRANSPOSE(UNIQUE(TRANSPOSE(UNIQUE(Sheet2!A1:AIC1))))

I have no udea why TRANSPOSE(UNIQUE(Sheet2!A1:AIC1)) was not working have to use unique and transpose again to get a unique list of dates.

I need help for a formula to stack all the invoice numbers from Sheet 1 with the same date under the Unique Date in row 1 of Sheet 2

Thanks in advance.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
How about
Excel Formula:
=UNIQUE(Sheet2!A1:AIC1,1)
and
Excel Formula:
=TOCOL(FILTER(Sheet2!$A$2:$AIC$2,Sheet2!$A$1:$AIC$1=A1),1)
 
Upvote 0
Thanks @Fluff for your reply.

I got the unique dates by your formula.

Unfortunately I was unable to make this working =TOCOL(FILTER(Sheet2!$A$2:$AIC$2,Sheet2!$A$1:$AIC$1=A1),1)

Here is my sample data. I have just added it on one sheet to make it a bit simple. In actual my data is in the Sheet 1 and need the result in Sheet 2 , When stacking the data for each date , I dont want the empty cells)
27/04/2024​
27/04/2024​
28/04/2024​
28/04/2024​
29/04/2024​
29/04/2024​
29/04/2024​
30/04/2024​
AEBLFQUX
BFCMGRVY
CGINNSWZ
DHJOOTA
KPB

below is the expected result
27/04/2024​
28/04/2024​
29/04/2024​
30/04/2024​
ABFX
BCGY
CINZ
DJOA
EKQB
FLR
GMS
HNT
OU
PV
W
 
Upvote 0
How about
Fluff.xlsm
ABCD
127/04/202428/04/202429/04/202430/04/2024
2ABFX
3ELQY
4BCUZ
5FMGA
6CIRB
7GNV
8DJN
9HOS
10KW
11PO
12T
Sheet2
Cell Formulas
RangeFormula
A1:D1A1=UNIQUE(TOROW(Sheet1!A1:AIC1,1),1)
A2:A9,D2:D6,C2:C12,B2:B11A2=TOCOL(FILTER(Sheet1!$A$2:$AIC$10,Sheet1!$A$1:$AIC$1=A1),1)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
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