+ Reply to Thread
Results 1 to 2 of 2

COUNTIFS and INDIRECT function return #VALUE error - don't know why?

  1. #1
    Registered User
    Join Date
    07-22-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    30

    COUNTIFS and INDIRECT function return #VALUE error - don't know why?

    Hi all,

    Been racking my brains putting this formula together. I have a Countif, which uses an indirect function R1C1 style, to count across a range (the Indirect function allows this to be dynamic). See below, this is working perfectly:

    =COUNTIF(INDIRECT("'Output Data'!"&"R1"&"C"&(MATCH(A5,'Output Data'!$A$2:$BBC$2,0))&":"&"R10000"&"C"&(MATCH(A5,'Output Data'!$A$2:$BBC$2,0)),FALSE),1)

    However, I have a few further criteria to add (using a Countifs function). Example below - which is giving me a #VALUE error, I am unsure why? The only difference is the red appended part of the formula and the fact that it is a COUNTIFS, rather than a COUNTIF.

    =COUNTIFS(INDIRECT("'sheet 1'!"&"R1"&"C"&(MATCH(A6,'sheet 1'!$A$2:$BBC$2,0))&":"&"R10000"&"C"&(MATCH(A6,'sheet 1'!$A$2:$BBC$2,0)),FALSE),1,'sheet 1'!$C:$C,'sheet 2'!F$2)

    Any help/explanation would be helpful!

    Thanks!

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: COUNTIFS and INDIRECT function return #VALUE error - don't know why?

    Without the sheet itself the only thing raising my suspucion is that the range are not equal. They do not span the same number of elements.
    Did you try evaluating the formula (see Formulas menu)?
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

+ 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. COUNTIFS and INDIRECT Function
    By Jeff9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-25-2014, 03:22 PM
  2. [SOLVED] Countifs,Indirect Function and Vlookup combined
    By Yari1986 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 11:19 AM
  3. Using Indirect function to return a named range.
    By adrianodl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2012, 09:30 AM
  4. error trying to use vba countifs function
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2011, 07:47 PM
  5. [SOLVED] INDIRECT function error
    By Anthony Slater in forum Excel General
    Replies: 3
    Last Post: 02-21-2005, 03:06 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