+ Reply to Thread
Results 1 to 7 of 7

Index, Rand, ignore Matching

  1. #1
    Registered User
    Join Date
    10-05-2022
    Location
    Alberta, Canada
    MS-Off Ver
    2019
    Posts
    11

    Index, Rand, ignore Matching

    Hello

    What i am looking to do is setup a rotating QA table for Team managers and agents, each agent get 6 QA's done a month 5 by other TM's and 1 by their own TM. I want it up to randomly chose TM's but have it ignore or recalculate if the Rand is going to return their TM in the first 5 spots

    Right Now i am using - INDEX(TMs!A$2:A$5,RANDBETWEEN(1,COUNTA(TMs!$A$2:$A$5)))
    Agents Name is in "B" and their TM is in "D" and the Formula is in "F"

    So what i am looking with with the formula is if "F" is going to equal "D" to recalculate so it doesn't

    Demo Sheet: QA Order - Demo.xlsx

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2412
    Posts
    1,505

    Re: Index, Rand, ignore Matching

    Try in F2 and copy all the way down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Good luck!
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-05-2022
    Location
    Alberta, Canada
    MS-Off Ver
    2019
    Posts
    11

    Re: Index, Rand, ignore Matching

    Quote Originally Posted by Estevaoba View Post
    Try in F2 and copy all the way down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Good luck!
    I tied this and the only thing it doesn't do is randomize the values when re-running the formulas which is something it would need to do month over month as we clear and reassign them to the TMs to do

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Index, Rand, ignore Matching

    Try, =INDEX(TMs!$A$2:$A$5,SMALL(IF(MATCH(D2,TMs!$A$2:$A$5,0)={1,2,3,4},"",{1,2,3,4}),RANDBETWEEN(1,3)))
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2412
    Posts
    1,505

    Re: Index, Rand, ignore Matching

    I was getting there, but josephteh was a bit faster.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    [/FORMULA]

  6. #6
    Registered User
    Join Date
    10-05-2022
    Location
    Alberta, Canada
    MS-Off Ver
    2019
    Posts
    11

    Re: Index, Rand, ignore Matching

    Thank you! both actually worked which is awesome,

  7. #7
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2412
    Posts
    1,505

    Re: Index, Rand, ignore Matching

    You’re welcome. Glad to help.
    Thank you for the feedback and for the reputation added.
    Have a blessed day.

+ 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. Advancing INDEX RANK RAND to match a skill
    By MrWoods1990 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-06-2020, 06:46 PM
  2. [SOLVED] Index/Match/Min/ABS Function needs to ignore one value in the index.
    By pronghorn in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-16-2019, 02:04 AM
  3. Index and Rand Excel Function Help
    By Officehelppl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-18-2016, 11:17 AM
  4. [SOLVED] Need Match(RAND() to ignore empty cells.
    By Lilacpetals in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-26-2015, 12:55 AM
  5. Using INDEX/RAND to fill cells with no duplicate values
    By Tony Vargo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-02-2014, 05:17 AM
  6. RAND cells but ignore empty cells with data at the top
    By muffybean in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2012, 03:31 PM
  7. Using Index, Indirect and Rand functions.
    By bolger in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-05-2007, 06:09 PM

Tags for this Thread

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