+ Reply to Thread
Results 1 to 3 of 3

Counta array is producing number that is wrong (not sure why)

  1. #1
    Registered User
    Join Date
    10-14-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    46

    Counta array is producing number that is wrong (not sure why)

    Greetings (and my apologies in advance if I don't describe this well),

    I have a large dataset with multiple sheets. The SUMMARY sheet pulls from a table on the WORKING sheet. I need to summary counts from a column comprised of blanks and numbers here's the formula:

    =COUNTA(IF(Working!$A:$A=Summary!$A2,Working!L:L))

    Summary counts are based on referenced cells from SUMMARY column A [categorical data] matching WORKING column A, and blanks and numerical cells in WORKING column L.

    When I perform the array I receive: 1048576 (this is the count of the entire row list, even though my data stops at row 2042)

    However when I manually count (using filters) the column of data for the reference category it should be: 2

    So my question is: How can I get a valid count without doing manually manipulation? Thanks!

    PS I cannot upload this dataset due to sensitive information.

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Counta array is producing number that is wrong (not sure why)

    Are you trying to count how many Summary A2's are in Working A:A or Working L;L, or both?

    Try:

    =COUNTIF(Working!$A:$A,Summary!$A2)
    Or

    =COUNTIF(Working!L:L,Summary!$A2)



    bot Both

    SUM(COUNTIF(Working!L:L,Summary!$A2),COUNTIF(Working!$A:$A,Summary!$A2)
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Registered User
    Join Date
    10-14-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    46

    Re: Counta array is producing number that is wrong (not sure why)

    Let's say Summary A2 = Boat, Working column A contains all categories for with Boat is one. I want only rows with Boat from Working column A and then the count of data in Working column L that corresponds to that row.

+ 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]Formula producing wrong result
    By tobu56 in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 10-26-2013, 08:59 PM
  2. vlookup producing wrong results
    By moley165 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-05-2013, 08:21 AM
  3. [SOLVED] Index and Match combination producing the wrong result
    By Authentik8 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-10-2012, 11:01 AM
  4. Replies: 0
    Last Post: 09-28-2011, 02:52 AM
  5. Compile-time error- Wrong Number of Arguments when using isEmpty() on array elements
    By drinkmorecrabjuice in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-22-2011, 05:36 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