+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting - turn blank cell yellow and when text entered blank on

Hybrid View

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2016
    Posts
    13

    Conditional formatting - turn blank cell yellow and when text entered blank on

    Hi.
    I need assistance please. I need rules for my table on the following conditions:

    1. If data/text is entered in A2, B - E 2 turns yellow to indicate outstanding information. When data is entered,it turns blank.

    2. If A2 has no data. No formatting

    Thanks in advance ☺️
    Last edited by LOURIKA; 02-20-2024 at 07:23 AM.

  2. #2
    Registered User
    Join Date
    10-08-2013
    Location
    Zambia
    MS-Off Ver
    MS365 64-bit
    Posts
    20

    Re: Conditional formatting - turn blank cell yellow and when text entered blank on

    Test this out.

    I think 1 and 2 work fine, but I'm struggling to understand your requirement for rule 3?

    CONDITIONAL FORMATTING - CELLS TURN BLANK WHEN TEXT ENTERED updated.xlsx

    Cheers
    Nico

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: Conditional formatting - turn blank cell yellow and when text entered blank on

    First of all, remove the manual colour that you have set in your sample file, then select the range of cells B2:E10 and click on Conditional Formatting | New Rule | Use a formula... , then put this formula in the dialogue box which pops up:

    =AND($A2<>"",B2="")

    Click on the Format button | Fill tab and click on Yellow, then OK your way out.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    10-08-2013
    Location
    Zambia
    MS-Off Ver
    MS365 64-bit
    Posts
    20

    Re: Conditional formatting - turn blank cell yellow and when text entered blank on

    Whoops! Small tweak. I only read your instructions in the file. I had another look a the rules here in the thread and it now makes more sense.

    You want to apply colours for empty cells. But ONLY if there is a value in col A. If there is no value in col A then there is no formatting in that row, regardless of whether a cell is blank or not.

    Check out rows 12-14.

    I created this rule for the range $B$12:$E$14
    =AND(NOT(ISBLANK($A12)),ISBLANK(B12))

    CONDITIONAL FORMATTING - CELLS TURN BLANK WHEN TEXT ENTERED updated2.xlsx

    Ignore the previous post.

  5. #5
    Registered User
    Join Date
    10-08-2013
    Location
    Zambia
    MS-Off Ver
    MS365 64-bit
    Posts
    20

    Re: Conditional formatting - turn blank cell yellow and when text entered blank on

    Ok, third time lucky...

    I see you had a rule in the workbook that was not stated on the thread:

    "Once text is entered in column A then all cells get a border".

    Please refer attached, it should be fine now.

    I added a second rule, as follows:
    =NOT(ISBLANK($A12))

    And when this rule is true, the entire row get borders, from col A to col E.

    CONDITIONAL FORMATTING - CELLS TURN BLANK WHEN TEXT ENTERED updated3.xlsx

  6. #6
    Registered User
    Join Date
    10-19-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Conditional formatting - turn blank cell yellow and when text entered blank on

    Thank you very much.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: Conditional formatting - turn blank cell yellow and when text entered blank on

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Formula to Return Blank Cells if Yellow (Conditional Formatting Involved)
    By applehugger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-12-2023, 09:23 AM
  2. Replies: 6
    Last Post: 01-11-2016, 09:04 AM
  3. Add row with formatting if text in cell OR add blank row filled with blue if blank
    By sierradk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2014, 04:15 AM
  4. [SOLVED] Conditional formatting-if cell is blank it says BLANK
    By KK1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-04-2013, 04:27 AM
  5. Replies: 2
    Last Post: 02-22-2013, 04:24 PM
  6. [SOLVED] Turn off conditional formatting on blank cells
    By OverKnight in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-10-2013, 05:06 PM
  7. Replies: 3
    Last Post: 11-03-2009, 03:06 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