Results 1 to 4 of 4

Array formula

Threaded View

beamon Array formula 07-02-2010, 04:29 AM
zbor Re: problem with array formula 07-02-2010, 04:50 AM
zbor Re: problem with array formula 07-02-2010, 04:52 AM
beamon Re: problem with array formula 07-02-2010, 05:17 AM
  1. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: problem with array formula

    Try this:

    =COUNT(IF(L7:L10="a";ROW(L7:L10)))

    Thid doesn't depend of second column. It just calculate number of a in first column.

    Your approach might give you different results depending of data in M column

    Problem with first formula is because it counts zero's in product as numbers.

    Evaluate formula:

    =COUNT((L7:L10="a")*(M7:M10))
    =COUNT(({TRUE;FALSE;TRUE;FALSE}*(M7:M10))
    =COUNT(({TRUE;FALSE;TRUE;FALSE}*{1;2;3;4})
    =COUNT({1;0;3;0})
    =4

    while second formula give this:

    =COUNT(IF(L7:L10="a";M7:M10))
    =COUNT(IF({TRUE;FALSE;TRUE;FALSE};M7:M10))
    =COUNT({1;FALSE;3;FALSE})
    =2
    Last edited by zbor; 07-02-2010 at 05:03 AM.
    Never use Merged Cells in Excel

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