+ Reply to Thread
Results 1 to 21 of 21

Merge and Un-merge issue

  1. #1
    Registered User
    Join Date
    10-06-2016
    Location
    Lahore
    MS-Off Ver
    2016
    Posts
    19

    Merge and Un-merge issue

    As i extract report from MIS, It has multiple row merged together.

    When un-merged, It creates additional spaces vertically

    Need Output in this one liner format using the Actual extract

    This Ref # spans over 7 rows, all records have different number of rows merged together.

    excel.jpg

    kindly help, thanks !

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Merge and Un-merge issue

    Select entire sheet. Click on column width "A".
    Go to "Alignment > click on "Middle Align".

  3. #3
    Registered User
    Join Date
    10-06-2016
    Location
    Lahore
    MS-Off Ver
    2016
    Posts
    19

    Re: Merge and Un-merge issue

    Sorry, didnt work.
    My requirement is to concatenate contents of cells in one cell for one reference number, count of cells varies for each reference number.
    I am unable to upload excel file here, can you please guide how to attach excel file ?

  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,806

    Re: Merge and Un-merge issue

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    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
    Registered User
    Join Date
    10-06-2016
    Location
    Lahore
    MS-Off Ver
    2016
    Posts
    19

    Re: Merge and Un-merge issue

    + Attachment
    Attached Files Attached Files

  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,806

    Re: Merge and Un-merge issue

    I'm using Excel 2016 and when I un-merge cell B3, it places the entire cell contents onto one line.

  7. #7
    Registered User
    Join Date
    10-06-2016
    Location
    Lahore
    MS-Off Ver
    2016
    Posts
    19

    Re: Merge and Un-merge issue

    ALiGw, i am trying to use "IF"formula as well but cant seem to build one, as the count of rows varies for each reference.
    Kindly guide how to concatenate contents from different cells vertically (without a pattern)..

  8. #8
    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,806

    Re: Merge and Un-merge issue

    Do not un-merge the cells. Type this into C3 and copy down:

    =IF(ISBLANK(B3),"",B3)

    Then select column C and copy paste values over the top. Finally delete column B.

  9. #9
    Registered User
    Join Date
    10-06-2016
    Location
    Lahore
    MS-Off Ver
    2016
    Posts
    19

    Re: Merge and Un-merge issue

    this will help me in explaining the requirement.. please see. thanks !
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-06-2016
    Location
    Lahore
    MS-Off Ver
    2016
    Posts
    19

    Re: Merge and Un-merge issue

    to rephrase it, its a Concatenation problem..

  11. #11
    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,806

    Re: Merge and Un-merge issue

    That is a completely different scenario! Presumably you are looking for the alternative solution listed?

  12. #12
    Registered User
    Join Date
    10-06-2016
    Location
    Lahore
    MS-Off Ver
    2016
    Posts
    19

    Re: Merge and Un-merge issue

    i guess these are same things, i presume the problem can be either be solved using merge and un-merge or preferably IF+Concatenate ...
    cant seem to be formulating the second option... :/ please help thanks !

  13. #13
    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,806

    Re: Merge and Un-merge issue

    Please answer the question: which of the two outputs you have given is the one you want? Are you likely to shift the goalposts again? In other words, is there anything else about this scenario that we ought to know now? Remember the solution offered will be tailored to the information and data you provide.

  14. #14
    Registered User
    Join Date
    10-06-2016
    Location
    Lahore
    MS-Off Ver
    2016
    Posts
    19

    Re: Merge and Un-merge issue

    Sorry, the goal is the same, i couldn't explain the exact requirement.
    Basically, i need a concatenated output (in 3rd column) for the same reference/serial numbers (1st column) using the data in cells of 2nd column.
    Hope this will help.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    10-06-2016
    Location
    Lahore
    MS-Off Ver
    2016
    Posts
    19

    Re: Merge and Un-merge issue

    anyone please .....

  16. #16
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Merge and Un-merge issue

    Quote Originally Posted by TheDtox View Post
    this will help me in explaining the requirement.. please see. thanks !
    Go to "B3" Cell > Right Click > select "Format Cell" > Untick merge Cell & Tick Wrap Text (Refer Attacment) > Click "OK" > Click on Top of the "B" Column.
    Attached Images Attached Images

  17. #17
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Merge and Un-merge issue

    Quote Originally Posted by TheDtox View Post
    Sorry, the goal is the same, i couldn't explain the exact requirement.
    Basically, i need a concatenated output (in 3rd column) for the same reference/serial numbers (1st column) using the data in cells of 2nd column.
    Hope this will help.
    Refer attach file. Hope your problem resolved.
    Attached Files Attached Files

  18. #18
    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,806

    Re: Merge and Un-merge issue

    Quote Originally Posted by avk View Post
    Refer attach file. Hope your problem resolved.
    I don't think it is. The OP is looking for an automated solution: with yours, each concatenation statement has to be set up manually.

  19. #19
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Merge and Un-merge issue

    Quote Originally Posted by AliGW View Post
    I don't think it is. The OP is looking for an automated solution: with yours, each concatenation statement has to be set up manually.
    As per "TheDtox" Posting 10-19-2016, 09:24 AM : Concatenated Output is same which i have using formula >
    c3 =CONCATENATE(B3," ",B4," ",B5," ",B6)
    c7 =CONCATENATE(B7," ",B8," ",B9," ",B10," ",B11)
    c12 =CONCATENATE(B12," ",B13," ",B14)
    c15 =CONCATENATE(B15," ",B16," ",B17," ",B18)

  20. #20
    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,806

    Re: Merge and Un-merge issue

    Quote Originally Posted by avk View Post
    As per "TheDtox" Posting 10-19-2016, 09:24 AM : Concatenated Output is same which i have using formula >
    c3 =CONCATENATE(B3," ",B4," ",B5," ",B6)
    c7 =CONCATENATE(B7," ",B8," ",B9," ",B10," ",B11)
    c12 =CONCATENATE(B12," ",B13," ",B14)
    c15 =CONCATENATE(B15," ",B16," ",B17," ",B18)
    Yes, the results are correct, but it is NOT the process that TheDtox has requested. This is a MANUAL solution, not an AUTOMATED one: you need to provide a formula that can be entered in C3 and dragged down as far as is required.

    From post #7:

    ALiGw, i am trying to use "IF"formula as well but cant seem to build one, as the count of rows varies for each reference.
    Last edited by AliGW; 10-26-2016 at 08:12 AM.

  21. #21
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Merge and Un-merge issue

    Hello
    If you're willing to use VBA, a UDF (user defined function) could do this with the help of COUNTIF. For example, the UDF would be something like:

    Please Login or Register  to view this content.
    And the sheet formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Does this help?
    DBY
    Last edited by DBY; 10-26-2016 at 08:26 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. Replies: 0
    Last Post: 06-24-2015, 02:34 AM
  2. Email merge from excel merge file using pre-saved word template
    By d_max_c in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2014, 12:33 PM
  3. Replies: 2
    Last Post: 01-22-2013, 11:37 AM
  4. Email Merge with variable merge records break by client level
    By sss047 in forum Word Formatting & General
    Replies: 0
    Last Post: 04-15-2011, 04:25 AM
  5. Merge 2 Worksheets (Same concept as RegEdit Merge or Outlook Vcard)
    By stevedes7 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-20-2009, 11:17 PM
  6. Replies: 0
    Last Post: 04-21-2006, 03:40 PM
  7. [SOLVED] merge with Word How can I get excel to mail merge zip codes plus 4 correctly?
    By Kathy at Sauder Feeds in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-30-2005, 07:05 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