+ Reply to Thread
Results 1 to 4 of 4

Find lowest 5 numbers in column A with highest values in column B

  1. #1
    Registered User
    Join Date
    10-05-2013
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2003
    Posts
    1

    Find lowest 5 numbers in column A with highest values in column B

    I am looking for a formula that will find the lowest 5 number group in column A with a total value from column B under $100 in the below table.
    1 $28.75
    2 $28.00
    3 $27.75
    4 $24.75
    5 $25.50
    6 $25.25
    7 $25.25
    8 $16.50
    9 $24.75
    10 $26.50
    11 $24.50
    12 $27.00
    13 $26.50
    14 $23.50
    15 $23.00
    16 $19.25
    17 $20.75
    18 $25.00
    19 $20.50
    20 $20.50
    21 $17.75
    22 $22.50
    23 $20.50
    24 $19.75
    25 $20.00
    26 $10.75
    27 $11.25
    28 $5.25
    29 $13.00
    30 $9.00

    Any help will be greatly appreciated!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Find lowest 5 numbers in column A with highest values in column B

    It would be simplest probably to use a helper column, e.g. in C5 copied down use this formula:

    =SUM(B1:B5)<100

    Then you can use a formula like this to get the first column A value of the group (in this case 22)

    =INDEX(A1:A30,MATCH(TRUE,C1:C30,0)-4)
    Audere est facere

  3. #3
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Find lowest 5 numbers in column A with highest values in column B

    Or,

    with DLL's logic in a single Array Formula*,

    =INDEX(A1:A100,MATCH(TRUE,SUMIF(OFFSET(B1,ROW(B1:INDEX(B1:B100,COUNT(B1:B100)-4))-ROW(B1),,5),"<>0")<100,0))

    *: confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find lowest 5 numbers in column A with highest values in column B

    Just one very minor thing with Haseeb A's formula, change the -4 to -5 and that will give the 5 highest values <100. Combine that with Dll's logic before.

    These additions will give the addresses in column A that meet the criteria specified. Enter with Ctrl + Shift +Enter:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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] Formula to find lowest/highest value in a column and return value to that cell
    By maryren in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2013, 11:21 AM
  2. Replies: 4
    Last Post: 07-06-2013, 04:44 PM
  3. [SOLVED] Find three highest values on column A and print column B
    By diegodacal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2013, 04:05 PM
  4. [SOLVED] Excel 2007 : Sorting column by numbers, lowest to highest
    By elryp3000 in forum Excel General
    Replies: 4
    Last Post: 06-07-2012, 11:24 AM
  5. Find Highest/lowest numbers!
    By stewart08 in forum Excel General
    Replies: 3
    Last Post: 04-07-2008, 12:42 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