+ Reply to Thread
Results 1 to 10 of 10

Non-duplicate randomized word list (Index, RandBetween, & CountA)

  1. #1
    Registered User
    Join Date
    12-01-2015
    Location
    U.S.
    MS-Off Ver
    2016
    Posts
    25

    Non-duplicate randomized word list (Index, RandBetween, & CountA)

    Hi, I've been working on generating random word from a list and is stuck on "exclusion." By that I mean, is there a way for index to dynamically change (maybe offset) as it go down the column? Or to ignore a certain cell in the range?

    For example:

    I have a list of terms on F2:F11. On I2:I11, I have two randomized terms.

    What I would like to do is:
    I2: =INDEX($F$3:$F$11,RANDBETWEEN(1,COUNTA($F$3:$F$11)),1)
    I3: =INDEX($F$2,F4:$F$11,RANDBETWEEN(1,COUNTA($F$2,F4:$F$11)),1)
    I4: =INDEX($F$2:F3,,F4:$F$11,RANDBETWEEN(1,COUNTA($F$2,F4:$F$11)),1)

    I know the above do not work so I'm looking for a solution that would work. Pretty much, Column I will ignore the same row on Column F (F2) when it randomizes, so to not have duplicates. For example:I do not want aggravate; amorous on I2.

    Thank you for all your help.
    Attached Files Attached Files
    Last edited by newand; 10-13-2017 at 07:46 PM. Reason: Add attachment

  2. #2
    Registered User
    Join Date
    10-12-2017
    Location
    Brazil
    MS-Off Ver
    2016
    Posts
    59

    Re: Non-duplicate randomized word list (Index, RandBetween, & CountA)

    Good evening.
    See if the attachment helps you.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-01-2015
    Location
    U.S.
    MS-Off Ver
    2016
    Posts
    25

    Re: Non-duplicate randomized word list (Index, RandBetween, & CountA)

    Hi, gfranco. Thank you for your help. However, your attachment still uses the cell I do not want to use. For example, I2 should only contain values from F3:F11. So I2 should not contain "aggravate" but can have any other value (e.g., antebellum; amicable).

    For my case, repetition meaning they should not contain the same value in the same row, from F2 to I2. All should be different.

    Thanks again for taking your time out to assist me.

  4. #4
    Registered User
    Join Date
    10-12-2017
    Location
    Brazil
    MS-Off Ver
    2016
    Posts
    59

    Re: Non-duplicate randomized word list (Index, RandBetween, & CountA)

    OK.
    I'm out of ideas now.
    If there is any, I'll post.

  5. #5
    Registered User
    Join Date
    12-01-2015
    Location
    U.S.
    MS-Off Ver
    2016
    Posts
    25

    Re: Non-duplicate randomized word list (Index, RandBetween, & CountA)

    Just want to give this one a last bump. Thanks.

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Non-duplicate randomized word list (Index, RandBetween, & CountA)

    Hi Newand,
    maybe UDF
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-01-2015
    Location
    U.S.
    MS-Off Ver
    2016
    Posts
    25

    Re: Non-duplicate randomized word list (Index, RandBetween, & CountA)

    Hi nilem,

    Wow, that's amazing! I didn't know there's such thing as UDF. Thank you so much. I'll be studying this code you've given me.

    Thank you, again!

  8. #8
    Registered User
    Join Date
    12-01-2015
    Location
    U.S.
    MS-Off Ver
    2016
    Posts
    25

    Re: Non-duplicate randomized word list (Index, RandBetween, & CountA)

    Hi, nilem,

    I've been working with the UDF you created for me. I tried to extend your UDF to add more exclusions. The UDF seems to still work but the exclusions do not. It is possible to add more exclusions to the formula? And use the first randomized term as as an exlcusion? Please see the attachment for more info.

    Thanks!
    Attached Files Attached Files

  9. #9
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Non-duplicate randomized word list (Index, RandBetween, & CountA)

    Hi Newand,
    maybe something like this
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-01-2015
    Location
    U.S.
    MS-Off Ver
    2016
    Posts
    25

    Re: Non-duplicate randomized word list (Index, RandBetween, & CountA)

    wow, the codes are much more complex than I thought. Thanks! All's good now.

+ 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. Randomized List Pulled from Filtered Table
    By Djd96 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-27-2017, 07:56 PM
  2. [SOLVED] Randbetween - not to repeat or duplicate
    By itselflearn in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-01-2017, 03:18 PM
  3. [SOLVED] matching randomized list title with specific cell
    By RachelMads02 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-26-2016, 12:59 AM
  4. [SOLVED] Trying to generate randomized list of tweets based on existing data set
    By v_subramanyan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-16-2014, 11:04 PM
  5. Randomized call out list
    By shingudaze in forum Excel General
    Replies: 2
    Last Post: 05-07-2014, 02:05 PM
  6. Replies: 5
    Last Post: 07-12-2012, 03:31 PM
  7. How to prevent duplicate using randbetween?
    By kefalo84 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-30-2011, 12:44 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