+ Reply to Thread
Results 1 to 19 of 19

Highlight Date

  1. #1
    Registered User
    Join Date
    06-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Highlight Date

    I have 7K records with duplicate entries. I think I have found the two dates where there are duplicate entries. I need a formula that will count how many times '2016-11-10' for instance, is in each cell and highlight the cell if the date appears more than once in that cell. Any takers?


    2017-04-05 xXnie X Xe x X Xonti: Sent xXvis TrXnsfer XebinXr Invite. -2017-03-03 xXnie X Xe x X Xonti: Sent xXvis TrXnsfer XebinXr Invite. -2017-03-02 xXnie X Xe x X Xonti: Sent xXvis TrXnsfer XebinXr Invite. -2017-02-23 xXnie X Xe x X Xonti: Sent xXvis TrXnsfer XebinXr Invite. -2017-02-23 xXnie X Xe x X Xonti: Sent xXvis TrXnsfer XebinXr Invite. -2017-02-23 xXnie X Xe x X Xonti: Sent xXvis TrXnsfer XebinXr Invite. -2016-11-10 : Sent xXvis TrXnsfer XebinXr Invite 2016-11-10 : Sent xXvis TrXnsfer XebinXr Invite 2016-11-10 : Sent xXvis TrXnsfer XebinXr Invite 2016-11-10 : Sent xXvis TrXnsfer XebinXr Invite 2016-11-10 : Sent xXvis TrXnsfer XebinXr Invite

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

    Re: Highlight Date

    Attach a sample workbook (not a picture). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    06-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: Highlight Date

    Thanks for the directions and sorry if they are posted :-O

    Attached. (hopefully)
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: Highlight Date

    Sandy, does that attachment have what is required? Thanks!

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

    Re: Highlight Date

    Dear friend
    I said "attach example file" but I didn't say "I will help NOW"

    and YES file is attached.

    IMHO, you will need VBA and UDF

  6. #6
    Registered User
    Join Date
    06-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: Highlight Date

    of course, at your leisure. (just wanted to make sure I gave the group what was needed. )

    had to Google those acronyms BTW, so I'm happy to have the help.

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

    Re: Highlight Date

    What if there is more than one date duplicated?

    eg. in B1 you've:
    2017-05-12
    2017-04-11
    2017-04-05
    2017-03-03
    2017-03-02
    2017-02-23
    2017-02-23
    2016-11-10
    2016-11-10
    2016-11-10

    so what should be counted?
    Do you've defined all dates in every cell?

  8. #8
    Registered User
    Join Date
    06-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: Highlight Date

    the count I would need would be if the date is ever recorded twice in one cell. I highlighted one case where the date (any date really) is recorded twice as those are the entries I am looking to purge, while leaving a single entry for each date... does that make sense?

    before:

    2017-05-12
    2017-04-11
    2017-04-05
    2017-03-03
    2017-03-02
    2017-02-23
    2017-02-23
    2016-11-10
    2016-11-10
    2016-11-10

    after purge:

    2017-05-12
    2017-04-11
    2017-04-05
    2017-03-03
    2017-03-02
    2017-02-23
    2016-11-10

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

    Re: Highlight Date

    this is a list of all dates in column B with no duplicates (I removed dups)

    2016-10-21
    2016-11-10
    2016-11-11
    2016-11-15
    2016-11-16
    2016-11-21
    2016-11-28
    2016-11-29
    2016-12-01
    2016-12-06
    2016-12-27
    2017-01-10
    2017-01-30
    2017-01-31
    2017-02-10
    2017-02-23
    2017-02-24
    2017-03-02
    2017-03-03
    2017-03-10
    2017-03-22
    2017-03-23
    2017-04-03
    2017-04-04
    2017-04-05
    2017-04-11
    2017-04-17
    2017-04-18
    2017-04-19
    2017-05-03
    2017-05-07
    2017-05-12

    I can check if dates from above are duplicated in every cell.
    btw. your example has TAB After blank

    ok, better see example
    Attached Files Attached Files
    Last edited by sandy666; 06-01-2017 at 06:44 PM.

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

    Re: Highlight Date

    Check this one:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    = 0 - no duplicates
    > 0 - number of duplicates in a single cell
    I checked only a few cells because I'm too lazy
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    06-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: Highlight Date

    That looks perfect! How do I modify your formula for these parameters?

    2 columns, 7290 rows, and I've named the tab 'Before'

    I bow to my sensei

    http://makeagif.com/i/BR19_8


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

    Re: Highlight Date

    use formula for each column separately

    =SUM(IFERROR(SUMPRODUCT(((LEN(B1)-LEN(SUBSTITUTE(B1,$G$1:$G$32,"")))/LEN($G$1:$G$32))),"")-SUMPRODUCT(--ISNUMBER(SEARCH($G$1:$G$32,$B1))))
    criteria: G1:G32 (you didn't say what size of range it has)
    data: B1
    it doesn't matter how long is your column with data, you need drag formula from B1 to far far away (in this case: B7290)

    second column , say
    data: C1
    criteria the same: G1:G32 (or you can select another criteria)
    formula: change B1 to C1

    or
    single formula for 2 columns:
    B1&C1
    Last edited by sandy666; 06-02-2017 at 12:54 PM.

  13. #13
    Registered User
    Join Date
    06-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: Highlight Date

    I changed the formula, of which I am obviously too ignorant to write LOL, to this:

    =SUM(IFERROR(SUMPRODUCT(((LEN(B1)-LEN(SUBSTITUTE(B1,B1:$B$7290,"")))/LEN($B$1:$B$7290))),"")-SUMPRODUCT(--ISNUMBER(SEARCH($B$1:$B$7290,$B1))))


    and the first cell looks like it is counting correctly, showing '0'. But when I copy it down, I receive the #VALUE! error.

    I'm not sure what you mean about 'size range' please forgive my ignorance!

    The sheet has 2 columns (the first is of no consequence, as it is just an ID field, I should have removed it in my example I can see that now... but I need it once I correct the comments so I can run a mass update, so it can just be omitted from the formula) and 7290 rows, what other 'size range' info should I add?

    Thanks again! I will definitely be able to apply this formula in the future once I get past the learning curve of editing it.

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

    Re: Highlight Date

    =SUM(IFERROR(SUMPRODUCT(((LEN(B1)-LEN(SUBSTITUTE(B1,$G$1:$G$32,"")))/LEN($G$1:$G$32))),""),-SUMPRODUCT(--ISNUMBER(SEARCH($G$1:$G$32,$B1))))
    this is your criteria (all dates included in your data - no duplicated)

    column B is your data not a criteria

    size range = range (I am thinking in different language )
    Last edited by sandy666; 06-02-2017 at 02:09 PM.

  15. #15
    Registered User
    Join Date
    06-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: Highlight Date

    w00t! I totally get it now. Thank you so much!

  16. #16
    Registered User
    Join Date
    06-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: Highlight Date

    Do I need to 'mark this resolved'? How do I do that?

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

    Re: Highlight Date


  18. #18
    Registered User
    Join Date
    06-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: Highlight Date

    I was wrong, now I am going back into the cells and some of them are showing zero (0) duplicates, but there are duplicates in there. This is the formula I am using:

    =SUM(IFERROR(SUMPRODUCT(((LEN(B1)-LEN(SUBSTITUTE(B1,$G$1:$G$32,"")))/LEN($G$1:$G$32))),"")-SUMPRODUCT(--ISNUMBER(SEARCH($G$1:$G$32,$B1))))

    and I created the 'G' reference column with these dates:



    2016-10-21
    2016-11-10
    2016-11-11
    2016-11-15
    2016-11-16
    2016-11-21
    2016-11-28
    2016-11-29
    2016-12-01
    2016-12-06
    2016-12-27
    2017-01-10
    2017-01-30
    2017-01-31
    2017-02-10
    2017-02-23
    2017-02-24
    2017-03-02
    2017-03-03
    2017-03-10
    2017-03-22
    2017-03-23
    2017-04-03
    2017-04-04
    2017-04-05
    2017-04-11
    2017-04-17
    2017-04-18
    2017-04-19
    2017-05-03
    2017-05-07
    2017-05-12



    thanks

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

    Re: Highlight Date

    attach sample file

+ 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 a cell with a date which is coming upto 5 years from a fixed date
    By ItsAllDinx in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-14-2015, 05:33 PM
  2. 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
  3. Replies: 4
    Last Post: 09-18-2014, 01:14 AM
  4. Replies: 4
    Last Post: 05-01-2013, 07:38 PM
  5. Replies: 5
    Last Post: 08-22-2012, 05:06 PM
  6. Replies: 3
    Last Post: 11-18-2011, 09:12 AM
  7. Replies: 6
    Last Post: 01-17-2011, 10:34 AM

Tags for this Thread

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