+ Reply to Thread
Results 1 to 4 of 4

Merging Cells

Hybrid View

  1. #1
    Registered User
    Join Date
    03-26-2008
    Posts
    2

    Question Merging Cells

    Hi team, I have two columns that I want to merge, they both never contain records in the same row. The Concatenate function works fine except for that it merges values equal to zero . eg.. Column A Column B
    123 0
    0 45

    After Concatenating these two columns. My result would be 1230 and 045, but i really want 123 and 45. The remaining records in the columns are similiar, you wont find two records in a row. Always zero and a number.

  2. #2
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Try:

    =if(A1=0;B1;if(B1=0;A1;A1&B1))
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    steal_m

    Please read the forum rules

    When you signed up to this site you agreed not to post the same question to multiple forums

    Your duplicate thread have been deleted from the Excel Programming

    A thread with the rules is available at the top of each forum or see links below
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Registered User
    Join Date
    03-26-2008
    Posts
    2

    Thumbs up merged

    Hi Portuga, I made a simple modification to the function and it worked perfect. Thanks ok. =IF(A1=0,B1,A1)

+ 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