+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting for specific phone number format

  1. #1
    Registered User
    Join Date
    03-09-2023
    Location
    Charlotte, US
    MS-Off Ver
    excel
    Posts
    5

    Smile Conditional formatting for specific phone number format

    Hi all,

    I want to see all phone numbers that are not in this format ###-###-#####, to get highlighted.

    Ideally I'm looking for a conditional formatting rule that will check the phone format, and if it's not in this format ###-###-#####, highlight the cell.

    Phone #.xlsx

    The attachment has two columns, one with plain data and the other showing what I would want the conditional formatting to do (however in my sheet this has been completed manually by inserting a fill)

    Thank you so much in advance!

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

    Re: Conditional formatting for specific phone number format

    Highlight A2:A12 > Conditional Format > New Rule > Use a formula
    =NOT(COUNTIF(A2,"???-???-????"))
    Format: Fill yellow > OK > OK

  3. #3
    Registered User
    Join Date
    03-09-2023
    Location
    Charlotte, US
    MS-Off Ver
    excel
    Posts
    5

    Re: Conditional formatting for specific phone number format

    Thank you for your help! I added this and it worked for some....but also missed mis-formatted others.

    Any idea why?

    For example, 777-777-7777 is a correct format but is being marked yellow. 000-000-00 is incorrect format but is not being marked as yellow.
    Phone #.xlsx

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

    Re: Conditional formatting for specific phone number format

    The Conditional Formatting Rules Manager suggests that you did not apply the formula the same way as was suggested in post #2.

    You applied it to the entire column A (which starts with cell A1).

    If you want to do this, change the formula to:
    =NOT(COUNTIF(A1,"???-???-????"))

    If you want to apply the CF to the entire column and don't want to highlight blank cells, you can use this:
    =AND(A1<>"",NOT(COUNTIF(A1,"???-???-????")))

  5. #5
    Registered User
    Join Date
    03-09-2023
    Location
    Charlotte, US
    MS-Off Ver
    excel
    Posts
    5

    Re: Conditional formatting for specific phone number format

    Awesome! Thank you so much for your help!!

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

    Re: Conditional formatting for specific phone number format

    Happy to help. Thanks for the rep.

+ 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. Conditional formatting for specific date format
    By jaryszek in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 01-04-2023, 05:28 AM
  2. AutoFilter phone number column while keeping phone number formatting
    By Daneyuleb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2021, 12:49 AM
  3. [SOLVED] if conditional format, then a phone number
    By chubbychub in forum Excel General
    Replies: 4
    Last Post: 06-12-2020, 04:44 AM
  4. Conditional Formatting "if text includes a phone number"
    By karenb2001 in forum Excel General
    Replies: 4
    Last Post: 06-21-2019, 08:49 PM
  5. [SOLVED] Phone number format - reference post (Formatting Textbox to type phone numbers only)
    By eddyrcabrera79 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-01-2015, 05:35 PM
  6. Conditional formatting for specific phone number format
    By nwpassage in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-10-2015, 12:30 PM
  7. how do I add phone number format as a permanent custom format?
    By frustratedagain in forum Excel General
    Replies: 3
    Last Post: 02-03-2006, 11:52 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