+ Reply to Thread
Results 1 to 4 of 4

Macro to check double entries within 24 hours

  1. #1
    Registered User
    Join Date
    09-04-2019
    Location
    Harstad, Norway
    MS-Off Ver
    OFFICE365 MAC
    Posts
    6

    Question Macro to check double entries within 24 hours

    Hi guys!

    Is there any way to double check if one entry also is listed in another section of my report.
    This report is normally between 3000-5000 lines, so its a lot of data!

    I need to have the result in the column "O" - behind each listing. If the same ship name is listed in the section called "Sømna kommune - Aktivitet I kommunens sjøareal" (starting at line 24 in this report), then it will give a result "1".

    So for example on this report, if the entry B6 "Martin H" also is listed in the section "Sømna kommune - Aktivitet kommunens sjøareal", as it is in line 584, then it will give the result "1" in column "O6". But also one more criteria for setting the result to "1", is that the listing in "Sømna kommune - Aktivitet kommunens sjøareal" is within 24 hours from the arrival time (G6).

    All listings in the section "Sømna kommune - Aktivitet i kommunens sjøareal" should not have the result in column O, since this section is only the reference data.


    My english is not the best, so I just hope someone will understand this.. :D


    Attached example.

    report.png
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Macro to check double entries within 24 hours

    Column G is filled with text as opposed to actual date and time values.
    Column P converts the text in column G to date and time using: =SUM(DATE(RIGHT(LEFT(G5,10),4),RIGHT(LEFT(G5,5),2),LEFT(G5,2)),TIME(RIGHT(LEFT(G5,13),2),RIGHT(G5,2),0))
    Column O is then populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    09-04-2019
    Location
    Harstad, Norway
    MS-Off Ver
    OFFICE365 MAC
    Posts
    6

    Re: Macro to check double entries within 24 hours

    Quote Originally Posted by JeteMc View Post
    Column G is filled with text as opposed to actual date and time values.
    Column P converts the text in column G to date and time using: =SUM(DATE(RIGHT(LEFT(G5,10),4),RIGHT(LEFT(G5,5),2),LEFT(G5,2)),TIME(RIGHT(LEFT(G5,13),2),RIGHT(G5,2),0))
    Column O is then populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Thank you so much!!!!

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Macro to check double entries within 24 hours

    You're Welcome. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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] Check for double entries in a row
    By Pierrot Robert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-07-2005, 12:05 AM
  2. [SOLVED] Check for double entries in a row
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 11:05 PM
  3. Check for double entries in a row
    By Pierrot Robert in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 09:05 PM
  4. Check for double entries in a row
    By Pierrot Robert in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  5. Check for double entries in a row
    By Pierrot Robert in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. [SOLVED] Check for double entries in a row
    By Pierrot Robert in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] Check for double entries in a row
    By Pierrot Robert in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. Check for double entries in a row
    By Pierrot Robert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2005, 02:05 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