+ Reply to Thread
Results 1 to 6 of 6

Change font and cell fill depending upon difference in days between two date columns

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Change font and cell fill depending upon difference in days between two date columns

    Hello, another question. On my worksheet I have a cloumn headed 'received date' and a second column headed 'completed date'. Each row represents a project quotation. So, in row 1 project A was recieved on the first of November 2012 (01/11/2012), in the next cell to the right (second column) I would input the date when this quotation was completed.

    If the difference between these dates is greater than 7 days, what function/formula would I use to make the font in the same row of both columns turn red. Same question again, but more than 10 days the font is bold red on a light red fill. Same question again but less than 7 days is green font.

    My last question posted here, was solved within the hour - I couldn't ask for better service.
    I wait patiently for your answers

    Geoff

  2. #2
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: Change font and cell fill depending upon difference in days between two date columns

    use this formula in conditional formatting

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: Change font and cell fill depending upon difference in days between two date columns

    but anchor the columns. You can apply same formula for the other formatting you want.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-26-2012
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Change font and cell fill depending upon difference in days between two date columns

    Att jkj115, I'm using excel 2010. Can you please tell me how to use this formula in conditional formatting? Thank you for your time, this forum is great for assissting noobs like myself get ahead.
    Cheers

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Change font and cell fill depending upon difference in days between two date columns

    hi Geoffo123. highlight the cells you need from top left to bottom right & go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    assuming A2 & B2 are the Received & Completed Dates then use this formula:
    =($B2-$A2)>7
    go to "Format" & do the necessary colouring

    or the rest, just repeat the above step & do these formulas:
    =($B2-$A2)>10

    =($B2-$A2)<7

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Registered User
    Join Date
    10-26-2012
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Change font and cell fill depending upon difference in days between two date columns

    Hi all, for some reason, it has stopped working. Although when I go to conditional formatting, manage rules, it is still there. I was wondering if there was any other way to do this. I have inserted a snip pic of the actual worksheet,
    excel snip.jpg
    as you can see, it concerns only the recieved column and the completed column. This is only per my reference, as i like to see where and why certain items take longer in order to improve.

    Any assistance here would be very much appreciated
    Cheers, Geoff

+ 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