+ Reply to Thread
Results 1 to 4 of 4

Find first maximum in a column

Hybrid View

  1. #1
    Registered User
    Join Date
    12-23-2012
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    9

    Find first maximum in a column

    Hello,

    I have the following table with columns A and B.

    A B
    1000 10
    750 11
    556 25
    258 38
    90 49

    In column C I have a number, let's say 400.

    I need a formula to search in column A first number higher then 400 and then print the number from column B.
    In my example, first number higher then 400 in column A is 556, and the number to print from column B is 25.

    Is this possible ?
    Thanks!

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Find first maximum in a column

    I put your data in A1:B5, and the lookup value in C1 and then used this formula:

    =VLOOKUP(MIN(INDEX(IF(A1:A5>C1,A1:A5),0)),A1:B5,2,FALSE)

    This is an array formula and must be entered with Ctrl-Shift-Enter, not just Enter.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find first maximum in a column

    =INDEX(A2:B6,match(C1,A2:A6,-1),2)
    see the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    12-23-2012
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Find first maximum in a column

    Thank you both. Works like wonder !

+ 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