Skip to main content
All CollectionsCSV Files
Combine CSV Data from Separate Columns
Combine CSV Data from Separate Columns

Combine Data from Separate Columns into a Single Cell

Updated over 2 weeks ago

To combine data from separate columns into a single cell with comma-separated values in both Microsoft Excel and Apple Numbers, you can use the following methods:

In Microsoft Excel:

  1. Using the TEXTJOIN Function (available in Excel 2016 and later):

    Assuming you have data in cells A1, B1, and C1 that you want to combine:

    =TEXTJOIN(",", TRUE, A1:C1)

    This formula concatenates the values in A1, B1, and C1, separating them with commas. The TRUE argument ensures that any empty cells are ignored.

  2. Using the Ampersand (&) Operator:

    For versions earlier than Excel 2016, or as an alternative method:

    =A1 & "," & B1 & "," & C1

    This formula concatenates the values in A1, B1, and C1, inserting commas between each value.

In Apple Numbers:

Apple Numbers does not have a direct equivalent to Excel's TEXTJOIN function, but you can achieve similar results using the CONCATENATE function or the ampersand (&) operator.

  1. Using the CONCATENATE Function:

    Assuming you have data in cells A1, B1, and C1:

    CONCATENATE(A1, ",", B1, ",", C1)

    This function combines the values in A1, B1, and C1, inserting commas between each value.

  2. Using the Ampersand (&) Operator:

    Alternatively, you can use:

    A1 & "," & B1 & "," & C1

    This method concatenates the values in A1, B1, and C1, with commas separating each value.

Note: Ensure that the cells you are combining contain text or numbers. If any cell is empty, the formulas will still insert the comma, which may result in consecutive commas in the output.

These methods allow you to merge data from multiple columns into a single cell with comma-separated values in both Excel and Numbers.

Did this answer your question?