+ Reply to Thread
Results 1 to 4 of 4

Insert rows to the top of the sheet that meet specific criteria.

  1. #1
    Registered User
    Join Date
    12-09-2019
    Location
    Guelph, Canada
    MS-Off Ver
    office 365
    Posts
    8

    Insert rows to the top of the sheet that meet specific criteria.

    I've been at this for a while now and I'm really at a loss here. If anyone could help me out that'd be great.

    I'm trying insert the rows of data where values greater than -0.507 in column L are inserted to the top of the active sheet.

    data.png
    This is what the data looks.

    I want to be able to run a macros that flags rows with values greater than -0.507 in column and insert that row to top of the sheet.

    The data is exported over 100 times a day from an analytical instrument every 5 minutes while continuously running samples. We've tried filtering and sorting, it gets in the way of operations and my boss doesn't like that.

    So far I've only been able to color the cells and it's hard to scroll through sheets with over 5000 rows of data. Thank you in advance.
    Attached Files Attached Files
    Last edited by unmasked_crusader; 12-09-2019 at 09:33 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Insert rows to the top of the sheet that meet specific criteria.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Insert rows to the top of the sheet that meet specific criteria.

    Since you have not provided a working file to test, here is some air code for you to try.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-09-2019
    Location
    Guelph, Canada
    MS-Off Ver
    office 365
    Posts
    8

    Re: Insert rows to the top of the sheet that meet specific criteria.

    I'm sorry for the delay I was having trouble uploading the attachment. It should be uploaded right now. Thank you for the vba code, I'll test it out.

+ 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: 4
    Last Post: 08-05-2015, 04:48 PM
  2. [SOLVED] Add rows after a specific criteria meet
    By Konexcelmath in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-12-2014, 05:51 PM
  3. specific count when rows meet certain criteria
    By D Thomas in forum Excel General
    Replies: 0
    Last Post: 01-13-2013, 08:35 PM
  4. Delete rows which do not meet specific criteria (text values)
    By dim06 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2012, 09:54 AM
  5. Cut rows that do not meet certain criteria to other sheet
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 04-13-2011, 05:27 PM
  6. sum rows that meet a specific criteria
    By mase062006 in forum Excel General
    Replies: 1
    Last Post: 09-04-2008, 02:32 AM
  7. Delete rows that do not meet specific criteria
    By SITCFanTN in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2006, 11:36 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