+ Reply to Thread
Results 1 to 3 of 3

COUNTIFS Same array criteria PLEASE HELP

  1. #1
    Registered User
    Join Date
    11-16-2020
    Location
    Wellington, NZ
    MS-Off Ver
    365 for Mac
    Posts
    1

    COUNTIFS Same array criteria PLEASE HELP

    Hi there, I'm having trouble with a COUNTIFS function I'm trying to write. I'm checking the same criteria (an array) against multiple different ranges - is this possible? I can't figure out why else the function might not be working.

    The file attached is a snippet of a much longer file. I'm trying to use functions to calculate the results of a single transferrable vote election. My problem is that the functioning doesn't seem to be counting beyond the second rank. So
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    counts votes which selected the current candidate as their first choice. That works.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    counts votes whose first choice has been eliminated and whose second choice is the current candidate. But the remainder - like
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    which should count votes whose first and second choices have been eliminated but whose third choice was the current candidate - are not counting.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: COUNTIFS Same array criteria PLEASE HELP

    Maybe you are overthinking this?

    I used =COUNTIF(B2:F12,K4)
    and it returned 5
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: COUNTIFS Same array criteria PLEASE HELP

    I think you are right Ford, but if you are halfway through the process and there is more than 1 "valid value" a more complex formula is needed. However I feel the sample file doesn't contain enough information

    If each column is a round of voting, we would need to know who is excluded at each stage and ideally why. Presumably you are keeping going until you have a winner.

+ 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] COUNTIFS formula to count for 2 criteria inside one criteria area
    By signekolind in forum Excel General
    Replies: 4
    Last Post: 08-07-2019, 04:39 AM
  2. [SOLVED] Countifs multiple criteria- criteria if cell is greater than another i adjacent column
    By Sircool1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2018, 11:23 AM
  3. [SOLVED] Excel VBA to store cell row numbers into an array if COUNTIFS criteria's is met
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-09-2017, 01:28 PM
  4. Countifs on an Array Range using multiple criteria in an Array
    By Mysore in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2016, 04:39 PM
  5. [SOLVED] SUMIFS/COUNTIFS array function question (multiple criteria)
    By akamenov88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2015, 07:08 PM
  6. Countifs multiple criteria array
    By lamdl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-20-2014, 09:18 PM
  7. Replies: 2
    Last Post: 11-06-2012, 06:40 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