+ Reply to Thread
Results 1 to 4 of 4

Help please- Grad.Project - Merge ALL cells with same value in a sheet? [rows AND columns]

  1. #1
    Registered User
    Join Date
    05-11-2014
    MS-Off Ver
    Excel 2013
    Posts
    2

    Help please- Grad.Project - Merge ALL cells with same value in a sheet? [rows AND columns]

    Hello there,

    We are doing a graduation project on an international airport, consist of scheduling flights on check-in counters automatically.

    long story short, we ended up with an excel sheet like this:
    Screen_Shot_2014-05-11_at_4.png


    Were y-axis are the check-in counters and x-axis is the timeline horizon (cell per 5-minutes)

    I will do a VLOOKUP, to change each flight number to it's ID from an other sheet.

    But the problem is that i want to AUTO-MERGE all cells with same value, because they represent one flight! and if i shortened the column width i can't see anything.

    I want it to be like this: (i've done this manually, and it's VERY time consuming with errors because we have to do it for all days.)


    Screen_Shot_2014-05-11_at_46FDQO.png


    I googled for days, i only found Visual basic commands i guess? that only merge same rows. and they were poorly made. beside that it didn't work properly.

    Could anyone please help me with a method to do it automatically?


    EXCEL 2013


    Thanks a lot!


    NOTE: i only posted the question in mrexcel forums here, i wouldn't do it normally, but we are late for deadline. sorry.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Qu嶵ec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Help please- Grad.Project - Merge ALL cells with same value in a sheet? [rows AND colu

    Hi,
    Try this code :

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,735

    Re: Help please- Grad.Project - Merge ALL cells with same value in a sheet? [rows AND colu

    iJihad, an image attachment has very little value. Just attach the Excel file. It's easier than taking a screenshot first and then attaching that.

    Also, I note that your post says that this is Excel 2013 but your profile says Excel 2003. The difference can be important. Please update your profile to indicate your current Excel version. Thanks.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    05-11-2014
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Help please- Grad.Project - Merge ALL cells with same value in a sheet? [rows AND colu

    Quote Originally Posted by GC Excel View Post
    Hi,
    Try this code :

    Please Login or Register  to view this content.
    Thanks A LOT! this is amazing, it worked like a charm. Much thanks you helped me big time!

+ 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: 1
    Last Post: 10-01-2013, 05:38 PM
  2. Merge Duplicate Rows unique values into single rows for an infinite amount of columns/rows
    By aimeecrystalaid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2013, 08:43 PM
  3. [SOLVED] Merge multiple duplicate rows into columns - more than 65536 rows
    By a3des in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-05-2013, 09:18 AM
  4. Replies: 3
    Last Post: 09-04-2012, 02:28 AM
  5. [SOLVED] Merge duplicate rows and merge the columns (approx 10 columns)
    By adfeddon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2012, 11:19 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