+ Reply to Thread
Results 1 to 4 of 4

Move Cells Upwards To Combine Entries Using VBA

  1. #1
    Registered User
    Join Date
    04-15-2022
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    1

    Question Move Cells Upwards To Combine Entries Using VBA

    Cross-posted at https://www.mrexcel.com/board/thread...g-vba.1202378/ --6SJ

    I run a ticketing system that gives raw data as below :
    1) Each ticket I.D. has 3 categories of waiting time, and some other details
    2) If Ticket A has all 3 categories, then A to K of row 1-3 will show the same ticket info, but then cells L1-P1 will show the data of waiting time 1, cells L2-P2 waiting time 2 and so on
    3) A ticket will only have a minimum of 1 entry and a maximum of 3 entries
    4) Combinations of waiting time 1 and 3, 1 and 2, or 2 and 3 may occur
    5) The raw data table has already sorted the list so that the same tickets sit in rows next to each other
    6) This table of data has to be presented on a regular basis

    I want to present each ticket in one same row such that the info for all categories of waiting time in rows becomes in columns, i.e. : Ticket A will only take row 1, but cells A - K is ticket data, L - P is info for waiting time 1, Q - U is info for waiting time 2 and so on. This ticketing system has around 1000 entries in one go. The attached picture shows the raw data (above) and what is required (below). I have tried my hardest but I really couldn't figure out a way in the macro. :')
    Attached Files Attached Files
    Last edited by 6StringJazzer; 04-15-2022 at 09:40 AM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Move Cells Upwards To Combine Entries Using VBA

    I suggest using dictionary for this. I will come back when I am at PC.
    Good luck.
    Quang PT

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,265

    Re: Move Cells Upwards To Combine Entries Using VBA

    Please Login or Register  to view this content.
    Output on Sheet2
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

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

    Re: Move Cells Upwards To Combine Entries Using VBA

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    I have added the link for you since this is your first post. But before posting again please take the time to review our rules. There aren't many, and they are all important.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. move data upwards to a blank row and delete all blank rows below
    By RIZVI in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2019, 09:31 AM
  2. [SOLVED] Count Cells in a Row Starting From 9/1/2018 and upwards
    By NotMuchCode in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2018, 08:37 PM
  3. [SOLVED] Move Non-Zero row entries up to occupy Zero row entries. Rows deletion not allowed
    By chancw in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-08-2013, 03:57 AM
  4. Counting cells upwards until blank then printing, how to do?
    By UsmanBPD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2013, 07:37 AM
  5. Replies: 5
    Last Post: 02-10-2013, 07:59 AM
  6. Move userform TextBox entries to cells on a sheet
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-09-2011, 10:33 AM
  7. Replies: 5
    Last Post: 12-10-2010, 05:49 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