Results 1 to 18 of 18

SUM array works, COUNT array does not?

Threaded View

  1. #1
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    SUM array works, COUNT array does not?

    In an array like this...
    A
    B
    C
    2
    1
    2
    4
    3
    2
    4
    8
    4
    3
    6
    12
    5
    4
    8
    16
    6
    5
    10
    20


    I am trying to sum and count numbers in every 2nd row.

    I am using these ARRAY's...
    =SUM(IF(MOD(A1:A6,2)=1,A1:C6,0))
    works fine, gives 63

    and then...
    =COUNT(IF(MOD(A1:A6,2)=1,A1:C6,0))
    doesnt work, gives 18

    What gives, what am I missing?

    Edit: It seems that it is doubling the count...6 rows using every 2nd row = 3 rows with 3 values in each = 9 numbers, not 18
    Last edited by FDibbins; 10-10-2014 at 08:41 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Array Formula only works if entered in more than one cell
    By Speshul in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2014, 02:18 PM
  2. [SOLVED] Quick Array question - Copy array to another array then resize?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-02-2013, 01:17 AM
  3. [SOLVED] Create 1-col array identifying occurrence count in a 1-col array
    By empsall in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2013, 12:50 PM
  4. [SOLVED] Count multiple conditions array only works with 1 value
    By bob33 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-19-2013, 12:57 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