+ Reply to Thread
Results 1 to 4 of 4

Countifs not counting, returns #value

  1. #1
    Registered User
    Join Date
    04-11-2011
    Location
    Texas
    MS-Off Ver
    Office 2007
    Posts
    78

    Countifs not counting, returns #value

    I'm using Countifs thusly:

    Please Login or Register  to view this content.
    Everything works right up until it gets to the Countifs formula, then it returns the #value. Attached is the workbook. On the October page I've taken out the indirects but on the numbers sheet the formula (w/indirect) has gone awry. I've tried confirming with CSE (grasping at straws) but, of course, it didn't help. I have a feeling it's the indirect function but don't know how to correct it.

    Example Maintenance Log.xls
    Last edited by Qualo_Jinn; 12-09-2011 at 04:14 PM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Countifs not counting, returns #value

    All the ranges should be in equal size. The last range INDEX(INDIRECT("'"&B$41&"'!$P$4:$T$300")... it should be $P$4:$T$430.

    Try this version,

    Please Login or Register  to view this content.
    Also, C3 to down & across, you can reduce the formula to,

    =IFERROR(COUNTIF(INDIRECT("'"&TEXT(B3,"mmmm")&"'!G4:G430"),B3),"")

    Then apply a custom cell format to hide the zero values as

    0;;;

    INDIRECT is volatile function. if you have many of them will make the calculation slow.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    04-11-2011
    Location
    Texas
    MS-Off Ver
    Office 2007
    Posts
    78

    Re: Countifs not counting, returns #value

    I appreciate your rapid response. Thank you. That worked well. Unfortunately, Match is resulting in 5 for everybody instead of the proper column number. Could I bother for your assistance one more time?

  4. #4
    Registered User
    Join Date
    04-11-2011
    Location
    Texas
    MS-Off Ver
    Office 2007
    Posts
    78

    Re: Countifs not counting, returns #value

    Nevermind. I finally noticed it. Match doesn't have exact specified. Working great now.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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