+ Reply to Thread
Results 1 to 10 of 10

Highlight cells based on date

  1. #1
    Registered User
    Join Date
    07-17-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    42

    Highlight cells based on date

    So what I have is a softball league schedule with multiple games at multiple venues for each date. What I want to do is do an alternate row highlight, only at each change in dates. Think: =MOD(ROW(),2)=0, but instead of simply every other row, highlight each row for the date 5/26, then no highlight for each row dated 5/27, then highlight each row dated 5/28. I've looked all over, and the conditional formatting formulas all return the same error about no intersections or arrays allowed. Any help would be appreciated. Mac Excel 2011.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-07-2014
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    313

    Re: Highlight cells based on date

    Hi,

    Please find the attached sheet, I have prepare it as I understand. Please check and let me know if you wants any changes.
    Attached Files Attached Files
    Thanks
    Nisha Dhawan


    If you like my answer please click on * Add Reputation
    "If you can dream it, You can do it "

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Highlight cells based on date

    I think a macro would be more efficient to deal with this kind of scenario.
    Please find the attached workbook and click on the button to highlight the rows as per the dates. The code is present on Module1.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    07-17-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    42

    Re: Highlight cells based on date

    Thanks, but it's not working for me? When I click the button if gives me a 'runtime error 1004 no cells were found' error, and all of the rows collapse.

  5. #5
    Registered User
    Join Date
    07-17-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    42

    Re: Highlight cells based on date

    OK, it works in 2013 on the PC, but not on Mac 2011.

    Can I change the colors in the macro? I tried, but it just made them all one color when I clicked the button again.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Highlight cells based on date

    Change the RGB(?,?,?) in the code as per your requirement.

  7. #7
    Registered User
    Join Date
    07-17-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    42

    Re: Highlight cells based on date

    Thanks, I see what I did wrong before - I didn't see the 1st occurrence of the RGB(). Thanks a ton, rep added!

  8. #8
    Registered User
    Join Date
    07-17-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    42

    Re: Highlight cells based on date

    Quote Originally Posted by Nisha Dhawan View Post
    Hi,

    Please find the attached sheet, I have prepare it as I understand. Please check and let me know if you wants any changes.
    I see what you tried there. Didn't quite work, but thanks! Rep added!

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Highlight cells based on date

    Glad to help. Thanks for the feedback as well.

  10. #10
    Valued Forum Contributor
    Join Date
    05-07-2014
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    313

    Re: Highlight cells based on date

    Thanks for adding rep but sad it didn't work and meet your requirement...
    Last edited by Nisha Dhawan; 05-01-2015 at 01:07 AM.

+ 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. Highlight Rows Based on Date Range Using Static Date and Current Date
    By SaraStravers in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-23-2015, 07:38 PM
  2. [SOLVED] highlight a series of cells based on the number of days in a date range
    By b2lynch in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-09-2014, 10:48 PM
  3. [SOLVED] Macro to highlight date cells based on criteria linked to "today"'s date
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-08-2014, 09:18 AM
  4. [SOLVED] Macro to highlight date cells based on criteria linked to "today"'s date
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-04-2013, 10:59 AM
  5. Compare and highlight cells based on date
    By whatsmyname in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-15-2010, 02:20 PM

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