+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting for Tagged, Non-Tagged, and Blank Data?

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    25

    Conditional Formatting for Tagged, Non-Tagged, and Blank Data?

    Hi everyone,

    For my office, I'm putting together a spreadsheet that will track different projects. The spreadsheet will be created by me, but shared and updated by many co-workers, many of whom are not very technically savvy. I'm trying to use Custom Formatting rules to make the spreadsheet easy to read at a glance. Here's an example of what it looks like thus far:

    Pict1.jpg

    You'll note that there are three types of data here:
    • Tagged Data: Data which begins with some easily-searchable tag, e.g. "ABC_" "XZY_"
    • Untagged Data: Data with no tag, e.g. "TOM", "HARRY", etc
    • NO DATA: An empty cell

    A few quick notes about tags:
    • Tags may not be four characters, but will always end in a '_' character.
    • In fact, I can assume that the '_' character will only appear in a tag.
    • So, if a cell contains the '_' character, every character to the left of the '_' is part of the tag.


    I'd love it if the three types of data could be automatically highlighted via Conditional Formatting, ultimately looking something like this:

    Pict2.jpg

    Here, I've already created highlighting rules for the Tagged Data, that was easy enough. But ultimately for each cell, I want the spreadsheet to automatically do the following:

    If Cell is Empty:
    ....Apply Conditional Formatting Rule: Dark
    If Cell is not Empty:
    ....If Cell Data has a Tag:
    ........Apply the suitable Formatting Rule (defined earlier?)
    ....If Cell Data has no Detectable Tag:
    ........Apply a default Formatting Rule (BLUE, dark font, whatever)

    Is there a way to do this? Thank you!

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,131

    Re: Conditional Formatting for Tagged, Non-Tagged, and Blank Data?

    a sample sheet would help - rather than an image

    3 conditions rules

    rule 1
    =ISNUMBER(Search("_",A1,1))
    and colour - that will make ALL tags the same colour - not sure how to group tag colours

    rule 2
    =A1=""

    Rule 3
    =NOT(ISNUMBER(SEARCH("_",A1,1)))
    maybe otherwise , just to find text without a _

    for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
    Conditional Formatting

    Highlight applicable range >>
    A1:Z100 - Change, reduce or extend the rows to meet your data range of rows

    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:
    =ISNUMBER(Search("_",A1,1))

    Format [Number, Font, Border, Fill]
    choose the format you would like to apply when the condition is true
    OK >> OK

    repeat for all other rule formulas

    But you will only have 3 colours

    Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet.

    A sample sheet would help here

    The forum does allow for spreadsheets to be uploaded direct to the forum -

    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    01-17-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Conditional Formatting for Tagged, Non-Tagged, and Blank Data?

    You are correct, etaf, here's a sample spreadsheet. Thank you!
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Conditional Formatting for Tagged, Non-Tagged, and Blank Data?

    Hi
    for blank cells:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    for tag cells
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    for non blank and no tag
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  5. #5
    Registered User
    Join Date
    01-17-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Conditional Formatting for Tagged, Non-Tagged, and Blank Data?

    Yes! Thank you! Marking this as SOLVED...!

+ 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 and blank data cells
    By stevejd58 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2018, 07:23 PM
  2. [SOLVED] Tagged word / phrase count VB help please
    By fairlo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-08-2016, 05:55 AM
  3. [SOLVED] Transpose tagged files to row-column based documents
    By boomcie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2014, 09:28 AM
  4. Time Calculations with tagged wording
    By Curlyisking in forum Excel General
    Replies: 12
    Last Post: 05-06-2012, 11:36 PM
  5. Copying tagged rows to new worksheet
    By jacob@thepenpoint in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-20-2012, 09:40 PM
  6. Reading tagged data via VBA
    By paul_j_ in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-10-2011, 11:03 PM
  7. Replies: 1
    Last Post: 07-20-2005, 11:05 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