+ Reply to Thread
Results 1 to 6 of 6

Random pick by some conditions

  1. #1
    Registered User
    Join Date
    11-02-2017
    Location
    Bucharest
    MS-Off Ver
    2016
    Posts
    51

    Random pick by some conditions

    Good morning!

    I have a list with some numbers (1.11 , 1.12, 1.13, 1.14, etc.) and a top 5 tabel
    I want to pick some numbers from the list in the top 5 tabel by some conditions like... the numbers should be between 1.55 and 2.8 ... this is the first condition
    and the second one, the product of the top 5 tabel numbers to be between (50 and 150 for example) ...
    Is there any posibility to do this in excel ?
    Have a nice day !
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Random pick by some conditions

    =iferror(index(a:a,aggregate(14,6,row(a1:$a$301)/(match(a1:$a$301,$j$2:$k$2)=1)/(match(row(a1:$a$301),$j$4:$k$4)=1),$f4)),"")
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-02-2017
    Location
    Bucharest
    MS-Off Ver
    2016
    Posts
    51

    Re: Random pick by some conditions

    Is good but sorry if i ask, is too complicated for me to understand the formula...
    Can the numbers be randomly and not in order ?

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Random pick by some conditions

    Can the numbers be randomly and not in order ?
    which numbers?

  5. #5
    Registered User
    Join Date
    11-02-2017
    Location
    Bucharest
    MS-Off Ver
    2016
    Posts
    51

    Re: Random pick by some conditions

    From the Top 5 table.. they are in descending order 2.2, 2.19, 2.18, 2.17.. etc
    I used a wrong word i guess, they are truly randomly.. i want to be mixed (1.57, 1.89, 3.14) something like this :D

  6. #6
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Random pick by some conditions

    =index(row(indirect("1:"&$g$1)),aggregate(15,6,row(indirect("1:"&$g$1))/isna(match(row(indirect("1:"&$g$1)),$f$3:f3,)),randbetween(1,$g$1-rows($a$1:a1)+1)))
    Attached Files Attached Files

+ 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] Random Pick from list
    By michael35 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-19-2018, 09:30 AM
  2. [SOLVED] random pick
    By Shamz41 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-07-2017, 01:06 AM
  3. Random weighted pick
    By Tony Valko in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2016, 07:09 AM
  4. uner what creteria random formulae pick up next random value?
    By roofi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-16-2014, 12:55 AM
  5. Replies: 8
    Last Post: 08-14-2009, 11:22 AM
  6. pick random cells ?
    By fiur in forum Excel General
    Replies: 5
    Last Post: 11-02-2008, 12:22 PM
  7. Pick a Random name from a list.
    By David M Fritzke in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2006, 10:55 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