+ Reply to Thread
Results 1 to 6 of 6

Highlight a cell if the nth character is a certain number/text or starts with text

  1. #1
    Registered User
    Join Date
    03-08-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    33

    Question Highlight a cell if the nth character is a certain number/text or starts with text

    Does anyone know how I would highlight a cell in conditional formatting if for instance the 6th character in a cell is a number five or if the first five characters in the cell start "ABCDE"?

    Many thanks guys

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Highlight a cell if the nth character is a certain number/text or starts with text

    i think you would need to do two CF's
    Formula =LEFT(A1,5)="ABCDE"
    formula =MID(A1,6,1)="5"
    Attached Files Attached Files
    Last edited by humdingaling; 04-01-2015 at 03:34 AM. Reason: Oops...change the mid to 6 instead of 5
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

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

    Re: Highlight a cell if the nth character is a certain number/text or starts with text

    =MID(K1,6,1)="5"

    =MID(K2,1,5)="abcde"

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Highlight a cell if the nth character is a certain number/text or starts with text

    or in one CF rule...

    =OR(MID(A1,6,1)="5",LEFT(A1,5)="ABCDE")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Registered User
    Join Date
    03-08-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    33

    Re: Highlight a cell if the nth character is a certain number/text or starts with text

    Great, thanks everyone.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Highlight a cell if the nth character is a certain number/text or starts with text

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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: 4
    Last Post: 08-13-2014, 11:03 PM
  2. Replies: 3
    Last Post: 08-02-2013, 12:43 PM
  3. [SOLVED] Highlight row based on character/text string containing in cell.
    By dihris in forum Excel General
    Replies: 2
    Last Post: 12-03-2012, 11:16 AM
  4. Replies: 19
    Last Post: 06-13-2012, 09:03 AM
  5. Macro to find character and delete all text in cell after the character
    By SpencerRichman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2012, 06:08 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