Results 1 to 4 of 4

Need help with conditional formatting formula

Threaded View

  1. #1
    Registered User
    Join Date
    12-31-2013
    Location
    Latrobe Pennsylvania, US
    MS-Off Ver
    Excel 2003
    Posts
    12

    Need help with conditional formatting formula

    Hi everyone,

    I have a decently working code right now that takes data which is output from a program and input into excel. I have almost every step of the macro working as I need it to, however one step is tripping me up a bit. I am trying to highlight any rows which contain a Due Date which is past due (so any late jobs) in Red, any jobs that are due today in blue, any due in the next two days as green, and any in the future as purple. So far, I am able to color the cells easily enough for past due and future, however jobs due today is tripping me up a bit. It seems that, even though I had excel format the cells as only dd/mm/yyyy, there is still time stamp data being considered for the formula, so now all jobs with a due date of 4/29/14 are being counted as due today (or something like that.)

    So far I've been using the conditional format for =$G2-.1<TODAY() and making that turn the row red, and so on.

    I have only just started to teach myself to program so I'm sure that I am working at it in a clunky way, but I'm just trying to define it for the worksheet that if any date's listed are past today's physical date (by that I mean just the day number that it is) it switches.

    I also don't know how to write a conditional format for if a value lands inside a range; for example, if I want to change the color of all cells with due dates encompassing both today and tomorrow. Thanks for any help you can give.

    Sean

    - I do have the entire code that I'm using available if that helps
    Last edited by smurphy619; 04-30-2014 at 10:33 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  2. If Formula - conditional formatting - three different formatting rules
    By sharper1989 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-25-2014, 04:49 PM
  3. Replies: 3
    Last Post: 11-28-2013, 02:11 AM
  4. Replies: 1
    Last Post: 07-19-2012, 05:37 AM
  5. Replies: 6
    Last Post: 03-12-2006, 06:30 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