+ Reply to Thread
Results 1 to 4 of 4

Hide other duplicates using cond formatting + IF function based on x in adjacent cell

  1. #1
    Registered User
    Join Date
    01-19-2022
    Location
    Nottingham, England
    MS-Off Ver
    365 Version 2102
    Posts
    2

    Hide other duplicates using cond formatting + IF function based on x in adjacent cell

    Hi All,

    I'm working on a personnel deployment tool, which gives me a list of names under specific work areas. However, some operatives are qualified to work in more than one area. Therefore I'm trying to develop a tool which I can use to select a name in any one list (by putting an 'x' in the cell next to it), but hide all other instances of it in the other lists.

    There may be more than one instance of a duplicated name, so this functionality needs to work for each different duplicated name.

    I have tried to figure this out, but I can only figure the constituent parts to this. The =COUNTIF($A$1:$A1, A1)>1 function highlights duplicates. I can use conditional formatting to make the text white, effectively hiding it. And I can use the IF function to recognise an adjacent cell, and perform an action based on it.

    It's my first post in this forum. I welcome your help and advice. Thank you.


    Attachment: "personnel assignment example"
    Last edited by mikelee147; 01-19-2022 at 05:57 AM. Reason: Edited attachment to include desired future state

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,481

    Re: Hide other duplicates using cond formatting + IF function based on x in adjacent cell

    Welcome to the forum.

    In the sample workbook, can you please add a second instance of the table showing us how you want it to look once you have added the x marks?
    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.

  3. #3
    Registered User
    Join Date
    01-19-2022
    Location
    Nottingham, England
    MS-Off Ver
    365 Version 2102
    Posts
    2

    Re: Hide other duplicates using cond formatting + IF function based on x in adjacent cell

    Hi Ali
    I've edited the original attachment. Thank you!
    Mike

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,481

    Re: Hide other duplicates using cond formatting + IF function based on x in adjacent cell

    Thanks! Will have a think ...

+ 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. Replies: 1
    Last Post: 03-01-2019, 01:56 AM
  2. Replies: 3
    Last Post: 06-28-2018, 11:20 PM
  3. [SOLVED] remove duplicates based on adjacent cell value
    By kalelrojin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2015, 05:07 PM
  4. Replies: 1
    Last Post: 09-20-2011, 06:14 AM
  5. Replies: 4
    Last Post: 01-28-2011, 11:34 AM
  6. Shading Duplicates w/cond. Formatting
    By dbuttery1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-06-2008, 11:15 PM
  7. Help with function/cond. formatting
    By Roz in forum Excel General
    Replies: 19
    Last Post: 12-22-2005, 09:03 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