+ Reply to Thread
Results 1 to 9 of 9

Counting entries based on Text String

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Counting entries based on Text String

    Hi

    I have a data download which contains text I need to strip out certain information (the date) and then count the entries

    e.g. 2017-04-03 10:09:59

    Here I would need this identified as 3rd July

    Can anyone help please?

    In the example the formula would be in the yellow cells
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Counting entries based on Text String

    Can a Mod move this post for me please

  3. #3
    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,023

    Re: Counting entries based on Text String

    An array formula, in D6, copied down..

    =SUM(IF(INT(D2:D6+0)=G2,1,0))

    Do you really have 54 days in April in England??? (D6)
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Counting entries based on Text String

    Some months it feels like that! I spotted it after posting and I couldnt correct it without it changing the formating

  5. #5
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Counting entries based on Text String

    Thanks Glenn - that worked!

  6. #6
    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,023

    Re: Counting entries based on Text String

    November through February feel like that to me...

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Counting entries based on Text String

    Quote Originally Posted by Glenn Kennedy View Post
    An array formula, in D6, copied down..

    =SUM(IF(INT(D2:D6+0)=G2,1,0))

    Do you really have 54 days in April in England??? (D6)
    To be fair Glenn is in Northern Ireland: they tend to do things differently than here on the mainland
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Counting entries based on Text String

    You may also need a formula to get unique dates list.
    Enter in G2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    then enter in H2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C D E F G H
    1 order_id site_id order_code order_date
    2 3 1 118239 4/3/2017 10:09 3-Apr 2
    3 4 1 118243 4/3/2017 12:05 4-Apr 2
    4 5 1 118271 4/4/2017 6:38 5-Apr 1
    5 6 1 118293 4/4/2017 14:10
    6 7 1 118315 4/5/2017 6:38
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  9. #9
    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,023

    Re: Counting entries based on Text String

    Please don't mention the DUP. Like really... please don't mention them.

+ 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. Counting unique text entries
    By jacknz in forum Excel General
    Replies: 3
    Last Post: 02-15-2012, 07:10 AM
  2. Replies: 9
    Last Post: 10-17-2011, 04:33 PM
  3. Replies: 1
    Last Post: 11-13-2010, 06:31 PM
  4. Counting entries based on month
    By mamig in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-21-2009, 10:47 AM
  5. Counting Text Entries from a database
    By glynn_matt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2008, 09:38 PM
  6. Counting text entries
    By tportermd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-01-2007, 08:08 PM
  7. [SOLVED] Counting unique entries based on given condition
    By Hari in forum Excel General
    Replies: 9
    Last Post: 06-06-2006, 03:40 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