+ Reply to Thread
Results 1 to 4 of 4

Fornula for Highest Quantity

  1. #1
    Forum Contributor
    Join Date
    05-30-2023
    Location
    INDIA
    MS-Off Ver
    OFFICE 2016 ver 16
    Posts
    104

    Fornula for Highest Quantity

    Dear Experts

    Column "B" indicates lot size and column "C" indicates quantity. Column "B47" is the midpoint which is dynamic. Which sometimes keeps moving up and down.
    i have requited highest 1 and second highest quantity in between range "C47" to "C95".
    and also required the highest 1 and Second highest in the Range "C4" to "C46".
    please note that the Mid Point moves up and downs every 5 minutes interval so Range should be change according to the mid point.
    Require formula in "E5" and "E6" columns.
    Require formula in "E8" and "E9" columns.

    Thanks in Advance
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,298

    Re: Fornula for Highest Quantity

    I don't know where you got 21575 from...

    =LARGE(INDEX(C:C,1+MATCH(10^100,C:C)/2):INDEX(C:C,MATCH(10^100,C:C)),ROWS(F$5:F5))

    copied down, and

    =LARGE($C$4:INDEX(C:C,MATCH(10^100,C:C)/2),ROWS(F$8:F8))

    copied down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Fornula for Highest Quantity

    Why is in your example the midpoint between C46 and C47?
    C4 to C46 are 43 elements, C47 to C95 are 49 elements.

    So the second half has 6 elements more as the first half?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,753

    Re: Fornula for Highest Quantity

    @Hans: possibly a miscalculation. There are 92 cells in the range B4:B95. Maybe the OP forgot to add on the rows before the range begins. Maybe it should be rows 49 to 50.

    The average is 2375 which is between rows 49 and 50.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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: 7
    Last Post: 07-13-2020, 07:31 AM
  2. [SOLVED] Stuck creating formula that sorts highest to lowest then sum quantity
    By ZMAFC94 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2018, 10:06 AM
  3. [SOLVED] Choose name based on highest quantity
    By ligerpharaoh in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-25-2018, 08:45 AM
  4. Replies: 3
    Last Post: 06-09-2016, 12:51 PM
  5. [SOLVED] $ Total a Quantity from Lowest to Highest Price
    By uberathlete in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2015, 08:57 PM
  6. [SOLVED] Fornula that will count
    By erkamu in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-03-2015, 09:20 AM
  7. [SOLVED] IF fornula help
    By Dowjd in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-21-2014, 10:56 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