+ Reply to Thread
Results 1 to 28 of 28

Conditional formatting for dates in another cell

  1. #1
    Registered User
    Join Date
    01-17-2017
    Location
    LOS ANGELES
    MS-Off Ver
    2016
    Posts
    15

    Conditional formatting for dates in another cell

    Hello,

    I am trying to set a conditional format (cell color) for column N if the date is greater than 7 days from column K. Any suggestions? I am using Excel 2010.

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Conditional formatting for dates in another cell

    Try this formula in CF

    =$N2>$K+7

  3. #3
    Registered User
    Join Date
    01-17-2017
    Location
    LOS ANGELES
    MS-Off Ver
    2016
    Posts
    15

    Re: Conditional formatting for dates in another cell

    Thank you Jose. I received an error message stating there is a problem with the formula.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional formatting for dates in another cell

    don't copy but type by hand in CF
    =$N2>$K2+7
    Last edited by sandy666; 01-17-2017 at 07:43 PM.

  5. #5
    Registered User
    Join Date
    01-17-2017
    Location
    LOS ANGELES
    MS-Off Ver
    2016
    Posts
    15

    Re: Conditional formatting for dates in another cell

    Thank you Sandy. This worked but some of highlights are not valid. For example,I have the date of 11/7/2016 in column K and N but it the formula above highlighted it. It did not highlight all the cells in the N column with the same date as K though. It also missed some cells that are more than 7 days. I went to conditional formatting, manage rule, new rule, use formula to determine which cells to format. Am I doing something wrong? Any suggestions?

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional formatting for dates in another cell

    Last edited by sandy666; 01-18-2017 at 04:11 PM. Reason: links added

  7. #7
    Registered User
    Join Date
    01-17-2017
    Location
    LOS ANGELES
    MS-Off Ver
    2016
    Posts
    15

    Re: Conditional formatting for dates in another cell

    Than you so very much for your help Sandy. It looks like I am doing everything correctly. But it is still not highlighting all the appropriate cells.

  8. #8
    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,047

    Re: Conditional formatting for dates in another cell

    Are your dates real dates, or text looking like dates?
    Test with =isnumber(cell-ref) FALSE indicates text, and we will need to convert them
    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

  9. #9
    Registered User
    Join Date
    01-17-2017
    Location
    LOS ANGELES
    MS-Off Ver
    2016
    Posts
    15

    Re: Conditional formatting for dates in another cell

    Thank you Ford. They are all dates. Excluding a few cells that are blank in the N column.

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

    Re: Conditional formatting for dates in another cell

    can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional formatting for dates in another cell

    It looks like this?
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    01-17-2017
    Location
    LOS ANGELES
    MS-Off Ver
    2016
    Posts
    15

    Re: Conditional formatting for dates in another cell

    Definitely. I had to remove confidential information but I kept the two columns I am working with.

  13. #13
    Registered User
    Join Date
    01-17-2017
    Location
    LOS ANGELES
    MS-Off Ver
    2016
    Posts
    15

    Re: Conditional formatting for dates in another cell

    Sorry. I forgot to attach the example.
    Attached Files Attached Files

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional formatting for dates in another cell

    Hm, what is wrong with dates in your file?
    Last edited by sandy666; 01-18-2017 at 05:27 PM.

  15. #15
    Registered User
    Join Date
    01-17-2017
    Location
    LOS ANGELES
    MS-Off Ver
    2016
    Posts
    15

    Re: Conditional formatting for dates in another cell

    I manually colored the cells to show Ford what I want it to look like. This sheet does not have the conditional formatting.

  16. #16
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional formatting for dates in another cell

    you should attach sample with errors and what you want to achieve. look at my attachment in #11 with CF

    btw. you have ex2010 so why example is xls not xlsx ?

  17. #17
    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,047

    Re: Conditional formatting for dates in another cell

    Based on your sample, this should work...
    =$B2>$A2+7

  18. #18
    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,047

    Re: Conditional formatting for dates in another cell

    Quote Originally Posted by sandy666 View Post
    btw. you have ex2010 so why example is xls not xlsx ?
    Maybe it need to work on <=2003?

  19. #19
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional formatting for dates in another cell

    Look at attachment with your dates without CF and your dates with CF
    If it is not what you want I give up

  20. #20
    Registered User
    Join Date
    01-17-2017
    Location
    LOS ANGELES
    MS-Off Ver
    2016
    Posts
    15

    Re: Conditional formatting for dates in another cell

    I'm sorry. Attached is the file I am working with. The other file was incorrect.
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    01-17-2017
    Location
    LOS ANGELES
    MS-Off Ver
    2016
    Posts
    15

    Re: Conditional formatting for dates in another cell

    I'm sorry. They recently upgraded my excel to 2016.

  22. #22
    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,047

    Re: Conditional formatting for dates in another cell

    In your attached file, you have the wrong references. Your CF says...
    =$B2>$A2+7
    it should say...
    =$B3>$A3+7

  23. #23
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Conditional formatting for dates in another cell

    In your latest file none of the dates are more than 7 days apart, so any CF based on that condition will not trigger - attach a more representative set of data.

    Pete

  24. #24
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional formatting for dates in another cell

    your data of dates start in A3 / B3, your CF start in A2 / B2, Change formula in CF to A3 and B3 and check again

    edit: ups, I am late

  25. #25
    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,047

    Re: Conditional formatting for dates in another cell

    Quote Originally Posted by Pete_UK View Post
    In your latest file none of the dates are more than 7 days apart, so any CF based on that condition will not trigger - attach a more representative set of data.

    Pete
    row 41 and 48 is, Pete
    C3=$B3>$A3+7
    copied down

  26. #26
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Conditional formatting for dates in another cell

    Ah yes - it's difficult scanning manually, especially as the dates are back to front to me.

    Pete

  27. #27
    Registered User
    Join Date
    01-17-2017
    Location
    LOS ANGELES
    MS-Off Ver
    2016
    Posts
    15

    Re: Conditional formatting for dates in another cell

    Thank you everyone so very much! =$B3>$A3+7 worked!!!

  28. #28
    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,047

    Re: Conditional formatting for dates in another cell

    Quote Originally Posted by Pete_UK View Post
    Ah yes - it's difficult scanning manually, especially as the dates are back to front to me.

    Pete
    I feel you. I am a Brit, grew up in South Africa, and now live in USA. Darn mercans do everything farse about ace lol

+ 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: 5
    Last Post: 01-26-2017, 10:15 PM
  2. Replies: 5
    Last Post: 11-05-2015, 04:19 PM
  3. Replies: 8
    Last Post: 05-01-2015, 02:07 PM
  4. Replies: 8
    Last Post: 05-07-2014, 04:57 AM
  5. Replies: 2
    Last Post: 12-18-2012, 11:18 AM
  6. IF Dates and conditional formatting (cell colours)
    By aluniquen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2012, 04:32 AM
  7. How do I highlight a cell using conditional formatting and dates
    By shane561 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-27-2005, 12:10 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