+ Reply to Thread
Results 1 to 4 of 4

Need Formula to turn cell red, or yellow if cell is < 60, 6 mos or 1 yr from due

Hybrid View

  1. #1
    Registered User
    Join Date
    12-13-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Need Formula to turn cell red, or yellow if cell is < 60, 6 mos or 1 yr from due

    Good morning all,

    I have a spreadsheet that tracks CEU's for Instructor's certification. A4; certification date, B4; CEU's, C4; Due date. 60 hrs are needed within 4 years. So basically I need a formuala that will turn B1 yellow 1 year from the due date in C4 IF there is less than 60 in B4. and red 6 mos from due date if B4 has less than 60. THis is the last part of my spreadsheet so hopefully someone can help.

    In addition, does anyone know of a good site that will teach me how to do advanced formulas like this, so hopefully I can help answer someone else's question to pay this help FWD. Thank you.
    Attached Files Attached Files

  2. #2
    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
    53,048

    Re: Need Formula to turn cell red, or yellow if cell is < 60, 6 mos or 1 yr from due

    Hi and welcome to the forum

    Based on the sample you provided only row 6 remains white, all others turn red (if I understand you)

    for the 1st rule, use this...
    =AND($B4<>"",$C4<>"",C4-A4>182,$B4<60) format fill RED
    Then for the 2nd rule, use this...
    =AND($B4<>"",$C4<>"",C4-A4>182,$B4<60) format fill YELLOW
    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

  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
    53,048

    Re: Need Formula to turn cell red, or yellow if cell is < 60, 6 mos or 1 yr from due

    Quote Originally Posted by FDibbins View Post
    for the 1st rule, use this...
    =AND($B4<>"",$C4<>"",C4-A4>182,$B4<60) format fill RED
    Then for the 2nd rule, use this...
    =AND($B4<>"",$C4<>"",C4-A4>182,$B4<60) format fill YELLOW
    Im sorry, I didnt notice that both rules were the same. The 2nd rule should have been...
    =AND($B4<>"",$C4<>"",YEAR($C4)-YEAR($A4)>=1,$B4<60)

    Highlight the range you need to apply the CF to, then apply those 2 rules as "use formula"

  4. #4
    Registered User
    Join Date
    12-13-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need Formula to turn cell red, or yellow if cell is < 60, 6 mos or 1 yr from due

    Good marning FDibbins, and thank you. I tried the rules you used and not sure that's what I'm after Question; What cells did you format in the rule's you provided?

    Also the only column I need to turn red or yellow is column B. So if it is 6 months from the date in column c, turn column B red and if it's 1 year from the date in column C then turn column B yellow if column B has less than 60.

    I think I may have confused you in my last post, so hopefully this makes a little more sence than my previous post did. Thnak you.

+ 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: 4
    Last Post: 04-15-2013, 11:20 AM
  2. Replies: 12
    Last Post: 10-15-2012, 03:57 PM
  3. Number change color depend if left cell turn yellow
    By unley in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-01-2011, 02:38 AM
  4. Replies: 1
    Last Post: 07-30-2010, 03:35 PM
  5. Replies: 1
    Last Post: 10-27-2005, 10:05 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