+ Reply to Thread
Results 1 to 5 of 5

Getting #Value! error when using Countifs, very confusing...

  1. #1
    Registered User
    Join Date
    05-13-2020
    Location
    USA
    MS-Off Ver
    Office365
    Posts
    2

    Getting #Value! error when using Countifs, very confusing...

    I'm getting an error (#Value!) when using Countifs with multiple criteria. I've tried creating an example file to reproduce the error, but so far all my example files have worked perfectly, so I know I have something peculiar in my data. My problem is I don't know how to check the data to find the error....

    To the best of my ability to describe, here's my situation:

    I have a large multi-column data table in one sheet of my file, with each column being represented by a named range. Column 1 is 'Issue Type', Column 2 is 'Region', Column 3 is 'Month'. My other sheet includes a summary table, reporting on the number of times within a certain month that each 'Issue Type' occurs within a specific 'Region'. The first column of my summary table is a listing of unique entries for column 1 in the data, obtained with the Unique function (Excel in Office365). The second column is intended to be the # of times that each specific 'Issue Type' occurs within the relevant month and 'Region'. I have named ranges defined for both the month and region being tested for.

    Here's my formula:

    =COUNTIFS(Region,Region1,MonthYrOpened,ReportingPeriod,Issue,(Q14)) *Q14 refers back to the cell with the first result from the Unique(List) function.

    That formula returns the #Value! error. The completely confusing part is that if I modify the formula to test ONLY if the 'Issue Type' from the data table matches the result in Q14, I get a numeric result. If I test for all occurrences that match both the 'Region' and 'Month', I get a numeric result. However, if I combine the tests, as represented by the formula above, I get the #Value! error.

    My apologies for the long-winded description, and especially for the lack of a (non-working) example file. At this point, I'll gladly provide any additional information that might help resolve the problem.

    Thanks in advance, I appreciate your time and patience.

    Tom

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

    Re: Getting #Value! error when using Countifs, very confusing...

    Are all you ranges the same size?

  3. #3
    Registered User
    Join Date
    05-13-2020
    Location
    USA
    MS-Off Ver
    Office365
    Posts
    2

    Re: Getting #Value! error when using Countifs, very confusing...

    And just like that, you solved it. This had me stumped for hours, bud !

    THanks, can't begin to say how much I appreciate the help.

    Tom

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

    Re: Getting #Value! error when using Countifs, very confusing...

    You're welcome & thanks for the feedback.

  5. #5
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Re: Getting #Value! error when using Countifs, very confusing...

    Quote Originally Posted by Fluff13 View Post
    Are all you ranges the same size?
    Here I come with the same problem and it's been fixed by you. Your Mojo is definitly not upside down. Thanks.

+ 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. Compile Error - Syntax Error using CountIfs in VBA
    By ByTheLake in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2019, 12:47 PM
  2. Replies: 4
    Last Post: 12-22-2018, 02:09 PM
  3. #value error with COUNTIFS
    By RickMcc in forum Excel General
    Replies: 6
    Last Post: 04-12-2018, 05:47 PM
  4. Confusing Run-time error 1004
    By dcaqu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2017, 11:05 AM
  5. Confusing error 1004 object not defined when using identical code
    By V-Clan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2014, 06:46 PM
  6. [SOLVED] confusing error in vlookup
    By Sheepkin_Coat in forum Excel General
    Replies: 1
    Last Post: 03-09-2013, 10:01 AM
  7. Replies: 0
    Last Post: 12-16-2011, 09:01 AM

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