Apr 21 2024 03:20 PM
Please can anyone assist me on how I can easily transpose this data on the left A-C so it looks like the one on the right E-G, the idea is to have a simple order sheet for the client to add the quantity they want then transpose the data to look like (Column E-G)
Thank you!
Apr 21 2024 05:40 PM
Solution@Mikedem007 With Excel for MS365 or Excel for the web:
=LET(
names, B3:C3, codes, A4:A8, data, B4:C8,
is_data, NOT(ISBLANK(data)),
HSTACK(
TOCOL(IFS(is_data, names), 2, TRUE),
TOCOL(IFS(is_data, codes), 2, TRUE),
TOCOL(data, 1, TRUE)
)
)
Apr 22 2024 06:44 AM
Apr 22 2024 08:23 AM
An alternative could be Power Query. In the attached file you can add data to the blue dynamic table. Then you can click in any cell of the green table and right-click with the mouse and select refresh to update the green result table.
The data layout in the attached file is for illustration. You can place the green result table anywhere in the same worksheet or in another worksheet.
Apr 22 2024 11:11 AM
@OliverScheurich Dear Oliver
Brilliant!! thank you I downloaded the attached example and it works perfect.
Really appreciate your help
Apr 21 2024 05:40 PM
Solution@Mikedem007 With Excel for MS365 or Excel for the web:
=LET(
names, B3:C3, codes, A4:A8, data, B4:C8,
is_data, NOT(ISBLANK(data)),
HSTACK(
TOCOL(IFS(is_data, names), 2, TRUE),
TOCOL(IFS(is_data, codes), 2, TRUE),
TOCOL(data, 1, TRUE)
)
)