+ Reply to Thread
Results 1 to 4 of 4

How to Conditional Format based on adjacent cells

  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to Conditional Format based on adjacent cells

    Picture1.jpg

    How do I create a CF if a cell is blank (in my case represent no sales) i want to have it yellow (ex. C2)
    But if it has two consecutive blank cell i want to CF with Red. (Ex. F3)
    But i also need to exclude blank cells when we we have no previos sales of that item (Ex.B3)


    Thanks for your help

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to Conditional Format based on adjacent cells

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. 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 demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    10-18-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to Conditional Format based adjacent cells

    i have attached a sample file.

    Thanks for your help!

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: How to Conditional Format based on adjacent cells

    Select your whole data range starting at B2 and use this CF formula for yellow

    =AND(COUNT(A2),B2="")

    and this for red

    =AND(COUNT($A2:A2),A2="",B2="")

    3rd, 4th etc. blanks will also be formatted red....
    Audere est facere

+ 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. Replies: 5
    Last Post: 07-12-2013, 01:15 AM
  2. [SOLVED] Conditional Formatting Based on Adjacent Cells and Values
    By stusic in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-03-2013, 03:59 PM
  3. Replies: 3
    Last Post: 07-19-2012, 01:24 PM
  4. Replies: 1
    Last Post: 04-26-2010, 04:53 AM
  5. Format cell based on adjacent cells values
    By the majestic ferny in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-16-2005, 02:35 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