+ Reply to Thread
Results 1 to 7 of 7

Format based on data and date...

Hybrid View

  1. #1
    Registered User
    Join Date
    11-19-2012
    Location
    OH
    MS-Off Ver
    Excel 2010
    Posts
    3

    Format based on data and date...

    Hello all,

    This is my first question/post to the board, be easy on me (I searched).

    I am trying to figure out a formula that will change the color of a range of cells if they are blank, and if the date is today or earlier.

    Right now I have "=ISBLANK(C2:C35)"

    Of course this has the desired result of filling only the blank cells, but since it is compiled into a monthly spreadsheet all of the future dates are filled as well. I would like for it to only fill past or current information rather than past/present/future.

    Does that change the formula to an "IF" statement?

    Thanks,
    Matt

  2. #2
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Format based on data and date...

    Hi

    Use your conditional formatting for that if you are not sure post a sample to be amended.

    Chris
    Click my star if I helped Thanks

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Format based on data and date...

    Hi 90G60,

    Welcome to the forum.

    The formula =ISBLANK(C2) should be used in single cell reference and you can use it for range of cells if you are using it with some other function with array notion.

    Some more details are required for giving exact solution for your query so please post a sample workbook by explaining the expected outcome with cell or row references.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    11-19-2012
    Location
    OH
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Format based on data and date...

    Sorry, still new to posting these on the forums. So for now I will use screen shots.

    In the first screen shot you can see that there are two cells filled as they are blank. This is what I am going for. What I am hoping to fix is that when applied to the workbook it formats all of the future dates since they are blank (as it hasn't happened yet).

    It is really just an annoyance, it doesn't actually harm anything.

    11-16.jpg

    11-20.jpg

    Thanks again!

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Format based on data and date...

    Hi 90G60

    Select the range you want to apply the conditional formating. Then new rule, use a formula.

    Formula: copy to clipboard
    =OR($C2="",$C2<=TODAY())
    Last edited by Kevin UK; 11-19-2012 at 02:53 PM.

  6. #6
    Registered User
    Join Date
    11-19-2012
    Location
    OH
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Format based on data and date...

    Quote Originally Posted by Kevin UK View Post
    Hi 90G60

    Select the range you want to apply the conditional formating. Then new rule, use a formula.

    Formula: copy to clipboard
    =OR($C2="",$C2<=TODAY())
    When I used the same formula with the cell range I need all the cells were filled.
    Last edited by 90G60; 11-19-2012 at 03:03 PM.

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Format based on data and date...

    Hi See attached, select the cells A1:A23 then click on Conditional formatting, manage rules, select the rule, click edit rule, the rules are there.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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