+ Reply to Thread
Results 1 to 7 of 7

Locating position of cell when it is bigger than specified value

  1. #1
    Registered User
    Join Date
    06-10-2016
    Location
    porto
    MS-Off Ver
    2010
    Posts
    4

    Locating position of cell when it is bigger than specified value

    Hello guys!

    My problem is as follows. I have 2 columns:

    Col1 --- Col 2
    1 --- 100
    2 --- 95
    3 --- 80
    4 --- 70
    5 --- 60
    6 --- 115
    7 --- 120
    8 --- 130
    9 --- 10
    10 --- 35


    I want to have a function that searches the first instance in column 2 where the value is higher than the one in the first cell of column 2 (that is, the first instance where the value is higher than 100) and that returns the corresponding number of column 1.
    So in this exercise, I would want the first number in column 2 bigger than 100 - which would be 115 - and then would want the corresponding number from column 1 - which is 6. (I only need the number from column 1, that is, the 6)

    Is there a function or combination of functions that does that?


    Thank you very much

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Locating position of cell when it is bigger than specified value

    So if you sort the data in descending order in column B, you can use the Index(Match()) to find the next largest value.

    http://www.bettersolutions.com/excel...S228482021.htm
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,702

    Re: Locating position of cell when it is bigger than specified value

    You could use this array* formula:

    =IFERROR(INDEX(A:A,MIN(IF(B$2:B$100>$B$1,ROW(B$2:B$100)))),"")

    *An array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE), rather than the usual < Enter >.

    Change the range (i.e. $100) to suit your data.

    Hope this helps.

    Pete

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Locating position of cell when it is bigger than specified value

    Try

    =INDEX($A$2:$A$11,MATCH(TRUE,INDEX($B$2:$B$11>B2,0),0))

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Locating position of cell when it is bigger than specified value

    Or try
    =SUMPRODUCT(--(AGGREGATE(15,6,EXP(LN($B$2:$B$11-$E$2)),1)=($B$2:$B$11-$E$2))*$A$2:$A$11)

  6. #6
    Registered User
    Join Date
    06-10-2016
    Location
    porto
    MS-Off Ver
    2010
    Posts
    4

    Re: Locating position of cell when it is bigger than specified value

    Worked perfectly, thank you!

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Locating position of cell when it is bigger than specified value

    You're welcome.

+ 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. When a type in a cell, it gets bigger?
    By elliottt in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-20-2014, 06:15 PM
  2. Replies: 2
    Last Post: 07-31-2013, 05:57 PM
  3. [SOLVED] Locating the position of the MIN value across cells from multiple sheets
    By rhercz in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-21-2013, 07:54 AM
  4. Locating Column Position Based on Date
    By yunesm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-14-2011, 09:13 AM
  5. Position cell in top left position
    By Hein in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2009, 05:48 AM
  6. Replies: 2
    Last Post: 03-14-2006, 02:04 AM
  7. Locating Last Nonzero Cell in a Row
    By wilby31 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2005, 04:05 PM
  8. [SOLVED] Workbook Bigger and Bigger
    By Ye Yint Win in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2005, 09:05 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