+ Reply to Thread
Results 1 to 6 of 6

Mixing two columns

  1. #1
    Registered User
    Join Date
    07-14-2009
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    52

    Question Mixing two columns

    when combining two columns using C1=A1&B1 formula, the column C only works until the columns A and B exist; and the column C does not work when deleting A or B.

    Can you suggest a solution to make an independent column from other columns ?
    Last edited by etrader; 07-16-2009 at 03:03 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Mixing two columns

    I'm not sure what you mean. How can you have a worksheet without a column A or B? Do you mean that A1 and B1 are empty? In any case, if you put into C1 the formula
    Please Login or Register  to view this content.
    it will always concatinate the values in A1 and B1. Please give an example.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Mixing two columns

    Etrader,

    That doesn't make too much sense to me. Can you post an example of the issue you're seeing?

    If there's nothing in A or B, the formula in C will return an empty string, "", and show nothing in the cell. Works as intended.

    If you delete the values in A or B, the formula in C still works.

    If you delete the CELL (e.g. right-click on cell, choose Delete, shift Up) then yes, the formula will freak out because it's now trying to reference a non-existent cell (resulting in a #REF! error).

    To avoid #REF! errors you could either not delete entire CELLS (just the values in them), or use a formula like:

    =INDEX(A:A,ROW())&INDEX(B:B,ROW())

  4. #4
    Registered User
    Join Date
    07-14-2009
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Mixing two columns

    Paul, you got my problem; but your solution did not resolved. For example:

    A B C
    First Name Last Name Last Name, First Name

    I want to mix columns A and B to create column C. After creating column C I do not need A and B anymore; thus I want to delete A and B. C will become A, as:

    A
    Last Name, First Name

  5. #5
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Mixing two columns

    Ok... after getting your results in column C, select column C and choose Edit -> Copy. Then choose Edit -> PasteSpecial -> Values. Column C will now be converted to static text instead of formulas. You can then delete columns A and B.

  6. #6
    Registered User
    Join Date
    07-14-2009
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Mixing two columns

    Perfect solution, Paul
    Now it works perfectly

+ 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