+ Reply to Thread
Results 1 to 11 of 11

Conditional Formating based on a list of special characters

  1. #1
    Forum Contributor
    Join Date
    07-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2013/2016
    Posts
    107

    Conditional Formating based on a list of special characters

    Excel Version 2013/2016

    I used a PowerShell Script to extract from a folder structure all folder names, filenames, and subfolders. Then I broke that into multiple columns. C to F are the ones I'm concerned about. These particular folders cannot contain a list of special characters. i.e. #, $, ', ", %, ., etc. One thing that makes it difficult is I have to search for periods. Not periods can be in the file or folder names other than the period before the file extension.

    I think I need 2 conditional formatting rules, one that uses the list of special characters and another that looks for periods in file and folder names that don't belong.

    To give you an idea of the second issue with the periods.

    Folder names:
    Arch. Rev. 2 06-03-17

    Filenames
    Arch. Drawing No. 03.pdf

    Thank you

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

    Re: Conditional Formating based on a list of special characters

    Attach a sample workbook (not a picture!). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Contributor
    Join Date
    07-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2013/2016
    Posts
    107

    Re: Conditional Formating based on a list of special characters

    Here you go. It's the exact file I already set some conditional formating, but I'm having trouble with the one I mention.

    You can turn all those off if you need too. Also I didn't input a list of symbols yet, but pretty much anything other than what's in tis blog post that says OK TO USE
    http://www.asti.com/Blog/PostId/2075...-bim-360-field
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Conditional Formating based on a list of special characters

    This suggestion for the out of place period issue is based on the observation that all of the file extensions listed in the file attached to post #3 have three letters.
    Try using the following formula as a conditional formatting rule to highlights "periods in file and folder names that don't belong" as well as double periods and periods in dates:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Look at sheet 1 of the copy of your file to see a list of the types of cells on which the formula was tested.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Contributor
    Join Date
    07-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2013/2016
    Posts
    107

    Re: Conditional Formating based on a list of special characters

    Why does the Rule with "=SEARCH(".",C2)<>LEN(C2)-3" in it work through out the Cells? Everytime I view the conditional formating on a cell that's the formula that's in it, but it works.

  6. #6
    Forum Contributor
    Join Date
    07-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2013/2016
    Posts
    107

    Re: Conditional Formating based on a list of special characters

    Nevermind I think I have it now, still working on the formatting

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Conditional Formating based on a list of special characters

    Thank You for the feedback. Let us know if you need additional help, however if your issue is resolved please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

  8. #8
    Forum Contributor
    Join Date
    07-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2013/2016
    Posts
    107

    Re: Conditional Formating based on a list of special characters

    One more question, I'd like to search the range and locate all extra periods, not to include the period right before the file extensions. I was able to build a formula that works for the other characters, but with the periods, it's find all of them.

    =SUMPRODUCT(LEN($B$21:$AA$200001)-LEN(SUBSTITUTE($B$21:$AA$200001,B3,"")))

    Just not sure how to make it not see those periods that need to be there.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Conditional Formating based on a list of special characters

    The formula has been modified to find instances of 'extra periods' in columns D:F of the file.
    Formula reads: =SEARCH(".",D9)<>LEN(D9)-3 and is applied to: $D$9:$F$668
    It is the only rule currently applied to that section so that you can see that it doesn't 'flag' folders that correctly contain a period before the file extension only.
    Let us know if you have any questions.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    07-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2013/2016
    Posts
    107

    Re: Conditional Formating based on a list of special characters

    JeteMc,

    My apologies. When I said I wanted to find them I meant I wanted to count them. See my current verision. In Cell A2 I want to have a formula that will find and count the extra periods.
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Conditional Formating based on a list of special characters

    Try the following array entered formula*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *To activate an array entered formula simultaneously press CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let us know if you have any questions.

+ 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 formating based of list of values that grows
    By horsefish01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2016, 05:21 PM
  2. Replies: 12
    Last Post: 01-26-2015, 04:18 AM
  3. sort list/range of number with special characters
    By jscc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2012, 01:29 PM
  4. sort list/range of number with special characters
    By jscc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2012, 09:02 AM
  5. Conditional formating based on a list of specific dates
    By dimmere19 in forum Excel General
    Replies: 1
    Last Post: 07-20-2011, 02:11 PM
  6. Conditional Formatting with special characters
    By Climaxgp in forum Excel General
    Replies: 7
    Last Post: 08-24-2009, 09:32 AM
  7. list two columnar values based on conditional formating (text color)
    By beechum1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-12-2006, 05:53 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