+ Reply to Thread
Results 1 to 6 of 6

return of a row no of next highest value

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    Gibraltar
    MS-Off Ver
    Excel 2010
    Posts
    2

    Cool return of a row no of next highest value

    Hi,

    Just a question on searching through a series of numbers.

    I have a sheet with a rows of numbers in a sequences, but no necessarily an increment of 1.

    For eg: -

    1
    2
    3
    8
    9
    10

    (Thus 3 jumps to 8 etc)



    Let's say I come up with a target value of 4.

    I want to create formula that searches through this series of figures and returns the row number of the next highest value of 4.

    In this case the next value from 4 in the list would be 8 (ROW 4).

    How would I create a formula in order to return the ROW number 4?


    Thanks.

    Zal

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: return of a row no of next highest value

    try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can replace number 4 with some cell reference (B1)

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: return of a row no of next highest value

    Hi

    Try this ARRAY formula. In this case in D1 exists the number 4.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: return of a row no of next highest value

    try

    =MATCH(4,A1:A6,1)+1
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    10-25-2013
    Location
    Gibraltar
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: return of a row no of next highest value

    Thanks for your all your answers. But Fotis, you hit the nail on the head on this one!

    Zal

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

    Re: return of a row no of next highest value

    =MATCH(TRUE,INDEX(A1:A10>D1,0),0) would give the row number
    "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)

Similar Threads

  1. [SOLVED] Return the name matched to the highest value
    By gneff in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2012, 08:54 PM
  2. Return Highest Value by Name
    By dodger999 in forum Excel General
    Replies: 4
    Last Post: 03-04-2011, 08:56 AM
  3. How do I return the highest value
    By BrianOfNazareth in forum Excel General
    Replies: 3
    Last Post: 04-07-2010, 12:48 PM
  4. Return Highest Alphanumeric Value
    By raehippychick in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-14-2009, 08:24 AM
  5. How Do I Return 2nd Highest Value?
    By fredmeister in forum Excel General
    Replies: 2
    Last Post: 09-12-2008, 10:56 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