+ Reply to Thread
Results 1 to 4 of 4

Count # of appearances

  1. #1
    Registered User
    Join Date
    09-17-2015
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    72

    Count # of appearances

    Hi,

    I have the following spreadsheet where I need to calculate 2 results:

    - On Track
    - Lost Track

    The excel has the following columns:

    Member ID, Created On (Date)

    On Track: needs to calculate the number of consistent times in the SAME day for the member ID. In the example, member ID G1289603X has the same date appears twice, therefore we will count "2" and will place the value at the 'On Track' column.
    Lost Track: need to calculate the number of inconsistent times for the SAME member during the days (Created On column). for example. member ID G1289603X has an appearance at 7/23 but also at 7/21, however, since the days are inconsistent (there is no appearance at the 7/22), we will count "1" and place it at the "Lost Track" column at the 7/23/2016 row.

    There are also, as you can see, other members appear but their appearance is only 1. In this case, we should leave both columns (On Track and Lost Track) as blank as there is no additional appearance for the members as they appear only once per each day.

    Anyone that can help is highly appreciated.

    Attached is the Excel file.


    Member ID Created On On Track Lost Track
    G1289603X 7/21/2016
    G1289603X 7/21/2016 2
    G1289603X 7/23/2016 1
    G1289603X 8/12/2016
    G1289603X 8/12/2016
    G1289603X 8/12/2016 3
    S9117361A 7/21/2016
    HMBR1 7/21/2016
    HMBR303 7/21/2016
    S9177922F 7/21/2016
    S8435089C 7/21/2016
    S8431026C 7/21/2016
    S7863862A 7/21/2016
    S7863862A 7/22/2016 1





    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,145

    Re: Count # of appearances

    two things.

    1. Check over column C. The formula looks overcomplicated. it is!! However some of the dates aren't dates, but date/times. Thsi adds some complication.

    2. can you re-explian what you want at column D. i didn't quite follow you.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    09-17-2015
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Count # of appearances

    That is an impressive resolution Glenn - formula seems a bit complicated!!!

    Thanks!

    Column D: So as you can see in cell D4, the number of "lost track" is "1" because there is a delay in a day for the same member. The two first records appear on 7/21 but then there is a delay of two days to the next row. so eventually I would like to count "1" in this column whenever there is a delay of a day for the same member, or there is no additional row with the same date for the same member.

  4. #4
    Registered User
    Join Date
    09-17-2015
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Count # of appearances

    Glenn,

    The formula work perfectly! Thank you very much.

    Had the chance to work on the D column?

    Thanks.

+ 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. Count 1 ... N appearances of a number
    By dimpousis in forum Excel General
    Replies: 6
    Last Post: 03-20-2016, 02:25 PM
  2. count consecutive appearances
    By onny in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-19-2016, 07:54 AM
  3. [SOLVED] Help please! counting number of appearances
    By Andje in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-14-2012, 09:14 AM
  4. Calculate gap between appearances at an art fair
    By bertiewooster in forum Excel General
    Replies: 0
    Last Post: 07-23-2012, 08:10 PM
  5. Calcuate word appearances
    By m_789 in forum Excel General
    Replies: 1
    Last Post: 04-12-2011, 12:28 PM
  6. Count appearances of text value in column
    By connor8392 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-29-2010, 03:28 AM
  7. Counting ID appearances with parameters
    By dems in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-21-2010, 02:07 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