+ Reply to Thread
Results 1 to 4 of 4

Merge cell contents into a text block?

  1. #1
    Registered User
    Join Date
    12-28-2007
    Posts
    5

    Merge cell contents into a text block?

    Hi,

    I need to merge the contents of an Excel 2007 workbook into a text document, creating a series of paragraphs that look like this:


    Text text text [contents of cell A1] text text text [contents of cell A1] text.

    Text text text [contents of cell A2] text text text [contents of cell A2] text.

    Etc.


    Apart from the cell contents, each paragraph will be identical. (I would do this by hand, but there are about 500 paragraphs.)

    Is there a way to merge the cell contents like that into a text document (Word or whatever)? Thanks!

    (P.S. I hope this was in the right forum area.)
    Last edited by satori; 10-31-2008 at 07:33 PM.

  2. #2
    Forum Contributor
    Join Date
    07-24-2008
    Location
    Athome
    MS-Off Ver
    Excel 2013
    Posts
    127
    i'm not sure about saving as Word document, but you can use the concatenate function to merge various cell contents.

    Eg.your spreadsheet may have this info
    Columns A, B
    Row 1: Test, formula

    In another cell your formula could be =concatenate(A1,B1) and the result would be Testformula.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Create a formula that catenates the necessary text, e.g.,

    ="Some text " & A1 & " some more text " & A1 & " the last of the text."

    Then paste-link that into Word, or do a mail merge.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    12-28-2007
    Posts
    5
    Quote Originally Posted by shg View Post
    Create a formula that catenates the necessary text, e.g.,

    ="Some text " & A1 & " some more text " & A1 & " the last of the text."

    Then paste-link that into Word, or do a mail merge.
    OK, that worked great - thanks very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1