+ Reply to Thread
Results 1 to 6 of 6

Next Higher Number in series matching particular criteria

  1. #1
    Registered User
    Join Date
    02-12-2016
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    4

    Next Higher Number in series matching particular criteria

    Hi,

    I was looking of next higher number in a series where value matches in another column.

    In the list below, Column 1 and Column 2 are the data entries and Column 3 is the desired output.

    Which formula can be used for this?
    The need is to find the next higher number in the Column 2 where Column 1 value matches.
    Sequence cannot be put in ascending or descending order for both Column 1 or Column 2.
    If there is no higher value in column 2, same value is required as output in Column 3

    A 8 12 A&">8"
    C 7 18 C&">7"
    A 3 8 A&">3"
    B 2 2 B&">2". No such value. Hence output as 2 itself.
    B 2 2 B&">2". No such value. Hence output as 2 itself.
    B 1 2 B&">1".
    C 5 7 C&">5"
    A 12 12 A&">12". No such value. Hence output as 12 itself.
    C 18 18 C&">18". No such value. Hence output as 18 itself.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,729

    Re: Next Higher Number in series matching particular criteria

    Edited Mistake in original formula / upload.

    Try array entering this formula in D4 and filling down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulae array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Last edited by FlameRetired; 02-12-2016 at 02:56 AM.
    Dave

  3. #3
    Registered User
    Join Date
    02-12-2016
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    4

    Re: Next Higher Number in series matching particular criteria

    Dear Flame Retired,

    Thanks. The file I shared was illustrative and I have to use for a bigger application where the second and third columns are dates actually.

    I am not very familiar with array functions but I suppose, I will be able to use it in my application very well.

    Thanks once again.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,729

    Re: Next Higher Number in series matching particular criteria

    Hi Irimaboond,

    I forgot to say welcome to the forum ... so welcome to the forum.

    Please check my post above. It appears that I did not intercept my error soon enough. The previous formula and upload had an error in it. The edited one above is corrected.
    My apologies.

  5. #5
    Registered User
    Join Date
    02-12-2016
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    4

    Smile Re: Next Higher Number in series matching particular criteria

    Thanks a lot.

    The formula worked wonderfully in the file on which I was working.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,729

    Re: Next Higher Number in series matching particular criteria

    You're welcome Glad to hear it works.

+ 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] Get the row number of matching criteria
    By plans in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-21-2014, 08:38 AM
  2. Replies: 4
    Last Post: 04-29-2014, 08:15 AM
  3. Count number of times one value is higher than another IF criteria is true
    By LasseKaa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-17-2013, 11:28 AM
  4. Replies: 2
    Last Post: 02-04-2013, 05:48 PM
  5. Replies: 7
    Last Post: 03-22-2010, 05:22 PM
  6. Counting the Number of Dates with Matching Month Criteria
    By zom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2008, 07:47 PM
  7. Counting the Number of Dates with Matching Month Criteria
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-25-2005, 05:50 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