How do I pivot distinct values in Excel PivotTable fields editor?

AxD 691 Reputation points
2025-09-03T01:01:02.21+00:00

I have a table layout with different number of text values for each id column. Now, I'd like to pivot them, so that each id gets a single row and each text value is put into a different column of the id row:

Different number of columns and values

How can I do that using PivotTable Fields editor?

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. peiye zhu 320 Reputation points
    2025-09-12T04:45:07.1833333+00:00

    select * from Sheet1 limit 20;

    select f01,group_concat(f02,'</td><td>') text from Sheet1 group by 1; Screenshot_2025-09-12-12-43-19-161_com.mmbox.xbrowser.pro

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.