+ Reply to Thread
Results 1 to 7 of 7

Combine contents of columns

  1. #1
    Registered User
    Join Date
    04-20-2010
    Location
    Here, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Combine contents of columns

    I have a spreadsheet which has 3 columns and around 1400 rows. Each row contains either a 1, 2 or a 3, depending on which column it is. 1 for column 1, 2 for column 2 and a 3 for column 3.
    Occasionally, a few rows have both a 1 and a 3.
    I need to make this only one column. Is there a way to merge the contents of all of the columns without losing the cell data?
    Last edited by boristhemoggy; 04-21-2010 at 06:28 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How can I combine the contents of 3 columns?

    Not sure what you mean,maybe in Column D

    =A1+B1+C1
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: How can I combine the contents of 3 columns?

    Try this:

    =CONCATENATE(H2, I2, J2)

    extend formula down
    copy column
    paste spetial -> values

  4. #4
    Registered User
    Join Date
    04-20-2010
    Location
    Here, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How can I combine the contents of 3 columns?

    Quote Originally Posted by zbor View Post
    Try this:

    =CONCATENATE(H2, I2, J2)

    extend formula down
    copy column
    paste spetial -> values
    Sorry for appearing dumb, but where would I put that formula? Which row, which cell and which column?
    copy column and paste spetial values, I've no idea what this means.
    I appreciate you trying to help but I don't understand what to do with your answer.
    Edit: I just checked excel's built in help. It does mention concatenate, but this is Microsoft help, so it doesn't explain how to actually use the concatenate command.
    Last edited by boristhemoggy; 04-20-2010 at 04:04 PM.

  5. #5
    Registered User
    Join Date
    04-20-2010
    Location
    Here, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How can I combine the contents of 3 columns?

    Quote Originally Posted by royUK View Post
    Not sure what you mean,maybe in Column D

    =A1+B1+C1
    I'm at a loss to know how to actually make this clearer.
    I don't want to add them together, I want all the info from all 4 columns, in one column instead of four.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How can I combine the contents of 3 columns?

    in another column either use concatenate and drag down, or just use &
    =a1&b1&c1&d1 if you want them separated add the space
    =a1&" "&b1&" "&c1&" "&d1 to remove excessive
    spaces wrap that up in trim()
    =trim(a1&" "&b1&" "&c1&" "&d1)
    copy/paste special values removes the formula and just leaves the results.
    copy the column then instead of just using paste click edit choose paste special and select the values option click ok
    Last edited by martindwilson; 04-20-2010 at 05:20 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    04-20-2010
    Location
    Here, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How can I combine the contents of 3 columns?

    Quote Originally Posted by martindwilson View Post
    in another column either use concatenate and drag down, or just use &
    =a1&b1&c1&d1 if you want them separated add the space
    =a1&" "&b1&" "&c1&" "&d1 to remove excessive
    spaces wrap that up in trim()
    =trim(a1&" "&b1&" "&c1&" "&d1)
    copy/paste special values removes the formula and just leaves the results.
    copy the column then instead of just using paste click edit choose paste special and select the values option click ok
    I thought I had it there. I am using the string below....
    =CONCATENATE(D2," ",E2, " ", F2," ",G2,)
    It works fine except for just over 200 entries which are listed as 2-3/14 or 4-3/21
    What happens here is that despite this number being in one cell and not having to be concatenated, the routine brings the numbers out as 3/14 and 3/21
    So it's losing the number before the dash.
    Grrr I coulda had this done by hand by now.


    I also use the string =B2&" "&C2&" "&D2&" "&E2
    This does basically the same except it works for some cells in the format 4-3/21, but not all of them for some weird reason.
    I have looked at another help file which describes how to paste special values and what you have to copy, and where you paste it eludes me still. I have 5 columns, which one do I copy and where do I paste it?

    Here's another anomaly.
    If I correct one of the cells, by manually entering 16-1/29 excel will automatically change it to a date, no matter what I do. lol
    I would seriously like some advice here cos none of this makes sense and if I can't get the spreadsheet to do it, I'm going to have to spend a couple of nights doing it all by hand.
    Last edited by boristhemoggy; 04-21-2010 at 02:49 PM.

+ 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