+ Reply to Thread
Results 1 to 2 of 2

Picking a subset with the closest average to the original set

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2021
    Posts
    35

    Picking a subset with the closest average to the original set

    I have a set of 1000 different numbers in column A. I'm trying to find a way to pick a subset of 250 of the numbers that have the closest average to the original 1000. I'm not sure if this is something that I can do using Solver to help with or not. But, if someone could point me in the right direction, I'd appreciate it.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,871

    Re: Picking a subset with the closest average to the original set

    I don't think Solver would do (natural approach with 1000 binary variables is more than Solver allows).
    Systematic solution with examining all possible 250 elements subsets of 1000 elements ... wow that's a huge number.

    May be ... for "normal data" you will probably get very good results by:
    1) randomizing sequence of your numbers in column A
    - for instance =RAND() in B1 and copy down then select from top-right to bottom-left (B1:A1000) and sort (asc or desc - does not matter)
    2) first 250 shall have pretty close average to 1000.
    Last edited by Kaper; 02-24-2014 at 04:03 PM.
    Best Regards,

    Kaper

+ 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: 13
    Last Post: 08-13-2013, 12:51 PM
  2. [SOLVED] Find Average, Return Column Header of Number Closest To Average
    By djmyers in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-07-2013, 04:19 PM
  3. Picking Closest Date from List - With Date Minimum
    By JPolvCB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-05-2013, 12:55 AM
  4. [SOLVED] Average of a subset of values within columns of various lengths
    By mrp16 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-31-2012, 10:37 PM
  5. Using AVERAGEIFS function to average a smaller subset of criteria data
    By RJS5062 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-22-2012, 04:19 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