+ Reply to Thread
Results 1 to 6 of 6

Concatenating Cells

  1. #1
    Registered User
    Join Date
    12-09-2005
    Posts
    2

    Unhappy Concatenating Cells

    I have spent hours this afternoon in Excel 2003 trying to concatenate two adjacent text columns into a third column defined as Text format. It doesn't work, the result cell just displays the formula you enter {e.g. =A1&B1 or =CONCATENATE(A1,B1)}.

    I discovered after a great deal of frustration that this will only work if the cell containing the formula is formatted as 'General'.

    All the MS command help refers to the data being concatenated as 'text' data as does the command help that displays as you type.

    I found no help on this on the MS site and trawling the web came up with nothing either.

    It seems incredible to me that a standard text operation like this will only work in a format of 'General' which is a pretty non-descript format anyway - 'General format cells have no specific number format' is the helpful description you get when applying this format to cells in Excel.

    ...or maybe I've missed something. Any help gratefully received.
    Many thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Hello,

    The Text you have in the first two columns should not matter what the format is. I think that the problem lies with the beginning format of the cells that you are entering the formula in.

    Start with formatting the cells where you are entering your formula as general. Enter the formula. Drag down as needed. Then change the formatting of those cells to Text if you want. It doesn't matter what formula you type in a cell, if it is formatted as Text, all you will get is the formula in Text. i.e. =A1+B1 will appear as is.

    HTH

    Cheers,

    Steve

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Actually, I believe both CONCATENATE and ref&ref method work for all number formats except TEXT. It sounds like your cells are formatted as TEXT (Format>Cells>Number tab>Category: TEXT) which would return the fomula and not it's returned value. Is that the case?

    Regards,
    Ron

  4. #4
    Registered User
    Join Date
    12-09-2005
    Posts
    2
    Thanks you two guys. Yes, you are right but doesn't it seem odd that a text manipulation function doesn't work with a result field pre-formatted as text!?
    John

  5. #5
    Sloth
    Guest

    RE: Concatenating Cells

    When you format a cell as text, you are not formatting the output; you are
    telling excel to show exactly what is entered (which in your case looks like
    a formula). Every other format is for manipulating numbers. And when text
    is the result of a formula it ignores any formatting, and shows the result
    exactly.

    "jbenet" wrote:

    >
    > I have spent hours this afternoon in Excel 2003 trying to concatenate
    > two adjacent text columns into a third column defined as Text format.
    > It doesn't work, the result cell just displays the formula you enter
    > {e.g. =A1&B1 or =CONCATENATE(A1,B1)}.
    >
    > I discovered after a great deal of frustration that this will only work
    > if the cell containing the formula is formatted as '*General'*.
    >
    > All the MS command help refers to the data being concatenated as 'text'
    > data as does the command help that displays as you type.
    >
    > I found no help on this on the MS site and trawling the web came up
    > with nothing either.
    >
    > It seems incredible to me that a standard text operation like this will
    > only work in a format of 'General' which is a pretty non-descript format
    > anyway - 'General format cells have no specific number format' is the
    > helpful description you get when applying this format to cells in
    > Excel.
    >
    > ...or maybe I've missed something. Any help gratefully received.
    > Many thanks.
    >
    >
    > --
    > jbenet
    > ------------------------------------------------------------------------
    > jbenet's Profile: http://www.excelforum.com/member.php...o&userid=29531
    > View this thread: http://www.excelforum.com/showthread...hreadid=492297
    >
    >


  6. #6
    JMay
    Guest

    Re: Concatenating Cells

    All spreadsheet formulas MUST begin with the "=" character (as originally
    designed by MS), however they
    expanded it to accomodate the Lotus 1-2-3 users by
    granting/allowing the "+" or "-" signs to enter formulas.

    Concatenation is a formula since it starts with the "="
    character. NO MATTER what, if a cell is formatted
    as Text the character "=" in the first position becomes
    text, NOT the mathmatical - operator "=".

    Does that help?


    "jbenet" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Thanks you two guys. Yes, you are right but doesn't it seem odd that a
    > text manipulation function doesn't work with a result field
    > pre-formatted as text!?
    > John
    >
    >
    > --
    > jbenet
    > ------------------------------------------------------------------------
    > jbenet's Profile:
    > http://www.excelforum.com/member.php...o&userid=29531
    > View this thread: http://www.excelforum.com/showthread...hreadid=492297
    >




+ 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