code or valadation to highlight cell yellow

Posted on 2011-10-11
Last Modified: 2012-05-12
I want to highlight a cell if the following orrors:

if c5 = "" and c6 = something then highlight c5
and if c6 = "" and c5 = something then highlight c6

when there is 'something' in c5 and c6 OR there nothing in c5 and c6 then NO highlighting.

Hi experts,
I need to do this to multiple double cell throughout my sheet.

example attached:


Question by:RobJanine
    LVL 26

    Accepted Solution


    Please see attached.

    Conditional Formatting formula is ...

    Brian. Highlighting-V2.xlsx
    LVL 43

    Expert Comment

    by:Saqib Husain, Syed
    Try this formula

    LVL 26

    Expert Comment

    Please note, the formula is "row-sensitive". So, if it "starts" on an even-numbered row then the formula should be...

    Author Closing Comment

    Works Great!!! Thanks
    LVL 26

    Expert Comment

    Thanks, RobJanine!

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
    How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
    The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
    Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now