+ Reply to Thread
Results 1 to 5 of 5

Conditionally format based on a formula matching a string with digits, not letters

  1. #1
    Registered User
    Join Date
    09-29-2017
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    7

    Conditionally format based on a formula matching a string with digits, not letters

    I'm trying to match and format Japanese street names, and I have used Highlight Cell Rules / Text that Contains: *-*-
    2-4-1 Marunouchi Chiyoda-ku
    2-7-1 Marunouchi Chiyoda-Ku
    2-7-1 Marunouchi Chiyoda-Ku

    That worked, but I have false matches I want to avoid:
    Senador Dantas street 7th floor - Centro - RJ.
    Euljiro 2-ga Jung-gu Seoul
    Nihonbashi Chuo-ku Tokyo 103-8011 Japan

    I'm guessing that a formula may work, but I'm clueless in London...
    Any help would be greatly appreciated.

    I want to match Digit(s) Hyphen Digit(s) Hyphen Digit(s) SPACE, and then highlight those cells a certain color.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Conditionally format based on a formula matching a string with digits, not letters

    Maybe any example excel workbook with more examples of street names?

    The pattern is always the same?
    number - number (highlighted)
    if different than above (not highlighted)

    you can try
    =AND(ISNUMBER(--LEFT(A1,1)),SEARCH("-",A1)>0,ISNUMBER(--MID(A1,SEARCH("-",A1)+1,1)))
    but would be fine to see more examples

  3. #3
    Registered User
    Join Date
    09-29-2017
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    7

    Re: Conditionally format based on a formula matching a string with digits, not letters

    I want to match Digit(s) Hyphen Digit(s) Hyphen Digit(s) SPACE
    I want to match that, and only that.
    1-10-1
    10-10-1
    1-1-10

  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,460

    Re: Conditionally format based on a formula matching a string with digits, not letters

    Try this instead: ?-?-
    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
    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,460

    Re: Conditionally format based on a formula matching a string with digits, not letters

    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. [SOLVED] Conditional Format Based on Matching or Not of First 3 Letters of another Column
    By excel2425 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-19-2017, 01:13 PM
  2. Replies: 1
    Last Post: 01-04-2017, 06:00 PM
  3. Replies: 1
    Last Post: 01-04-2017, 05:59 PM
  4. Replies: 2
    Last Post: 04-18-2016, 06:25 AM
  5. Formula to assign letters to digits and repeatedly sum to a single digit
    By nj.astrology in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-11-2014, 01:45 AM
  6. [SOLVED] Macro to Conditionally Format matching column/row cells in a grid.
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-28-2013, 10:35 AM
  7. [SOLVED] extracting digits only from column with letters and digits
    By Jayne in forum Excel General
    Replies: 11
    Last Post: 08-20-2012, 10:38 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