+ Reply to Thread
Results 1 to 12 of 12

[request] A formula to calculate # days past since (date) then highlight column

  1. #1
    Registered User
    Join Date
    05-20-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    9

    [request] A formula to calculate # days past since (date) then highlight column

    Hi, i'm an excel noob. i know the program can do this, i just don't know how.

    I do landscaping, and i need to know how long it's been since the last time each lawn was mowed.

    so something like:

    If [last mowed] > [8 days ago] then [highlight row].

    or something. i just need the functions and i can play around.

    THANK YOU!
    Last edited by Zeroable; 05-21-2015 at 06:45 PM.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Simple formula (i think)

    you need to combine 3 things
    1> if formula
    http://www.techonthenet.com/excel/formulas/if.php

    2> today formula
    http://www.techonthenet.com/excel/formulas/today.php

    3>conditional formatting
    http://www.contextures.com/xlCondFormat01.html
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Simple formula (i think)

    Hi, welcome to the forum

    Actually, before you do those 3 things...
    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-20-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    9

    Re: Simple formula (i think)

    Quote Originally Posted by humdingaling View Post
    Thanks for your response!,

    Ok, so i'm trying. it's not working so far. this is what i have as a conditional format:
    Please Login or Register  to view this content.
    where's my error? thanks

    i did however get a column to report a true or false on those with the formula of
    Please Login or Register  to view this content.
    Last edited by Zeroable; 05-21-2015 at 09:24 PM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: [request] A formula to calculate # days past since (date) then highlight column

    You need to remove the "", and iof this is for CF, you dont need the IF() part...
    =IF("TODAY()>[Last Date Done]+7",TRUE)
    =TODAY()>[Last Date Done]+7

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: [request] A formula to calculate # days past since (date) then highlight column

    i mocked something up for you yesterday
    was awaiting for you to comply with Mods request before attaching

    see attached to help you see how it can work
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-20-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    9

    Re: [request] A formula to calculate # days past since (date) then highlight column

    Quote Originally Posted by humdingaling View Post
    i mocked something up for you yesterday
    was awaiting for you to comply with Mods request before attaching

    see attached to help you see how it can work
    This is perfect! thank you!

    one other question: is it possible to highlight the entire row? or the customers name (in the same row) ? this will work regardless. thank you!

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: [request] A formula to calculate # days past since (date) then highlight column

    i dont recommend doing the whole row just do enough for what you need
    check where it says applies to
    eg change applies to
    =$A$2:$A$25 to =$A$2:$O$25

    you can change the O to how long you want it to be

  9. #9
    Registered User
    Join Date
    05-20-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    9

    Re: [request] A formula to calculate # days past since (date) then highlight column

    ok this is fun.

    Can i make it so that the longer it's been, the darker the red? (change colors).

    if i make another rule it just overrides the last rule..

    thanks again

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: [request] A formula to calculate # days past since (date) then highlight column

    The color gradient is not available for the "use Formula" rule

    1 option would be to make additional rules with, say, 1 week decrements, and then have a different color for those. Something like...
    =A2<=TODAY()-15
    make this another color
    =A2<=TODAY()-22
    Make this another color

  11. #11
    Registered User
    Join Date
    05-20-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    9

    Re: [request] A formula to calculate # days past since (date) then highlight column

    awesome, thanks!

    i realized that the order in which they are listed is important, as one will override the last. thank you for your quick help

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: [request] A formula to calculate # days past since (date) then highlight column

    Yes, the order is important, good catch there. Happy to help and thanks for the feedback

+ 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. [SOLVED] Simple Formula?!
    By caziscarol in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2015, 10:45 AM
  2. Simple formula help
    By iampain13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-22-2014, 12:21 PM
  3. Replies: 4
    Last Post: 12-07-2012, 11:49 AM
  4. Formula for Discount Percentage
    By Ali H in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-18-2012, 04:05 AM
  5. [SOLVED] >> Need help with a simple formula
    By [email protected] in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-11-2006, 06:30 AM

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