+ Reply to Thread
Results 1 to 4 of 4

Count Value of Cells that meet a certain condition

  1. #1
    Registered User
    Join Date
    11-29-2017
    Location
    newport
    MS-Off Ver
    MS Office 365
    Posts
    21

    Count Value of Cells that meet a certain condition

    Hi all,

    I have a spreadsheet whereby I track the contracted hours of staff as well as whether that person will be in the office in any given week or not. Team members changes periodically as not two teams are the same size.

    Im looking to see if there is a way that I can calculate the total combined hours of any team (despite any further changes) as well as checking how that number differs over the week.

    I have attached a spreadsheet here and whislt I have not yet had a go any any formulas on it, I have added notes to the table (see the table with borders) with explanations of what I'd like. I appreciate that this explanation may not be clear but I really do appreciate any help

    Thank you!
    Attached Files Attached Files

  2. #2
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,791

    Re: Count Value of Cells that meet a certain condition

    In J4 copied down:

    =SUMIF($A$4:$A$14,$I4,$C$4:$C$14)

    In K4 copied across and down:

    =SUMPRODUCT(($A$4:$A$14=$I4)*($D$2:$G$2=K$2),$D$4:$G$14)
    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.

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,657

    Re: Count Value of Cells that meet a certain condition

    Alternative for K4 (and copy down and right):
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    PS. I wonder why you wrote 3 in J5. If it was rounding up, then of course you can do it also in Excel. Tri in J4 (and copy down):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and the same trick for K4 and right/down formula
    Best Regards,

    Kaper

  4. #4
    Registered User
    Join Date
    07-02-2013
    Location
    Cheshire
    MS-Off Ver
    Office Professional 2007
    Posts
    79

    Re: Count Value of Cells that meet a certain condition

    Hi there. There may be more comprehensive answers, but if your workbook is laid out as you show, then put this formula in J4 and drag down, then across.
    =SUMIF($A:$A,$I4,C:C)

+ 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. Formula Required to Count Rows only if condition is meet or else dont count
    By Shahbazk in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-22-2017, 08:39 AM
  2. [SOLVED] Count if the sum of columns meet a condition
    By my_sunshine in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 03-09-2015, 12:33 PM
  3. A formula to count subtotals if they meet a qualifying condition
    By JC_LA_1979 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2015, 01:03 PM
  4. Count unique values within a range that meet a specific condition
    By CSS in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-24-2013, 02:00 PM
  5. [SOLVED] count number of cells which meet a particular condition for an individual
    By rohit43 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2013, 11:20 AM
  6. Count text strings that meet a condition
    By dcgrove in forum Excel General
    Replies: 4
    Last Post: 09-14-2010, 03:38 PM
  7. Replies: 5
    Last Post: 08-05-2009, 02:43 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