+ Reply to Thread
Results 1 to 2 of 2

Using COUNTIFS with multiple columns

  1. #1
    Registered User
    Join Date
    12-20-2007
    Posts
    17

    Question Using COUNTIFS with multiple columns

    Hi all,

    I am trying to count a number of items where certain conditions apply. The first 4 conditions are single columns looking for a specific value. The last condition is searching 12 columns to find values less than a certain amount.

    Individually, these 2 formulas work:
    =COUNTIFS(WaterNoDup!$D$5:$D$15000,$AC$7,WaterNoDup!$E$5:$E$15000,$AC$8,WaterNoDup!$F$5:$F$15000,$AC$9,WaterNoDup!$K$5:$K$15000,$AC$10)
    and
    =COUNTIFS(WaterNoDup!$R$5:$AC$15000,C9)

    Together like below, they return a #VALUE answer.

    =COUNTIFS(WaterNoDup!$D$5:$D$15000,$AC$7,WaterNoDup!$E$5:$E$15000,$AC$8,WaterNoDup!$F$5:$F$15000,$AC$9,WaterNoDup!$K$5:$K$15000,$AC$10,WaterNoDup!$R$5:$AC$15000,C9)

    What am I doing wrong?

    Thanks!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using COUNTIFS with multiple columns

    I think it is because you are mixing range sizes.

    You might want to consider using SUMPRODUCT:

    Please Login or Register  to view this content.
    but with large ranges and multiple copies of the formula you could run into efficiency problems.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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