+ Reply to Thread
Results 1 to 4 of 4

Counting the number of data points in a survey period. Countif statements?

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Counting the number of data points in a survey period. Countif statements?

    Hi everyone,

    I have a large amount of data to get through (50,000 lines), so I'm looking for a function that will help me solve this problem so I don't have to manually "count" all of my data points.

    I have surveyed dolphins for various periods of time, so my first three columns are Date (DD/MM/YYYY), Start time and End time (HH:MM). I'm looking to count the number of sightings (events) between the start and end times of each survey period. The sightings are in a column with the date and time (DD/MM/YYYY HH:MM), and each time there was an event, this information was recorded. I have over 50,000 events, but I need the number of events for each time period.

    For example:

    Date Start Time End Time Event
    24/04/2012 10:20 10:46 24/04/2012 10:19
    24/04/2012 11:27 12:43 24/04/2012 10:20
    24/04/2012 12:56 13:46 24/04/2012 10:20
    25/04/2012 10:20 10:46 24/04/2012 10:27
    25/04/2012 10:20 10:46 24/04/2012 11:19
    24/04/2012 11:28 12:00 24/04/2012 09:14
    24/04/2012 12:49 13:10 25/04/2012 10:11
    24/04/2012 13:30 14:00 25/04/2012 10:14
    25/04/2012 09:43 10:17 25/04/2012 10:16
    25/04/2012 10:19 10:30 25/04/2012 10:29

    So basically I need to have the number of events per survey period. I've tried to do countif statements that would say something along the lines of, count if date and time of event is in between start/end time of survey period, but nothing I'm trying is working.

    Any help would be appreciated!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Counting the number of data points in a survey period. Countif statements?

    I think you can solve this with a pivot table.

    You get better help if you post an Excel-example of your workbook, without confidential information.

    Make sure the workbook demonstrates your desired results if possible, or just highlight the cells you're trying to fix.

    Use BEFORE/AFTER sheets if that helps make it clearer.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-27-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Counting the number of data points in a survey period. Countif statements?

    Okay I've attached the Excel spreadsheet (let me know if it works, I'm new to the forum!)

    I'm trying to fill in the "Number of Events" column, by counting up the number of events from the "Events" column that fall between the start and end times of the survey periods (Each survey period is given a "Rec No").
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Counting the number of data points in a survey period. Countif statements?

    I posted a (match) cel in J3 (bleu cel).

    The rest i made with text to collumn.

    You get 1 match in the given range.

    The workbook is to big to post.

    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)

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