+ Reply to Thread
Results 1 to 5 of 5

Count specific text for weekdays and weekends separately.

  1. #1
    Registered User
    Join Date
    09-09-2019
    Location
    Aalborg, Denmark
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    2

    Count specific text for weekdays and weekends separately.

    Hi there,

    Complete noob here. I am looking for some help with creating a formula for counting the amount of cells that are populated with the letter, "o" and dividing it up into a count for weekdays and weekends.

    Please see image attached to this post.

    Excel_CSS_Screenshot.png

    So, I have cells which represent the days of the year. I then have some cells that are populated with the letter "o". I am trying create a formula to work out how I can count them so that the weekends are counted separately from the weekdays for each row. So for example: In the image, the result for the bottom row will be 5 weekdays and 2 for the weekend.

    Any help would be greatly appreciated.

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    07-16-2015
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Count specific text for weekdays and weekends separately.

    See attached and adjust formulae as required
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-09-2019
    Location
    Aalborg, Denmark
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    2

    Re: Count specific text for weekdays and weekends separately.

    Thank you so much, Forestview. That did the trick and I learnt something new.

    Cheers!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,267

    Re: Count specific text for weekdays and weekends separately.

    Quote Originally Posted by forestview View Post
    See attached and adjust formulae as required
    Sorry for off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor
    Join Date
    07-16-2015
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Count specific text for weekdays and weekends separately.

    Hi AliGW

    Aah will correct going forward

    Counting the week days =SUMPRODUCT((A3:N3="o")*($A$2:$N$2<>"s"))
    Counting the Weekend Days =SUMPRODUCT((A3:N3="o")*($A$2:$N$2="s"))

    Adjust formulas according to where you need them to apply.

+ 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] SUMIFS for weekdays/weekends
    By Davzx in forum Excel General
    Replies: 5
    Last Post: 09-27-2015, 11:56 AM
  2. [SOLVED] want to count number of occurances on weekdays/weekends
    By phango13 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-14-2014, 08:07 PM
  3. Turning weekends into weekdays?
    By bobing in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-16-2013, 06:34 AM
  4. Replies: 4
    Last Post: 03-08-2012, 02:57 PM
  5. [SOLVED] WEEKENDS VS. WEEKDAYS
    By TLAngelo in forum Excel General
    Replies: 0
    Last Post: 07-10-2006, 02:04 PM
  6. WEEKENDS VS. WEEKDAYS
    By TLAngelo in forum Excel General
    Replies: 7
    Last Post: 05-12-2006, 12:35 PM
  7. IF statement with Weekends vs. weekdays
    By edwardpestian in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-07-2006, 04:13 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