+ Reply to Thread
Results 1 to 4 of 4

counting the length of characters in a cell before a particular character.

  1. #1
    Registered User
    Join Date
    02-07-2009
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    17

    counting the length of characters in a cell before a particular character.

    I am trying to highlight cells that contain an X number of characters before the - sign. For e.g.. lets say I have a list like this:

    12-2929
    0993-2929
    00992-2939
    10-2929

    From the above list I would like to highlight cells that contain 2 characters before the dash, i.e., 12-2929 and 10-2929. I was wondering, what would be the best way of doing this via conditional formatting or using the Len formula in combination with another formula?
    Last edited by on_way_to_fame; 03-08-2012 at 03:52 PM. Reason: Solved

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: counting the length of characters in a cell before a particular character.

    Perhaps use as CF formula
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: counting the length of characters in a cell before a particular character.

    Highlight your range, conditional formatting, custom > enter =FIND("-",A1)=3

  4. #4
    Registered User
    Join Date
    02-07-2009
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    17

    Re: counting the length of characters in a cell before a particular character.

    Thanks a ton guys. That did the trick.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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