+ Reply to Thread
Results 1 to 4 of 4

Extracting the data range between two values

  1. #1
    Registered User
    Join Date
    11-10-2018
    Location
    Krakow, Poland
    MS-Off Ver
    2010, 2016
    Posts
    4

    Extracting the data range between two values

    Hello!

    In the AAA Spreadsheet, I have a range of data from which I would like to draw only the values contained in the lines between "start" and "end" and insert them into the BBB Sheet.

    I have written a macro that only inserts the last found range into the BBB sheet, i.e. rows from Lp 10 to Lp 17, omitting the lines Lp 1 to Lp 7. Lpes Lp 8 and Lp 9 are empty and should be omitted when transferring data.

    Attached file with an example.

    Please Login or Register  to view this content.
    I suspect that the problem occurs in the absence of the "Do While Loop" loop, but I do not know how to embed it.

    I am asking for help, thank you in advance for any advice.
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Extracting the data range between two values

    Hello MMriuSS,

    This worked for me...

    Please Login or Register  to view this content.
    EDIT: Made correction to handle single value between start and end.
    Last edited by Leith Ross; 06-01-2019 at 01:52 AM.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    11-10-2018
    Location
    Krakow, Poland
    MS-Off Ver
    2010, 2016
    Posts
    4

    Re: Extracting the data range between two values

    Hello Leith Ross!

    Your solution works for me to

    Thanks a lot!

    Best regards!

  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
    81,247

    Re: Extracting the data range between two values

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

+ 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. [SOLVED] Extracting data by using date range
    By cjjowett in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-20-2015, 09:17 AM
  2. Extracting data with multiple criteria and values
    By james3873 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-12-2015, 02:10 PM
  3. [SOLVED] Extracting Data Based on Values, using <= or >=
    By Raabi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-03-2014, 04:18 AM
  4. [SOLVED] extracting threhold values from a data set
    By willevans in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-28-2013, 08:49 PM
  5. extracting data from a range if a cell value is identical to a range name
    By blue_clouds_mountain in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2013, 05:28 PM
  6. Replies: 7
    Last Post: 05-31-2012, 11:24 AM
  7. [SOLVED] Need Help Extracting Data From 2 Worksheets with Corresponding Values
    By stingbaby01 in forum Excel General
    Replies: 4
    Last Post: 05-19-2012, 09:05 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