+ Reply to Thread
Results 1 to 20 of 20

how to stop the repeat names

Hybrid View

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    Houston
    MS-Off Ver
    Excel 2019
    Posts
    43

    how to stop the repeat names

    Hello, I have attached a spread sheet with 3 columns names.
    Column-1, nurse clinician name
    Column-2, Peer-1
    Column-3, Peer-2
    my question is how to stop or alert for inserting name on Column-3 if the names is same as on Column-2
    eg: peer-1 choose Mary Mathew and peer-2 choose Mary Mathew. (so peer-2 should get the alert or color change or some kind of notification.
    please help...
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,939

    Re: how to stop the repeat names

    you want the alerts when names are in the same row or in when they are in different rows also.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    02-18-2014
    Location
    Houston
    MS-Off Ver
    Excel 2019
    Posts
    43

    Re: how to stop the repeat names

    yes, I want the alert for same names are in the row

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: how to stop the repeat names

    Quote Originally Posted by ancherilvm View Post
    yes, I want the alert for same names are in the row
    In that case, disregard the suggestion from post #4.

  5. #5
    Registered User
    Join Date
    02-18-2014
    Location
    Houston
    MS-Off Ver
    Excel 2019
    Posts
    43

    Re: how to stop the repeat names

    see the attached book. but there is a problem how can I avoid blank cells. if there is no names. see attached spread sheet
    I used this formula =$E4 = $H4
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,652

    Re: how to stop the repeat names

    Delete merge cells

    Change datavaldation formula in
    =COUNTIF($C4:D4,D4)<2
    Last edited by popipipo; 01-23-2018 at 02:51 PM. Reason: merge cell
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: how to stop the repeat names

    Here's one way through Conditional Formatting (color change):

    Highlight H4:H10 > Conditional Formatting > New Rule > Use a formula

    =COUNTIF(E:E,H4)

    Format: However you'd like. > OK > OK

  8. #8
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: how to stop the repeat names

    A conditional format will do that for you

    Select A4:J10

    Select conditional formatting, New Rule, use formula

    enter this in to the formula box
    Formula: copy to clipboard
    =$E4 = $H4


    Select format, select fill, select red.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,939

    Re: how to stop the repeat names

    =AND($E4=$H4,$E4<>"")
    use above formula in conditional format

  10. #10
    Registered User
    Join Date
    02-18-2014
    Location
    Houston
    MS-Off Ver
    Excel 2019
    Posts
    43

    Re: how to stop the repeat names

    Thanks, this will help

  11. #11
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,652

    Re: how to stop the repeat names

    With datavalidation you can't fill in the same name twice.
    Then you don't need conditional format
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    02-18-2014
    Location
    Houston
    MS-Off Ver
    Excel 2019
    Posts
    43

    Re: how to stop the repeat names

    to popipipo: I had a data validation inserted for to stop same entry more than 2 in column-3. the new validation removes the original. is there anyway I can insert two data validation in the same column?

  13. #13
    Registered User
    Join Date
    02-18-2014
    Location
    Houston
    MS-Off Ver
    Excel 2019
    Posts
    43

    Re: how to stop the repeat names

    is there anyway to put together these formula for Column 2 and 3 in the work book
    =AND($E4=$H4,$E4<>"")
    =IF(COUNTIF($E$1:E4,E4)<3,1,0)

  14. #14
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: how to stop the repeat names

    Combining those two formulas would give you this:

    =AND($E4=$H4,$E4<>"",COUNTIF($E$1:E4,E4)<3)

    Untested in Data Validation.

  15. #15
    Registered User
    Join Date
    02-18-2014
    Location
    Houston
    MS-Off Ver
    Excel 2019
    Posts
    43

    Re: how to stop the repeat names

    not working

  16. #16
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: how to stop the repeat names

    That's because one is for Conditional Formatting and the other is for Data Validation.

    Try this. Highlight H4:H10 > Data > Data Validation > Allow: Custom > Formula:

    =AND(E4<>H4,COUNTIF(E$4:E4,E4)<3)

  17. #17
    Registered User
    Join Date
    02-18-2014
    Location
    Houston
    MS-Off Ver
    Excel 2019
    Posts
    43

    Re: how to stop the repeat names

    this formula doesn't stop more than 2 same name entry, but it only restrict the same name entry.

  18. #18
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: how to stop the repeat names

    Whoops. The formula from post #16 should have been:

    =AND(E4<>H4,COUNTIF(H$4:H4,H4)<3)

  19. #19
    Registered User
    Join Date
    02-18-2014
    Location
    Houston
    MS-Off Ver
    Excel 2019
    Posts
    43

    Re: how to stop the repeat names

    this works perfect. thanks for all the help

  20. #20
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: how to stop the repeat names

    You're welcome. Glad we could help.

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

+ 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. Count no of items names repeat
    By goodboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2016, 03:46 PM
  2. [SOLVED] Repeat a list of names X number of times
    By jonpaulson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-10-2014, 04:24 PM
  3. ID repeat names and base calcs on those names
    By benyben123 in forum Excel General
    Replies: 11
    Last Post: 11-27-2013, 09:45 PM
  4. [SOLVED] Repeat Names on a list depending on how many visits
    By Dave69rock in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2013, 04:17 PM
  5. Take column names and not repeat the line
    By marreco in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-18-2012, 01:34 PM
  6. Excel 2007 : Count Repeat Names
    By jaytaylor in forum Excel General
    Replies: 4
    Last Post: 01-29-2010, 02:48 PM
  7. Repeat names in pivot table
    By Bandini in forum Excel General
    Replies: 4
    Last Post: 12-21-2009, 08:55 AM

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