Results 1 to 6 of 6

Thread: Solved: Sumproduct short question - count in sumproduct

  1. #1

    Solved: Sumproduct short question - count in sumproduct

    Hi all,
    i have one short question.
    How can i use function COUNT in SUMPRODUCT function?
    is it possible?
    i tried something like this:
    but it doesnt works
    Till now i use counting in sumproduct with column, where was only number 1 and it counted basics this column.
    It seems like this:
    where column Z was only for help with number 1.

    But this is not the right way in each case.

    how can i fix it?
    thx a lot

  2. #2
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    May 2004
    COUNTA produces a single number, not an array. To multiply by this, take it out of the SUMPRODUCT
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.

    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    I dont know why, but this return a very big number (2800 instead 9). Not the same as return if i use my old method with help column. Something can be wrong?
    I use sumpruduct and multiply it with counta (this count names in column).

  4. #4
    here is example (atach.)
    in blue is your formula but with wrong result for me and cell next to (yellow) my old formula with right result.
    How can i achive right result but with count and sumproduct formula? or other way, but without help column?

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Apr 2005
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    oh god!
    so simply...
    yes, this works
    thank you XLD and
    MDM also thank you for your time

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts