+ Reply to Thread
Results 1 to 12 of 12

Stopping duplication of a INDEX formula

  1. #1
    Registered User
    Join Date
    06-21-2023
    Location
    London, England
    MS-Off Ver
    Microsoft? Excel? 2019 MSO (Version 2403 Build 16.0.17425.20176) 64-bit
    Posts
    39

    Stopping duplication of a INDEX formula

    Hello,

    So I am trying to generate a rota. I am using the INDEX formula to randomly take people from a list in Column AF and place them into columns B to E

    Column I to J represents everyone on leave

    My question is how can I stop duplicate values showing up within the same row. I have attached the excel sheet for clarification.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Stopping duplication of a INDEX formula

    If you want no duplicates on the same ROW, please try in B3 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note: The conditional formatting rules in your sample sheet colours duplicates in Column B, but that is not in the same row, as has been requested. The people in the same row are guaranteed to be different. And columns B to E also do not place people who are (on the same row) in columns I-K.
    Attached Files Attached Files
    Last edited by HansDouwe; 06-21-2023 at 10:10 PM.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: Stopping duplication of a INDEX formula

    I believe that the column AF represents employee names, and this column must necessarily be a unique and non-repeating list. Therefore, in some instances where there were duplicates, I have replaced them with different names to align with your reality.

    Below is solution for Excel 2016 or earlier:
    To copy the formula in cell B3 to the right and down:
    Please Login or Register  to view this content.
    And, the Conditional Formating formula of cell B3:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Quang PT

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,545

    Re: Stopping duplication of a INDEX formula

    Administrative Note:

    Welcome to the forum.

    Is your forum profile showing the version of Excel that you need this to work for? Windows 10 is NOT your Office version.

    Members will tailor the solutions they offer to the version of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent versions of Excel are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the release number in your profile (e.g. MS365 Version 2211). This is in the About Excel section further down the Account page.

    Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    06-21-2023
    Location
    London, England
    MS-Off Ver
    Microsoft? Excel? 2019 MSO (Version 2403 Build 16.0.17425.20176) 64-bit
    Posts
    39

    Re: Stopping duplication of a INDEX formula

    Thanks for the reply. Sorry that was a mistake on my part.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,545

    Re: Stopping duplication of a INDEX formula

    Which version of Excel are you using?

  7. #7
    Registered User
    Join Date
    06-21-2023
    Location
    London, England
    MS-Off Ver
    Microsoft? Excel? 2019 MSO (Version 2403 Build 16.0.17425.20176) 64-bit
    Posts
    39

    Re: Stopping duplication of a INDEX formula

    Hi,
    Thanks for your help.

    It works intially but when I expand it out to include a more complex table , a few of the cells generated NUM error.

    As you can see, the formula works well when I when I include columns $P3:$R3 but it generates an error when I included $I3: $AA3. Do you know why that is happening?

    Incase, you were not sure what you were seeing. The table is a rota and on the weekends, there is an extra person working.
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,545

    Re: Stopping duplication of a INDEX formula

    Please do NOT ignore my question: which version of Excel are you using?

    Yor profile says Windows 10 - that is NOT your Excel version. What is your Excel version?

  9. #9
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Stopping duplication of a INDEX formula

    Thanks for the feedback and rep . Glad to have helped.

    About your question in Post #7:

    Please empty all cells B3:F20 and try in B3 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    06-21-2023
    Location
    London, England
    MS-Off Ver
    Microsoft? Excel? 2019 MSO (Version 2403 Build 16.0.17425.20176) 64-bit
    Posts
    39

    Re: Stopping duplication of a INDEX formula

    Sorry, I am not sure what you mean. I am using windows 10 or I am using windows online.

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: Stopping duplication of a INDEX formula

    Quote Originally Posted by rg268 View Post
    Sorry, I am not sure what you mean. I am using windows 10 or I am using windows online.
    Hello, we are interested in which version of Excel you are using. As you may know, the newer generations of Excel come with a range of new and versatile functions that can be very helpful. Therefore, we would like to know if these new functions can be applied in your file or not.

  12. #12
    Registered User
    Join Date
    06-21-2023
    Location
    London, England
    MS-Off Ver
    Microsoft? Excel? 2019 MSO (Version 2403 Build 16.0.17425.20176) 64-bit
    Posts
    39

    Re: Stopping duplication of a INDEX formula

    Hi,
    I am using Excel online and then Windows 10 as well to edit it. Is that ok?

    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. [SOLVED] Index Match Functions - Duplication of Text
    By Livvi in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-10-2016, 04:23 PM
  2. [SOLVED] tie scores (stopping/skipping duplicates) using index/match plus small function
    By Mrjpjones in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2016, 02:13 PM
  3. Index return row to column without duplication
    By silambarasan.J in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-23-2016, 04:56 AM
  4. Tie Breaking a Index/Match Duplication
    By fearonc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-26-2015, 04:41 PM
  5. Replies: 2
    Last Post: 11-04-2014, 07:01 AM
  6. [SOLVED] Index/Match/Large Duplication of items; not returning true values
    By Darren_Rix in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2013, 07:27 AM
  7. [SOLVED] Combo Box Index Number Problems: refresh & duplication
    By bartk in forum Excel General
    Replies: 1
    Last Post: 02-07-2013, 07:05 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