+ Reply to Thread
Results 1 to 15 of 15

retrieve more than one midrange value

  1. #1
    Registered User
    Join Date
    10-13-2022
    Location
    Montreal, Quebec, Canada
    MS-Off Ver
    365
    Posts
    13

    retrieve more than one midrange value

    In a column of values (Trash Tonnages), which we evaluate every 4 to 6 months. We need to retrieve the 5, 6 or more middle values in order to re-evaluate our routes. Is there a method to do this in excel,

    We have tried the MID() function but cant figure out how to obtain the 5 or 6 middle values (in their own cells.

    The data which we are using isn't sorted. we want to avoid sorting and have excel retrieve the middle values we need.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: retrieve more than one midrange value

    You need to provide examples of "...the 5, 6 or more middle values..."
    Ben Van Johnson

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: retrieve more than one midrange value

    t almost sounds like what you are asking for is measures of central tendency - mode (most frequent value), median (the midpoint in a range of values) or mean - the statistical average. the MID function will pull values or numbers out of the middle of a cell such as in a cell (I4) is the word driveway, =MID(I4,2,3) will pull riv from that, if the number 105.60 (cell D4 in your upload) and I use the mid function like so... =MID(D4,2,3) it will pull 05. from that cell.
    so as Ben asked, what is it you are looking to get?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    10-13-2022
    Location
    Montreal, Quebec, Canada
    MS-Off Ver
    365
    Posts
    13

    Re: retrieve more than one midrange value

    Basically, I need to retrieve the values which are in blue (see Upload) and use them in another sheet, without sorting the table.

  5. #5
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: retrieve more than one midrange value

    Quote Originally Posted by Spasm752 View Post
    Basically, I need to retrieve the values which are in blue (see Upload) and use them in another sheet, without sorting the table.
    But there are only 4 values highlighted in blue and they are not the middle values. You really need to clarify exactly what you want with real example results.

  6. #6
    Registered User
    Join Date
    10-13-2022
    Location
    Montreal, Quebec, Canada
    MS-Off Ver
    365
    Posts
    13

    Re: retrieve more than one midrange value

    They are not the IN the Middle but If you sort the list they are the 4 midrange values. I need to retrieve those values without sorting the list...

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: retrieve more than one midrange value

    You said 5 or 6 - now you are saying 4 - we need to know how many numbers you want.

    And why these four numbers:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    J
    3
    582.488
    4
    676.328
    5
    685.28
    6
    688.706
    7
    696.456
    8
    795.68
    9
    799.658
    10
    813.008
    11
    819.36
    12
    823.457
    13
    861.28
    14
    956.48
    15
    961.262
    Sheet: Nov 2022

    Thed median of that range is the highest of those four, so ought to be in the middle of the selection. All very unclear!
    Last edited by AliGW; 12-22-2023 at 02:37 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: retrieve more than one midrange value

    Quote Originally Posted by Spasm752 View Post
    They are not the IN the Middle but If you sort the list they are the 4 midrange values. I need to retrieve those values without sorting the list...
    I did sort the list... my comment is based on the sorted values. See the image @AliGW posted in her reply... there are 3 values less than your highlighted range and 6 values higher. I echo Ali's comment: "All very unclear!"

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: retrieve more than one midrange value

    However, this will get the four highlighted in the image I posted:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by AliGW; 12-22-2023 at 02:57 AM. Reason: Typo fixed.

  10. #10
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: retrieve more than one midrange value

    If you actually wanted the real middle 5 values (that would remove 4 values from the top and 4 values from the bottom), this formula would do that in your copy of XL365...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    10-13-2022
    Location
    Montreal, Quebec, Canada
    MS-Off Ver
    365
    Posts
    13

    Re: retrieve more than one midrange value

    Thank you, Both Rick Rothstein's and your answers provide the solution i need. We can work with both these formulas and modify them to reflect our needs as our routes increase. Sorry if my request wasn't clear enough, but i didn't see any other way to explain it. Thank you once again.

  12. #12
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: retrieve more than one midrange value

    Quote Originally Posted by Spasm752 View Post
    Thank you, Both Rick Rothstein's and your answers provide the solution i need. We can work with both these formulas and modify them to reflect our needs as our routes increase. Sorry if my request wasn't clear enough, but i didn't see any other way to explain it. Thank you once again.
    Here is my formula adjusted so that it will report 5 or 6 middle values (depending on if the list has an odd or even number of zones), and more than 6 zones of course.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    10-13-2022
    Location
    Montreal, Quebec, Canada
    MS-Off Ver
    365
    Posts
    13

    Re: retrieve more than one midrange value

    Thank you, Both AliGW and your answers are what we need and we can modify them both to suit our needs if our routes increase. Thank you once again.

  14. #14
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: retrieve more than one midrange value

    Quote Originally Posted by Spasm752 View Post
    Thank you, Both AliGW and your answers are what we need and we can modify them both to suit our needs if our routes increase. Thank you once again.
    I reread my last post and I am not entirely sure if it explained my second formula correctly. This formula reports the 5 or 6 middle values no matter how many zones there are in your second table, so if you add more zones, it will adjust the output accordingly.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: retrieve more than one midrange value

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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. Look up and retrieve
    By JTFWAD in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-31-2022, 01:52 PM
  2. Retrieve the Text which may have prefix/suffix in the database & retrieve the highestvalue
    By Sivashanmugam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2015, 12:58 PM
  3. Retrieve value ONLY once
    By DPP in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-30-2014, 12:10 AM
  4. Retrieve the second non-zero value in a row
    By coolmint in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2014, 03:39 PM
  5. Retrieve next value(s)
    By 53teeth in forum Excel General
    Replies: 19
    Last Post: 05-10-2011, 02:07 PM
  6. VBA Web log on retrieve
    By WAW in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-04-2010, 07:00 PM
  7. retrieve only one value according to another value
    By aysrun in forum Excel General
    Replies: 2
    Last Post: 08-04-2009, 06:23 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