+ Reply to Thread
Results 1 to 3 of 3

SumProduct Formula

  1. #1
    Registered User
    Join Date
    09-07-2009
    Location
    Lytham, England
    MS-Off Ver
    Excel 2003+07
    Posts
    75

    SumProduct Formula

    I have the following formula which isn't currently working...

    =SUMPRODUCT(COUNTA('Sampled Cases'!$BI$11:$BN$20008))*('Sampled Cases'!$CY$11:$CY$20008<>"OPEN")*('Sampled Cases'!$AO$11:$AO$20008>=sixmthdate1)*('Sampled Cases'!$AO$11:$AO$20008<=sixmthdate2)

    I did try it as an array formula but this doesn't solve the problem of it always returning 0.

    When I remove *('Sampled Cases'!$CY$11:$CY$20008<>"OPEN") it does work OK but obviously I do need this section in. I recognise the problem must be something to do with using the COUNTA accross multiple columns as well as rows...

    I know I could use DSUM or even add a column on my 'Sampled Cases' worksheet that calculates this on each row but just wondered if anyone knew of a tweak I could make to my formula to make it work?

    Forever grateful,
    Paul
    Last edited by pdauction; 06-30-2011 at 08:37 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: SumProduct Formula

    whats the counta bit supposed to be doing?
    i suspect you just want ('Sampled Cases'!$BI$11:$BN$20008)<>"")
    Last edited by martindwilson; 06-30-2011 at 07:49 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    09-07-2009
    Location
    Lytham, England
    MS-Off Ver
    Excel 2003+07
    Posts
    75

    Re: SumProduct Formula

    Superb, worked a treat, not sure how I ended up over-complicating it like that.

    Many thanks Martin, much appreciated.

+ Reply to Thread

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