+ Reply to Thread
Results 1 to 5 of 5

Help with formula for conditional formatting to highlight if date and time are the same

  1. #1
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Help with formula for conditional formatting to highlight if date and time are the same

    Dear All

    I have a spreadsheet with a list of events, date and time of the events.

    What I need to do is set up conditional formatting so that any even with the same date and time will be highlighted.

    I have included a sample spreadsheet for your reference. In the attached spreadsheet I need to highlights events D and E and events A & C as they have the same date and same starting time. In my actual spreadsheet if have a list of over 10000 events and I was wondering whether conditional formatting with formula would achieve this? or is there a better way f doing this.

    Any help is appreciated it
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Help with formula for conditional formatting to highlight if date and time are the sam

    IT depends what you want

    If you want every duplicate value formatting that is easy its just a countifs function matching all dates and times in the range and If they are greater than 1 its a duplicate.

    the problem comes if you want each set of duplicates shaded the different colours, this would need a vba approach

  3. #3
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help with formula for conditional formatting to highlight if date and time are the sam

    Dear davsth
    No i just need the duplicat cells to be shaded with the same colour. Only thing is I do not know the formula and if you can show me the the sheet I attached I would really appreciate it

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Help with formula for conditional formatting to highlight if date and time are the sam

    Conditional formatting, new rule, use a formula to determine which cells to format
    =COUNTIFS($B$2:$B$7,$B2,$C$2:$C$7,$C2)>1 colour as you wish

  5. #5
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help with formula for conditional formatting to highlight if date and time are the sam

    thahis worked great thank ou very much for your help

+ 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] Conditional Formatting: Highlight specific time frame
    By dlealb in forum Excel General
    Replies: 1
    Last Post: 02-23-2020, 01:30 AM
  2. Replies: 3
    Last Post: 07-05-2019, 11:06 AM
  3. Conditional Formatting Formula - Date & Time for intervals
    By jamesfxd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-08-2015, 12:23 AM
  4. Replies: 3
    Last Post: 08-03-2014, 06:21 PM
  5. [SOLVED] Using Conditional Formatting to Highlight Cells When Date/Time is 12 & 18 Hours Later
    By redogue in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-31-2012, 10:53 AM
  6. Replies: 7
    Last Post: 04-07-2012, 03:36 AM
  7. Replies: 2
    Last Post: 12-27-2011, 04:25 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