Dear @AxD,
Thank you for your inquiry regarding the layout of text values in a standard PivotTable.
In this case, please kindly allow me to provide some information with you: A standard PivotTable will not automatically spread each Text value into its own column for each ID. It will list them vertically.
To achieve your desired layout, I recommend using a formula-based approach leveraging Excel's dynamic array functions (available in Excel 365 and Excel 2021).
According to my test environment, here are these steps you can try and check if it helps:
Step 1: List Unique IDs
Assuming your data is in columns B (ID) and C (Text), starting from row 2, enter the following formula in cell E2:
=UNIQUE(B2:B10)
Step 2: Spread Text Values Horizontally for Each ID
In cell F2, enter the following formula and drag it to the right (e.g., G2, H2, etc.):
=IFERROR(INDEX($C$2:$C$100, SMALL(IF($B$2:$B$10=$E2, ROW($B$2:$B$10)-ROW($B$2)+1), COLUMN(A1))), "")
In older versions of Excel, please enter this as an array formula using Ctrl+Shift+Enter. In modern Excel, simply press Enter.
This method will dynamically list each text value in its own column for the corresponding ID, providing a more intuitive and structured view of your data.
I hope this information is helpful. Please follow these steps and let me know if it works for you.
Thank you for your patience and your understanding. If you have any questions, please feel free to reach out.
I'm looking forward for your reply.
If my answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread