+ Reply to Thread
Results 1 to 10 of 10

How to count specific days

  1. #1
    Registered User
    Join Date
    01-18-2018
    Location
    Kingston, NY
    MS-Off Ver
    2013
    Posts
    8

    How to count specific days

    Hello!

    I have a log-in sheet for people who come into my office. I need to find a way to count how many people came in on each day of the week, M-F, so that I can find out the most popular day of the week for our service is. Please help!

    Thanks!

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: How to count specific days

    Without sample file... it's very difficult to give you help.

    Upload sanitized data with 25~50 rows of data along with manually constructed desired output.

    To upload a file, in quick reply menu find "Go Advanced" and click. Find "Manage Attachment" link and click on it. It will launch separate tab for attaching documents.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    01-18-2018
    Location
    Kingston, NY
    MS-Off Ver
    2013
    Posts
    8

    Re: How to count specific days

    Thank you for the suggestion! I just uploaded an example of the spreadsheet.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to count specific days

    Quote Originally Posted by bwhi View Post
    I just uploaded an example of the spreadsheet.
    Where? I don't see it.

    To upload an Excel workbook, click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    01-18-2018
    Location
    Kingston, NY
    MS-Off Ver
    2013
    Posts
    8

    Re: How to count specific days

    I apologize, this is my first time on this forum so I'm trying to figure it out. I uploaded my .xls file, however when I try to attach it to my reply, it didn't seem to work. It should be there now!
    Attached Files Attached Files

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: How to count specific days

    Umm, I can't see relationship between your data and result.

    What are you counting? Just how many times each weekday occurs in column A without any other condition?

  7. #7
    Registered User
    Join Date
    01-18-2018
    Location
    Kingston, NY
    MS-Off Ver
    2013
    Posts
    8

    Re: How to count specific days

    Yes that's correct. I have a lot of other things going on with my original spreadsheet, such as how many times people come in from each specific town each month, how many people had which item, etc.

    But what I'm stuck on is how many people came in on each weekday. So in the end I will have a graph for all of 2017 that shows what days of the week are the most popular for our service.

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: How to count specific days

    You can probably use below. However, depending on your data size, it's going to be resource intensive calculation.

    If that becomes an issue... I'd recommend adding helper column in source data (=Text(A2,"dddd")) and using pivot table to summarize.

    In R3:
    =SUM(IF(TEXT($A$2:$A$50,"dddd")=Q3,1,0))
    Confirmed as Array (CTRL + SHIFT + ENTER) copy down.


    Or non array version using sumproduct.
    =SUMPRODUCT((TEXT($A$2:$A$50,"dddd")=Q3)*1)

    With your sample returns. 0, 16, 16, 12, 5 for Mon to Fri respectively.

  9. #9
    Registered User
    Join Date
    01-18-2018
    Location
    Kingston, NY
    MS-Off Ver
    2013
    Posts
    8

    Re: How to count specific days

    Thank you, the second formula you gave me worked perfectly for what I needed

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: How to count specific days

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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 days in specific range based on criteria
    By mgblair in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-14-2016, 12:40 PM
  2. Count # of Occurrences for specific Reason within 90 Days
    By Victor G in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2015, 02:55 AM
  3. [SOLVED] How to substract two dates columns and count for specific days
    By Zuluwaco in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-26-2015, 10:53 AM
  4. Count for rolling 30 days of specific text
    By XTERM1NADOR in forum Excel General
    Replies: 16
    Last Post: 01-28-2015, 12:56 PM
  5. [SOLVED] How to count days from the list in specific interval of time?
    By Kardanas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2012, 05:26 AM
  6. count specific days within date range
    By Sazza in forum Excel General
    Replies: 3
    Last Post: 03-27-2012, 09:04 AM
  7. Need to count records for specific days and times
    By cdholt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2011, 08:39 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