+ Reply to Thread
Results 1 to 7 of 7

Could someone please help with this CountIF issue

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    Wiltshire
    MS-Off Ver
    Microsoft 365 Apps for Enterprise
    Posts
    60

    Could someone please help with this CountIF issue

    Hi all,

    Please someone save me with this one.

    I have a load of cells with shifts in e.g 0600-1300

    I am trying to get another cell to return a count of purely the start time of the shift. At the moment I have put the following formula in;

    =COUNTIF(C3:C87, "0600-1300")

    This returns the count I want but not all shifts are 0600-1300 and I need to know all people that are in at 0600.

    I fear I know the answer, which is to split the cells, one having 0600 and the other having the finish time, but that is a huge amount of work and I don't have the time, so i'm hoping someone with hugely better knowledge of excel can help.

    Thanks in advance with any help you can give.

  2. #2
    Registered User
    Join Date
    02-14-2013
    Location
    South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Could someone please help with this CountIF issue

    You'll want to slip a wildcard in there.

    Please Login or Register  to view this content.
    The asterisk will accept anything after that point in a text string (the way these times are formatted is considered a text string).

    Edit: You can also do the inverse, if you wanted to see who leaves at 1300.

    Please Login or Register  to view this content.

  3. #3
    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: Could someone please help with this CountIF issue

    Maybe like this

    =COUNTIF(C3:C87, "0600-*")
    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

  4. #4
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Canada Eh
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: Could someone please help with this CountIF issue

    Splitting the cells is not a lot of work, just create two columns and in the first column type
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and in the second type
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Drag both down and then plug in your CountIF.
    Click the * to give Rep to a post you like.

  5. #5
    Registered User
    Join Date
    03-28-2013
    Location
    Wiltshire
    MS-Off Ver
    Microsoft 365 Apps for Enterprise
    Posts
    60

    Re: Could someone please help with this CountIF issue

    Legend! Thank you. Saved me so much work and helps my time. Thanks

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Could someone please help with this CountIF issue

    I need to know all people that are in at 0600.
    As in, are coming in at that time or that are in the building during that time?
    Assuming the first

    =SUMPRODUCT(--(LEFT(C3:C87,4)="0600"))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Registered User
    Join Date
    03-28-2013
    Location
    Wiltshire
    MS-Off Ver
    Microsoft 365 Apps for Enterprise
    Posts
    60

    Re: Could someone please help with this CountIF issue

    Thanks ALL

+ 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] countif issue
    By atom715 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-22-2014, 02:26 AM
  2. Countif Issue
    By coolhit in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-14-2013, 08:52 PM
  3. COUNTIF issue
    By JO505 in forum Excel General
    Replies: 4
    Last Post: 05-29-2011, 09:13 PM
  4. CountIF issue
    By edmdas in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-03-2007, 11:48 AM
  5. [SOLVED] issue with countif in vba
    By Xavier Minet in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2005, 11:05 AM

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