+ Reply to Thread
Results 1 to 11 of 11

Find a cell greater than another cell

  1. #1
    Registered User
    Join Date
    02-11-2009
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    98

    Find a cell greater than another cell

    I'm sure there's an easy way, but my brain isn't thinking of it.

    I have an array of 4 cells: A1:D1

    22 43 34 99

    I want to get the next highest value than A2. So I tried

    =INDEX(A1:D1,MATCH(A2,A1:D1,-1))

    But that just returns an error. I expected it to return 99.

    If I wanted to point to A3 instead, I would expect to get 43.
    Excel: Not my profession, but useful in it.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Find a cell greater than another cell

    max(A1:D1,a2)?

    hmm actually i dont get how a2,a3 fits into your question
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365
    Posts
    1,248

    Re: Find a cell greater than another cell

    I think he actually means B1, C1 instead of A2, A3.

  4. #4
    Forum Contributor
    Join Date
    09-18-2015
    Location
    Republic of Korea
    MS-Off Ver
    2010
    Posts
    314

    Re: Find a cell greater than another cell

    -1 --> MATCH finds the smallest value that is greater than or equal tolookup_value.

    The values in the lookup_array argument must be placed in descending order,

    for example: TRUE, FALSE, Z-A, ...2, 1, 0, -1, -2, ..., and so on.

    =MIN(IF($A$1:$D$1>A2,$A$1:$D$1)) --> array formula(Ctrl+Shift+Enter)

    Attachment 525053
    Attached Images Attached Images
    Last edited by chief_abound; 06-27-2017 at 12:45 AM.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,452

    Re: Find a cell greater than another cell

    Try:
    =LOOKUP(2,1/(IF($A$1:$D$1-A2>0,$A$1:$D$1-A2,"")=MIN(IF($A$1:$D$1-A2>0,$A$1:$D$1-A2,""))),$A$1:$D$1)
    Drag down for A3 criteria
    Quang PT

  6. #6
    Registered User
    Join Date
    02-11-2009
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    98

    Re: Find a cell greater than another cell

    Sorry, yes, I meant B1, and C1, not A2, A3. My appologies.

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Find a cell greater than another cell

    Or:

    =LARGE($A$1:$D$1,RANK(B1,$A$1:$D$1)-1)

  8. #8
    Registered User
    Join Date
    02-11-2009
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    98

    Re: Find a cell greater than another cell

    Chief_abound, your answer works great. Thanks. Bebo, thanks for the answer. Chief_abound's works better for me, but thanks anyway Bebo.

  9. #9
    Registered User
    Join Date
    02-11-2009
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    98

    Re: Find a cell greater than another cell

    Phuocam, yours is also good, and doesn't require ctrl+shift+enter... I might use that instead.

    Thanks everyone.

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Find a cell greater than another cell

    Another way.

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

  11. #11
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Find a cell greater than another cell

    One way.

    =AGGREGATE(15,6,$A$1:$D$1/($A$1:$D$1>B1),1)

+ 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. Replies: 4
    Last Post: 12-09-2016, 12:54 PM
  2. find the last cell with a value greater than 0
    By stevekirk in forum Excel General
    Replies: 15
    Last Post: 10-30-2016, 01:55 AM
  3. [SOLVED] How to find first cell in range greater than X, if there is such a cell?
    By hadamhiram in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-23-2015, 12:48 PM
  4. [SOLVED] Populate a cell if another cell is greater than or equal to a third cell.
    By Tazyote in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-20-2014, 02:51 PM
  5. [SOLVED] Find first cell greater than 0 THEN calculate average and std from that cell to the end
    By jksung5295 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-21-2013, 12:30 PM
  6. Find cells with value greater than value of other cell+1
    By kcho in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 04-19-2013, 08:47 PM
  7. Replies: 4
    Last Post: 08-25-2009, 06:39 AM

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