Share via

Combine rows of text in Excel into a single row without losing the data - Excel functions do not work

Anonymous
2022-08-29T01:11:24+00:00

Hello,

I need to combine thousands of rows of Excel data (usually 3 or four rows at a time) into single rows without losing the data, so that let's say text data displayed in 4,000 Excel rows, is shown in 1,2000 without losing the data. At the moment, I am manually and painfully (repetitive stress injury) copying and pasting the data and formatting it into the desired Excel cell.

I know that Excel has functions (like using the "&" symbol to combine text data from let's say cells in A1 to A3, into A4, I would use =A1&A2&A3). However, this does not work, as the cell where the data is supposed to be displayed only shows the actual formula I have typed in.

Similarly, Excel's "TEXTJOIN", 'CONCAT" OR "CONCATENATE" functions do not work for me, as even though the formula is entered correctly, the cell where the merged text data is supposed to be displayed only shows "the Excel formula I typed in".

Does anyone have any idea how the row containing thousands of rows of text has to be formatted in order for the Excel formulas above to work?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2022-08-30T01:44:55+00:00

    Excel 365 Pro Plus with Power Pivot and Power Query.

    Concatenate blocks of 3 to 5 rows of data into single rows.

    No formulas, no VBA macro.

    Database is 400 rows of painfully typed in unique names and addresses.

    https://www.mediafire.com/file/5f0wpp1t1kbesks/08_29_22.xlsx/file

    https://www.mediafire.com/file/uun374kxd5ppb7l/08_29_22.pdf/file

    4 people found this answer helpful.
    0 comments No comments
  2. OssieMac 48,001 Reputation points Volunteer Moderator
    2022-08-29T01:38:56+00:00

    The reason that only the formula is displayed is probably because the cell where the formula resides is in "Text" format.

    Before entering the formulas, select the column where you require the formulas and use the "Number format" to format as "General"

    If you already have the formulas and you want the formulas to convert to the values after converting the text format to general format, you will need to select each cell in turn and press F2 followed by Enter.

    3 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2022-08-29T03:40:42+00:00

    Thank you.

    This has solved my problem. Actually, what I did is copy the entire contents of the initial worksheet into a separate worksheet formatted "general" and I was able to apply the formulas there.

    My next problem is that (in using the CONCAT function to combine the text of different cells) the source data that must be combined is sometimes across one, sometimes across two, sometimes across three and sometimes across four different rows. What I am doing is copying the CONCAT formula (just using Ctrl+C and CTRL+V) for each situation (e.g. there are four CONCAT formulas - whether the data combined is either in two, three, four or five rows). However, this deals only with the data in one column.

    I then have to match data in other columns from the source spreadsheet manually, so that everything I need is neatly in Columns A, B, C, D and E. I wish there was easier way, as I still have to manually delete the "empty rows" of data in the final spreadsheet. I am not allowed to use macros.

    Thank you for your reply.

    1 person found this answer helpful.
    0 comments No comments
  4. OssieMac 48,001 Reputation points Volunteer Moderator
    2022-08-29T07:10:34+00:00

    Unfortunately I cannot visualize what you have as the source data or what you require for the output. Therefore, to assist you further, I really need a copy of the source data plus a copy of the required output.

    Does not need to be all of the data. Just copy a sample of the data to a new workbook

    If the data contains sensitive data then replace the sensitive data with dummy data.

    Then upload the sample workbook to OneDrive as follows.

    Not sure if you need assistance to upload a file for sharing on OneDrive but in case you do, the following are guidelines to do so.

    Note that sharing a link to a specific file on OneDrive does not give me access to any other files on your OneDrive and in fact I cannot even see the file list. (If you already use OneDrive and your process for saving to it is different then you can probably start at step 6 to get the link but please zip the file before uploading.)

    Sharing links to business OneDrive often does not work because the business has applied security measures that prevent this. Some people upload from their own private OneDrive.

    1. Zip your workbooks. Do not just save an unzipped workbook to OneDrive for these purposes because the workbooks open with On-Line Excel and the limited functionality with the On-Line version causes problems.
    2. To Zip a file: In Windows Explorer Right click on the selected file and select Send to -> Compressed (zipped) folder). By holding the Ctrl key and left click once on each file, you can select multiple workbooks before right clicking over one of the selections to send to a compressed file and they will all be included into the one Zip file. Do not use 3rd party compression applications because I cannot unzip them.
    3. Go to this link.  https://onedrive.live.com Use the same login Id and Password that you use for this forum.
    4. Select Upload under the blue bar across the top and browse to the zipped folder to be uploaded.
    5. Select Open (or just double click). (Be patient and give it time to display the file after initially seeing the popup indicating it is done.)
    6. Right click the file name in OneDrive.
    7. Select Share.
    8. Click the link icon (Looks like chain links) at the bottom left of the dialog (Just above "Copy link").
    9. Click Copy button.
    10. Change back to this forum and paste the link.
    0 comments No comments
  5. Anonymous
    2022-08-29T07:06:08+00:00

    . . .

    My next problem is that (in using the CONCAT function to combine the text of different cells) the source data that must be combined is sometimes across one, sometimes across two, sometimes across three and sometimes across four different rows. What I am doing is copying the CONCAT formula (just using Ctrl+C and CTRL+V) for each situation (e.g. there are four CONCAT formulas - whether the data combined is either in two, three, four or five rows). However, this deals only with the data in one column.

    I then have to match data in other columns from the source spreadsheet manually, so that everything I need is neatly in Columns A, B, C, D and E. I wish there was easier way, as I still have to manually delete the "empty rows" of data in the final spreadsheet. I am not allowed to use macros . . .

    To enable the Community to assist You, please share a sample workbook (via OneDrive, Dropbox, WeTransfer, etc.)

    In the Workbook, 2 points should be clear:

    - Your dataset

    - The expected result

    Thank You!

    0 comments No comments