+ Reply to Thread
Results 1 to 6 of 6

Excel String Permutations

  1. #1
    Registered User
    Join Date
    06-06-2011
    Location
    UK
    MS-Off Ver
    2016
    Posts
    22

    Question Excel String Permutations

    Hi,

    I'm looking for a way to 'automate' a support rota that I complete.

    We have three projects (Blue, Red Green) and each week, we assign two teams to each project. If a team is on working on one project in a given week, they're note available for another.

    My basic table is attached - but I'm not attached to that layout, that's just how we held it when it was done manually

    So I think I need unique permutations of the projects and teams and then to make sure there are no duplicates in any given week.

    I looked through this on Stack Overflow(https://stackoverflow.com/questions/...lists-in-excel) but I can't seem to get it to work for my scenario.

    I'm not against a macro solution (I did try to write a macro for it, but my rusty VBA wasn't good enough).

    Can anyone point me in the right direction - or let me know if I'm completely barking up the wrong tree?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel String Permutations

    neato, your upload is a file format much newer than Excel 2003 your profile shows.

    Please update your profile so we know what tools you have available that will work in your version.

    If you aren't aware of it you can find version clicking File > Account.
    Dave

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel String Permutations

    This will work in all versions.

    It won't avoid duplicates entirely. It begins to repeat in Week 8.

    With the range of Team names assigned a name ... Team_List and the range of Blue/Red/Green assigned the name Projects
    this formula applied to B2:G9
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The only way I found to mix up the weekly assignments required multiple self diminishing Data Validation lists and drop downs specific to each week. ie it would require some manual input. However the drop downs would not allow duplication of Teams in any given week.

    If that is what you prefer please let me know. Explaining it will be a bit detailed.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-06-2011
    Location
    UK
    MS-Off Ver
    2016
    Posts
    22

    Re: Excel String Permutations

    Thanks - this is really helpful!

    No - I'm happy enough to have it repeat, so this works great. I we were to add (or remove) further projects or teams. Do the ranges just need to be updated?

    I think I need to look into how you're using MOD here. It's not something I'd considered and it's thrown me a little bit - but it definitely seems to work

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel String Permutations

    I we were to add (or remove) further projects or teams. Do the ranges just need to be updated?
    I have not tested this but I believe it would work with the ranges updated. Try experimenting.

    With the addition/removal of projects or teams you might want to consider dynamic named ranges (DNRs). If you are not familiar with them they size themselves automatically to fit the data. It could save trouble shooting headaches that may arise from manually updating the ranges.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel String Permutations

    BTW thank you for the feedback and added rep.

    One more thing:

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. permutations of words in excel
    By Techtronic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2016, 03:16 AM
  2. specific number permutations in excel
    By Pedro089 in forum Excel General
    Replies: 2
    Last Post: 08-07-2013, 03:37 PM
  3. Excel Permutations
    By jimmyrivers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2013, 10:29 AM
  4. excel and permutations
    By achillesjr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-24-2011, 11:51 AM
  5. Plotting permutations on an excel spreadsheet
    By spadian in forum Excel General
    Replies: 2
    Last Post: 05-16-2008, 12:16 AM
  6. String permutations
    By collectedsoul in forum Excel General
    Replies: 2
    Last Post: 03-27-2008, 01:40 AM
  7. Excel Permutations!
    By jules85 in forum Excel General
    Replies: 1
    Last Post: 03-08-2008, 12:16 AM

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