+ Reply to Thread
Results 1 to 7 of 7

Highlighting if more than 10 items with same date?

  1. #1
    Registered User
    Join Date
    02-13-2013
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    17

    Highlighting if more than 10 items with same date?

    Hello!

    Is there a macro to highlight a cell or cells if there are more than 10 items with the same date in a list?

    I have a calendar that autopopulates and it can only do up to 10 items per date. I want to track and see if I need to add more lines or if an item will not show on the calendar due to too many with the same date already in the list.

    I do not want to have to put many more lines due to all the blank space for slow weeks and making letters too small for printing.

    Any help would be great, thank you!

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Highlighting if more than 10 items with same date?

    If you have a date in column "A" that is repeated 10 or more times then this code will highlight each instance of that date or any other date with the same criteria.
    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Highlighting if more than 10 items with same date?

    Try
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-13-2013
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Highlighting if more than 10 items with same date?

    Thank you! Is there a way to have this run automatically (highlight as soon as the 10th is entered)? Or reverse the highlighting once items have been removed so that it no longer is highlighted?

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Highlighting if more than 10 items with same date?

    Call it from change event
    To a Sheet module
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-13-2013
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Highlighting if more than 10 items with same date?

    Perfect! One last request... is there a way to ignore the blanks? The macro highlights all of the blank cells because there are more than 10...

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Highlighting if more than 10 items with same date?

    Try chane
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

+ 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