+ Reply to Thread
Results 1 to 6 of 6

#Value! error on simple formula

  1. #1
    Registered User
    Join Date
    04-08-2015
    Location
    Salt Lake City
    MS-Off Ver
    2013
    Posts
    2

    #Value! error on simple formula

    I am attempting to do a simple countifs formula, which returns a count of how many cells contain the word "unknown". However, I receive the #Value! error each time I try to enter the formula.

    It goes as follows:

    =COUNTIFS(projects[Project Owner],B1,projects[Stage],A3,projects[#All],"*unknown*")

    Projects is the name of the table which is being referenced by the formula.

    Any help would be greatly appreciated!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: #Value! error on simple formula

    COUNTIFS requires all ranges to be the same size - isn't projects[#All] the full table? That range will be multiple columns and the other ranges are single ones - you can't do that - should the last range be a single column?
    Audere est facere

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: #Value! error on simple formula

    It doesn't like the # in the header #All. Take it out and it'll be fine.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: #Value! error on simple formula

    Please Login or Register  to view this content.

    Regards, TMS

  5. #5
    Registered User
    Join Date
    04-08-2015
    Location
    Salt Lake City
    MS-Off Ver
    2013
    Posts
    2

    Re: #Value! error on simple formula

    Interesting - thank you for the clarification. Is there a way, then, to execute this function without having to do a countifs formula for each column that I wish to search?

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: #Value! error on simple formula

    You still have to make sure that the columns are the same height but, using cell reference notation you can use a formula like this

    =SUMPRODUCT((A1:A10="x")*(B1:B10="y")*ISNUMBER(SEARCH("unknown",C1:J10)))

+ 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] Simple formula using IF and SUM - yields unexpected error
    By Frankie7 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2014, 09:04 PM
  2. [SOLVED] Simple If and/ If or Formula return value error
    By lizsantiago07 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2013, 12:49 PM
  3. simple equation but getting formula error
    By Elainefish in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-22-2013, 05:02 AM
  4. [SOLVED] getting error on simple counting formula
    By awest181 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-27-2012, 06:08 PM
  5. error in simple formula
    By frank142 in forum Excel General
    Replies: 1
    Last Post: 03-26-2009, 01:59 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