+ Reply to Thread
Results 1 to 10 of 10

If formula merge data into cell

  1. #1
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    If formula merge data into cell

    Hi,
    I have data in 3 columns, I want to merge data into 1 cell from several rows, I think I can not describe better, If you see Picture you can understand what I need data, I need formula, any expert can help on this?

    Thanks in Advance.

    Regards.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: If formula merge data into cell

    Please try at
    D3
    =IF(B3=B4,C3&","&D4,C3)

    E3
    =IF(B2=B3,"",A3&","&B3&","&D3)

    or if you have Excel365
    F3
    =IF(B2=B3,"",A3&","&B3&","&TEXTJOIN(",",,INDEX(REPT($C$3:$C$21,($B$3:$B$21=B3)*($A$3:$A$21=A3)),)))
    Attached Files Attached Files
    Last edited by Bo_Ry; 07-24-2019 at 02:09 AM. Reason: wrong result, revise formula

  3. #3
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: If formula merge data into cell

    Hi Bo_Ry,
    Thanks for helping, F3 formula is good and result as per I want but I'm using Ms Excel 2007 and it is not working on here.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: If formula merge data into cell

    F3 is an alternative - either the formula for D3 or the one for E3 should work for you. Just adapt them as required.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: If formula merge data into cell

    Thank AliG, it is working.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: If formula merge data into cell

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  7. #7
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: If formula merge data into cell

    Thanks, Already Marked as RESOLVED.

  8. #8
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: If formula merge data into cell

    Hi again,
    I just need minor amendment, I want comma below data, I have shared screenshot, after picture you will understand.

    Thank You.
    Attached Images Attached Images

  9. #9
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: If formula merge data into cell

    1st row with semicolon but if also data in below column there comma will be use.

  10. #10
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: If formula merge data into cell

    E3
    =if(b2=b3,"",a3&";"&b3&";"&d3)

+ 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. Entering Formula in a Cell Merge
    By RJ1969 in forum Excel General
    Replies: 4
    Last Post: 09-24-2018, 03:37 PM
  2. Replies: 2
    Last Post: 04-30-2017, 08:28 PM
  3. Need Formula To Merge Data
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2017, 04:47 AM
  4. Replies: 5
    Last Post: 03-25-2014, 05:04 PM
  5. Replies: 5
    Last Post: 11-21-2013, 06:00 PM
  6. [SOLVED] Delete duplicate data column A and merge data in colum B into single cell
    By GAIMoore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2013, 04:17 PM
  7. Replies: 4
    Last Post: 09-02-2012, 07:49 AM

Tags for this Thread

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