+ Reply to Thread
Results 1 to 4 of 4

Randbetween excluding given list - Question paper preparation

  1. #1
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Randbetween excluding given list - Question paper preparation

    Hello Friends

    I need to extract the number randomly from given list (A1:A50) and excluding in list (light pinkC4:D8) and need to plot in light yello cells E4:E8.

    This is for question paper preparation, the intension is previous time asked questions should not repeat.

    thanks in advance
    Sekar

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: Randbetween excluding given list - Question paper preparation

    Try this ...

    =INDEX($A$1:$A$50,AGGREGATE(14,6,$A$1:$A$50/(COUNTIF($C$4:$D$8,$A$1:$A$50)=0)/(COUNTIF($E$3:E3,$A$1:$A$50)=0)
    ,RANDBETWEEN(1,COUNT($A$1:$A$50)-COUNT($C$4:$D$8)-COUNT($E$3:E3))))

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Randbetween excluding given list - Question paper preparation

    or can try
    F4=INDEX($A$1:$A$50,SMALL(INDEX(COUNTIF($C$4:$D$8,$A$1:$A$50)*10^10+COUNTIF($F$3:$F3,$A$1:$A$50)*10^10+ROW($A$1:$A$50),0),RANDBETWEEN(1,50-COUNT($C$4:$D$8)-COUNT($F$3:$F3))))
    Please Login or Register  to view this content.
    Try this and copy towards down
    Last edited by samba_ravi; 03-01-2017 at 07:02 AM.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Randbetween excluding given list - Question paper preparation

    Hello Phuocam & Siva

    Thanks for this formula which is working well and saves manual work.

    Thanks again.
    Last edited by Sekars; 03-01-2017 at 07:20 AM.

+ 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] Randbetween excluding certain letters/numbers
    By Wheelie686 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-13-2018, 03:58 PM
  2. Randbetween question
    By Brian Douglas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2014, 11:56 PM
  3. [SOLVED] RANDBETWEEN question
    By sjc21 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-25-2013, 02:48 PM
  4. [SOLVED] Next question not dislayed
    By amolryeolekar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-17-2012, 01:46 AM
  5. [SOLVED] Question on formula for doing Randbetween If value is <20
    By phill5711 in forum Excel General
    Replies: 2
    Last Post: 04-23-2012, 04:20 AM
  6. Preparation for pivot table to list dates by specific day of the week
    By losdamianos in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-13-2011, 09:55 AM
  7. [SOLVED] Question - excluding from list
    By Kuba in forum Excel General
    Replies: 2
    Last Post: 02-21-2006, 01:00 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