+ Reply to Thread
Results 1 to 4 of 4

Countifs with multiple named ranges as criteria

  1. #1
    Registered User
    Join Date
    12-18-2023
    Location
    Europe
    MS-Off Ver
    2021
    Posts
    12

    Countifs with multiple named ranges as criteria

    Hi all,

    I've written the following formulae using multiple named ranges (Weekdays and DestinationOtherCountry).
    =SUMPRODUCT(COUNTIFS('Current Month'!$C:$C,Calculations!L$2,'Current Month'!$F:$F,Weekdays,'Current Month'!$G:$G,Calculations!$A$2,'Current Month'!$I:$I,$F$6,'Current Month'!$J:$J,DestinationOtherCountry))
    It works with one without the other, either way round.
    I found online that countifs don't work with more than one named range, which would explain the above.
    Anyone got any ideas?
    I cant share the excel itself. Apologies.

    But a breakdown of the excel and function is as follows:
    The excel records employees work activities. Each row being a new day.
    Column C = Name
    Column F = Day of week
    Column G = Location
    Column I = Activity (workday/nonworkday)
    Column J = Destination location if someone travelled
    And all criteria following the ranges in the function are all according.

    I thought of trying to create a Boolean function for one of the conditions.
    Lets say - for a specific person, for this month, if there is a row with a destination location return true - but im not quite sure how to do that.

    Hope this isnt too long, im new to this forum.

    Thanks

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,110

    Re: Countifs with multiple named ranges as criteria

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-18-2023
    Location
    Europe
    MS-Off Ver
    2021
    Posts
    12

    Re: Countifs with multiple named ranges as criteria

    Thanks for the reply
    That didnt work
    And not clear to me what your trying to do with the transpose

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,110

    Re: Countifs with multiple named ranges as criteria

    In that case can you please post a workbook that shows the problem.

    When using two arrays one needs to be vertical & the other horizontal.

+ 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. SUMIFS, COUNTIFS, & SUMPRODUCT - With multiple cell ranges & criteria
    By Iamcourtdz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-18-2020, 11:19 AM
  2. [SOLVED] Countifs with multiple criteria and ranges within single column?
    By Skiptomylou in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-13-2018, 12:56 PM
  3. [SOLVED] countifs statement with multiple criteria for multiple criteria ranges
    By mcdermott2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2015, 11:48 AM
  4. Replies: 5
    Last Post: 05-04-2014, 10:56 AM
  5. Replies: 4
    Last Post: 03-30-2013, 08:36 AM
  6. Replies: 2
    Last Post: 05-10-2012, 10:38 AM
  7. Replies: 2
    Last Post: 04-23-2012, 08:16 PM

Tags for this Thread

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