+ Reply to Thread
Results 1 to 8 of 8

Count partial match based on single records

  1. #1
    Registered User
    Join Date
    03-16-2010
    Location
    Chesterfield, England
    MS-Off Ver
    Excel 2016
    Posts
    19

    Count partial match based on single records

    Hi all.

    I'm hoping this one is straightforward.....

    After trying nested COUNTIFS, IF(ISNUMBER(SEARCH and SUMPRODUCT, I'm still not getting the results I quite want.

    I have a spreadsheet of raw data containing a row per student and a field that contains multiple timestamps e.g. 2018-09-07 01:00:00,2018-09-08 01:00:00,2018-09-21 00:00:00 - annoying, but unfortunately this is the only format available.

    I then have another sheet that will count the number of occurances a date appears in the timestamp, by each student:

    working.JPG

    But I am struggling with the formula to do the count.

    I have tried the following two formulas, but neither work exactly how I need:
    =IF(Download!$A:$A=$A4,,IF(ISNUMBER(SEARCH(D$1,Download!$AF4)),"1", ""))
    =SUMPRODUCT((Download!$A:$A=Working!$A18)*(--ISNUMBER(SEARCH(D$1,Download!$AF18))))

    Is there a simpler/more elegant way of working this out?

    Many thanks in advance.

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Count partial match based on single records

    Attach a sample workbook (not a picture or pasted copy). 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
    10-30-2018
    Location
    London
    MS-Off Ver
    excel 2010
    Posts
    53

    Re: Count partial match based on single records

    Hi there
    if a date appears twice or more for a particular student, does the cell for that particular students timestamp change to 2 and so on?

  4. #4
    Registered User
    Join Date
    03-16-2010
    Location
    Chesterfield, England
    MS-Off Ver
    Excel 2016
    Posts
    19

    Re: Count partial match based on single records

    Hi José. Thanks for the advice, I've added attached a workbook. Apologies for the image.

    Brian - Although it is highly unlikely that would happen, no I wouldn't want the count to increase to 2. For it to only show a "1" if one or more occurrences appeared.

    Thanks.

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Count partial match based on single records

    Try this in AFTER!D2 and copy forward

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

  6. #6
    Registered User
    Join Date
    10-30-2018
    Location
    London
    MS-Off Ver
    excel 2010
    Posts
    53

    Re: Count partial match based on single records

    v nice jose.
    v nice.

  7. #7
    Registered User
    Join Date
    03-16-2010
    Location
    Chesterfield, England
    MS-Off Ver
    Excel 2016
    Posts
    19

    Re: Count partial match based on single records

    Yes Jose, that works! Thank you so much.

    Out of interest, how does it know to look at the data for that particular student? Is it something to do with BEFORE?

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Count partial match based on single records

    Quote Originally Posted by sted999 View Post
    ...
    Out of interest, how does it know to look at the data for that particular student? Is it something to do with BEFORE?
    Yes. I assume that the same student is in the same row in both sheets.

    I'm happy to have helped.

    Do not forget to mark the thread as SOLVED.

+ 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] MATCH / INDEX partial text in a single column
    By millerjj22 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-26-2017, 09:57 AM
  2. count ifs with partial match
    By Glüscht in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2016, 04:19 AM
  3. Count single records when duplicate records exist
    By omeng414 in forum Excel General
    Replies: 4
    Last Post: 11-27-2014, 03:42 PM
  4. Consolidate records based on a single record
    By LarryLegend in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-19-2013, 10:16 AM
  5. Replies: 0
    Last Post: 09-21-2013, 09:03 PM
  6. Match partial cells in a single EXCEL column?
    By kpratico in forum Excel General
    Replies: 7
    Last Post: 06-05-2012, 03:21 PM
  7. How do I combine records in a spreadsheet to a single record with a count?
    By stevenica in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2011, 10:14 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