+ Reply to Thread
Results 1 to 4 of 4

Combine cells only if different value

  1. #1
    Forum Contributor
    Join Date
    05-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    215

    Combine cells only if different value

    Hello everyone. Need some help with a quick formula.

    I am trying to create a formula to put in C1 that will combine combine A1 and B1 only if the content is different.

    Something like =A1&B1 but only combine if the contents are different.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Combine cells only if different value

    Try
    =IF(A1<>B1,A1&B1,"")
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    05-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    215

    Re: Combine cells only if different value

    That seems to work, but I forgot to mention that if a1 and b1 are the same, then only take A1

    So if A1 has the word hello and B1 has the word hello, then C1 will just report Hello

  4. #4
    Forum Contributor
    Join Date
    05-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    215

    Re: Combine cells only if different value

    Cross post, solution link below.

    http://www.mrexcel.com/forum/excel-q...ml#post4347938

    Sry nflsales I did not word this thread correctly.
    Last edited by wonderd; 11-20-2015 at 01:58 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Combine multiple cells text into one cell, skip blank cells.
    By T15K in forum Excel General
    Replies: 6
    Last Post: 12-05-2014, 09:49 PM
  2. [SOLVED] Macro to combine cells in a row to 1 cell while skipping blank cells
    By ywang in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2014, 10:39 AM
  3. [SOLVED] Macro to combine cells in a row to 1 cell while skipping blank cells
    By ywang in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2014, 07:41 PM
  4. [SOLVED] How to combine similar cells, while merging data in other cells
    By Sut703 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-27-2014, 04:17 PM
  5. [SOLVED] Combine cells in column A if the cells blank in between in columnB
    By coronakyk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-11-2014, 06:17 AM
  6. Combine multiple text cells if value exists in other cells
    By epoch555 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2014, 03:50 PM
  7. Combine Multiple cells into Single Cells
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2012, 05:41 AM

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