+ Reply to Thread
Results 1 to 3 of 3

Retrieve a set of values between two numbers

  1. #1
    Registered User
    Join Date
    02-23-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Wink Retrieve a set of values between two numbers

    Hi

    I have a row containing a set of values.
    I have also min_val and max_val in another row.
    I need to fetch values between min_val and max_val from first row using formula.


    In short

    1 2 3 4 5 6 7 8 9

    2 7

    Expected ans is 3 4 5 6



    Thanks n advance

  2. #2
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Retrieve a set of values between two numbers

    hello,

    you could try using the mid function.

    =MID(A1, FIND(C1, A1), (FIND(D1, A1)-FIND(C1, A1)))

    where C1 is the Min Value and D1 is the Max value

    cheers
    Last edited by D_Rennie; 02-23-2010 at 07:18 AM.


  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Retrieve a set of values between two numbers

    if numbers are unique then see attached "unique" if you want betweeen first instance and last instance see other sheet input in pink cells helper formulas in tan ,results in green
    i could have combined some functions but it didnt seem worth it
    Attached Files Attached Files
    Last edited by martindwilson; 02-23-2010 at 10:14 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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