+ Reply to Thread
Results 1 to 3 of 3

how to get min number in sequential ranges of varying # of rows

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    666

    how to get min number in sequential ranges of varying # of rows

    I've attached a sample workbook with various ranges of rows. Each range has an identifying number at the beginning row of the range, followed by empty cells. The next range down begins with a new number (which is prior # + 1)

    I need to obtain the minimum number in an adjacent column within the defined range.

    I've given examples of the first three desired results.

    Can someone help me with a formula for this? Thank you.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: how to get min number in sequential ranges of varying # of rows

    This formula in E3 and copied down will give you the right answer for all but the last range:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    666

    Re: how to get min number in sequential ranges of varying # of rows

    Thanks... I can easily fix the last range issue, so your formula does the job.


    Edit: My fix for the last range was to create an IFERROR function so that the minimum related to the last known #in column C was simply a large # of rows below, knowing that none of my ranges "lasts" for more than a dozen or so rows).

    Please Login or Register  to view this content.
    Last edited by jrtaylor; 08-15-2018 at 01:23 PM.

+ 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. VBA Copy a Varying Number of Whole Rows
    By nosheal in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-22-2014, 12:28 PM
  2. Replies: 0
    Last Post: 04-08-2013, 12:14 PM
  3. How to sum rows of varying ranges?
    By lbroxterman in forum Excel General
    Replies: 9
    Last Post: 07-25-2012, 10:28 PM
  4. VBA to Subtotal in Varying Rows and Ranges
    By snelson0713 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-26-2011, 12:46 PM
  5. How To Deal With Varying Number of Rows
    By messnj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2007, 02:40 AM
  6. Sum varying number of rows
    By LSkarbek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2006, 11:10 AM
  7. [SOLVED] Varying number of rows in Named Ranges
    By madhavansaju@gmail.com in forum Excel General
    Replies: 2
    Last Post: 12-19-2005, 10:35 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