+ Reply to Thread
Results 1 to 11 of 11

Merging multiple Sub Numbers into a Cell

  1. #1
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    115

    Merging multiple Sub Numbers into a Cell

    Hello All,

    Could someone help me with below:

    As i am working on consolidating the numbers manually, whether will it possible for making this automatic.

    In Column "A" I have Multiple Duplicate Numbers and followed by the Different Sub Numbers in Column "B". Here i need to manually need to consolidate each number in Column "E" and this is followed by the multipl Sub Numbers in Column "F" in single cell with comma separated to each sub numbers.

    Example:

    Before Consolidation : (Column "A" & "B")

    Number Sub Number
    200400001 5
    200400001 8
    200400001 9
    200400001 11
    200400001 55
    200400001 A
    200400001 C
    200400001 D
    200400001 8
    200400001 9


    After Consolidation : (Column "E" & "F")
    Number Sub Number
    200400001 5,8,9,11,55,A,C,D,8,9

    Instead of doing this manually can we have the VBA to auto consolidate this numbers.

    Here by i am attaching sample file.
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Merging multiple Sub Numbers into a Cell

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    Please Login or Register  to view this content.
    Refer the attached file for details
    Attached Files Attached Files


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    115

    Re: Merging multiple Sub Numbers into a Cell

    Hi

    I am unable to run the VBA code.

  4. #4
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    115

    Re: Merging multiple Sub Numbers into a Cell

    Hi

    I am unable to run the VBA Code.

    Could you please help me on this.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Merging multiple Sub Numbers into a Cell

    It is an UDF not a Macro Code.

    Refer the attached file

  6. #6
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    115

    Re: Merging multiple Sub Numbers into a Cell

    If it is not a MAcro, how will it works??

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Merging multiple Sub Numbers into a Cell

    Quote Originally Posted by mvinay View Post
    If it is not a MAcro, how will it works??
    It is a User Defined Function like Vlookup() and other excel functions

    I have named it as Clookup (i.e.) Concatenated_Lookup is the hidden meaning of Clookup().

    Again refer the provided file

  8. #8
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    115

    Re: Merging multiple Sub Numbers into a Cell

    Got it Thank You so much

  9. #9
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    115

    Re: Merging multiple Sub Numbers into a Cell

    Hi,

    This is working, but i have huge data and this is consuming much time to run.

    Can i have the Macros for this so that i will provide the desired results for me once i run the macros.

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Merging multiple Sub Numbers into a Cell

    Try the attached.
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Merging multiple Sub Numbers into a Cell

    Try the attached.
    Attached Files Attached Files

+ 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. Merging multiple cells into a single cell with comma
    By faizaan316 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2013, 04:04 PM
  2. Merging multiple cells into one cell
    By jrg123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-09-2013, 11:08 AM
  3. Merging multiple cell rows across two columns
    By vikhound in forum Excel General
    Replies: 3
    Last Post: 12-17-2009, 02:01 PM
  4. Merging Cell contents accross multiple rows
    By Sugar Ape in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-14-2009, 12:23 PM
  5. multiple cell merging?
    By Coops in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-21-2005, 11:40 PM

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