+ Reply to Thread
Results 1 to 7 of 7

How to combine different types of data

  1. #1
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    How to combine different types of data

    I have the following 5 cells with different types of data in each cell.

    EX: 21509.....CA.....0615pm.....mg.....2348

    What I need, if possible, is to automatically have all of the data in these cells combined into one cell as follows: 21509CA0615pmmg2348

    If any of the 5 cells are changed, the combined cell is also changed.
    Last edited by Launchnet; 11-22-2009 at 12:16 AM. Reason: Needed spaces to indicate cells
    Thanks for helping . . .
    Matt @ Launchnet

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

    Re: How to combine different types of data

    =a1&b1&c1&d1&e1
    if thats a real time you'll need
    =a1&b1&TEXT(c1,"h:mm AM/PM")&d1&e1
    Last edited by martindwilson; 11-21-2009 at 10:34 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

  3. #3
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How to combine different types of data

    The time is not real time.

    I tried and typed the formula into a separate cell.

    All I see displayed is the formula

    All cells are formatted as text.

    I also tried =a1+b1+c1+d1+e1 and that doesn't work either.

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

    Re: How to combine different types of data

    you must have the cell with the formula formatted general first
    both examples shown
    Attached Files Attached Files
    Last edited by martindwilson; 11-21-2009 at 11:09 PM.

  5. #5
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How to combine different types of data

    I set the result cell to General Formatting

    This is the formula that I have in cell B25 =b12&b13&b14&b15&b16

    Only the formula shows

  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 to combine different types of data

    see my last post attached workbook
    do any formulas work eg try in b25 =b12 on its own
    and try clicking the = sign next to the formula bar then click ok
    it wont like it if its text when you enter the formula and change the format after to general
    its also possible that show formulas is turned on
    tools/options/view uncheck formulas
    Last edited by martindwilson; 11-21-2009 at 11:17 PM.

  7. #7
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How to combine different types of data

    No formulas work except for =a1 . . . As soon as I add the next cell's address it displays only the formula =a1&b1

    Left of my formula bar it shows fx . . . No = sign

    I also tried in new cell and it still doesn't work

    I finally cleared "ALL" from cell B25. Checked the format and it was general.
    Then I typed in the entire formula. It worked.

    But, you can not change the formula, as then it won't work again. I don't need to change the formula, SO IT WORKS OK.

    Good Follow Thru

    I'll mark the thread solved.

+ 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