+ Reply to Thread
Results 1 to 2 of 2

COUNTIFs for a multi-column range?

  1. #1
    Registered User
    Join Date
    05-05-2021
    Location
    UK
    MS-Off Ver
    365
    Posts
    4

    COUNTIFs for a multi-column range?

    On the Totals sheet, I'm using the COUNTIFs function to look at the Roster sheet and see where a name (matching that entered in row 8 for that column) appears over a range for a particular shift on weekdays and weekends respectively.
    For example, C13 looks for C8 ("Laura" in this case) in the range D8-D21 and E8-21 on the roster (early shifts) AND where B8-B21 (day of the week) is "Sat" or "Sun."
    The problem is if we want to insert more early shift columns on the roster - columns F and G labelled 'early extra.'

    How do I make a formula that looks at the range from D8-G119 without having that formula become ridiculously long? It is very long already!

    I read that using the SUM function with COUNTIFs is possible but I can't get my head around how to apply it to this example.

    Any help would be massively appreciated.
    Attached Files Attached Files

  2. #2
    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
    30,671

    Re: COUNTIFs for a multi-column range?

    Example ....

    Try

    C13

    =SUM(COUNTIFS(Roster!$D$8:$D$21,C8,Roster!$B$8:$B$21,{"Sat","Sun"}))+SUM(COUNTIFS(Roster!$E$8:$E$21,C8,Roster!$B$8:$B$21,{"Sat","Sun"}))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Multi criteria INDEX/MATCH in multi-column FILTER spill range
    By Coley356 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-08-2021, 04:23 PM
  2. Multi-column dropdown list using multi-column dynamic range (no VBA)
    By ysdai7287 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-04-2018, 03:59 AM
  3. [SOLVED] Countifs one criteria range multi dynamic cells as criteria
    By brake in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 03-10-2018, 08:00 AM
  4. Using SUMPRODUCT in place of COUNTIFS for multi column lookup
    By RoundaboutCJP in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-12-2018, 10:50 AM
  5. =COUNTIFS and Multi-Column Exceptions
    By ajpl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-27-2017, 05:52 PM
  6. Replies: 19
    Last Post: 10-05-2012, 01:03 PM
  7. Replies: 6
    Last Post: 02-21-2009, 08: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