Excel - pivot values in one cell (as comma-separated value)

Chris

Excel - pivot values in one cell (as comma-separated value)

I have two columns of data:

Supplier1|Product1
Supplier1|Product2
Supplier1|Product4
Supplier1|Product7
Supplier2|Product3
Supplier2|Product5

I want to 'pivot' around Supplier, and give the list of products in one single cell, comma-separated e.g.

Supplier1|Product1,Product2,Product4,Product7
Supplier2|Product3,Product5

There's about 1000 suppliers, and 0 < products <= 10.

My current workaround involves using pivot tables, saving as CSV etc and is very messy. A non-VBA solution would be amazing.

F106dart

Here's a non-VBA, non-pivot table solution that only uses a couple of formulas.

  1. First, I used the "Text-to-columns" to split your data at that "pipe" delimiter (the vertical line) into 2 columns; a "Supplier" column and a "Product" column. Those go in columns A and B, respectively. (It appears in your post that they are combined in one column, so I first split them apart. You won't have to do this.)

  2. In column C, which I named as the "Concatenation" column, I used this formula, starting in cell C2 and copying all the way down: =IF(A2=A1,C1&", " & B2,A2&"|"&B2)

  3. In column D, which I named as "SupplierChangesAtNextLine?" I used this formula (starting in D2 and copying all the way down): =IF(A2=A3,"","Changed")

  4. You should now be able to filter on column D for only the "changed" values.

Good hunting!

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

is there a one cell formula for getting a comma separated list with increasing numbers in EXCEL

From Dev

Display all matching values in one comma separated cell

From Dev

PIVOT row values into rows and columns side by side dynamically and concatenate 2 values separated by comma in a cell

From Dev

MySQL - Pivot rows to comma separated values

From Dev

Excel - count occurrences in row and comma separated cell

From Dev

Get maximum of comma-separated values in a cell

From Dev

Matching multiple comma separated values in a cell

From Dev

Turn a value range in a cell into a comma separated list

From Dev

Turn a value range in a cell into a comma separated list

From Dev

How to put a comma separated value to a numpy cell

From Dev

Combine multiple email addresses (in separate cells) into one cell (separated by comma) Google Sheets or Excel

From Dev

Excel: Comma separated values inside a cell - explode into more rows made with every combination

From Dev

How to lookup a value and return multiple unique values (remove duplicates) to a single cell - comma separated

From Dev

How to get comma-separated values in excel?

From Dev

Excel, split up comma separated values

From Dev

Unique values from a comma separated column in Excel

From Dev

Splitting a column value into list of values separated by comma

From Dev

How to check with a value in comma separated values in MySQL?

From Dev

Get unique values from a comma separated values in a cell

From Dev

Lookup multiple values in a single cell (separated by commas) and then return the values to a single cell (also comma separated)

From Dev

Is there a simple way to parse comma separated Key:Value pairs in Excel, Power Query or VBA if the values contain unescaped commas?

From Dev

Is there a simple way to parse comma separated Key:Value pairs in Excel, Power Query or VBA if the values contain unescaped commas?

From Dev

Excel: Dynamically extract comma separated values and return an added value from a separate list

From Dev

check single value from one table with table with multiple values separated by comma

From Dev

How to sum values separated by semicolon in excel cell

From Dev

Need formula to vlookup comma separated values in a single cell

From Dev

vlookup for comma separated cell value with refrence from another sheet

From Dev

How to count multiple values in one single cell using Pivot Tables in Excel?

From Dev

How to count multiple values in one single cell using Pivot Tables in Excel?

Related Related

  1. 1

    is there a one cell formula for getting a comma separated list with increasing numbers in EXCEL

  2. 2

    Display all matching values in one comma separated cell

  3. 3

    PIVOT row values into rows and columns side by side dynamically and concatenate 2 values separated by comma in a cell

  4. 4

    MySQL - Pivot rows to comma separated values

  5. 5

    Excel - count occurrences in row and comma separated cell

  6. 6

    Get maximum of comma-separated values in a cell

  7. 7

    Matching multiple comma separated values in a cell

  8. 8

    Turn a value range in a cell into a comma separated list

  9. 9

    Turn a value range in a cell into a comma separated list

  10. 10

    How to put a comma separated value to a numpy cell

  11. 11

    Combine multiple email addresses (in separate cells) into one cell (separated by comma) Google Sheets or Excel

  12. 12

    Excel: Comma separated values inside a cell - explode into more rows made with every combination

  13. 13

    How to lookup a value and return multiple unique values (remove duplicates) to a single cell - comma separated

  14. 14

    How to get comma-separated values in excel?

  15. 15

    Excel, split up comma separated values

  16. 16

    Unique values from a comma separated column in Excel

  17. 17

    Splitting a column value into list of values separated by comma

  18. 18

    How to check with a value in comma separated values in MySQL?

  19. 19

    Get unique values from a comma separated values in a cell

  20. 20

    Lookup multiple values in a single cell (separated by commas) and then return the values to a single cell (also comma separated)

  21. 21

    Is there a simple way to parse comma separated Key:Value pairs in Excel, Power Query or VBA if the values contain unescaped commas?

  22. 22

    Is there a simple way to parse comma separated Key:Value pairs in Excel, Power Query or VBA if the values contain unescaped commas?

  23. 23

    Excel: Dynamically extract comma separated values and return an added value from a separate list

  24. 24

    check single value from one table with table with multiple values separated by comma

  25. 25

    How to sum values separated by semicolon in excel cell

  26. 26

    Need formula to vlookup comma separated values in a single cell

  27. 27

    vlookup for comma separated cell value with refrence from another sheet

  28. 28

    How to count multiple values in one single cell using Pivot Tables in Excel?

  29. 29

    How to count multiple values in one single cell using Pivot Tables in Excel?

HotTag

Archive