+ Reply to Thread
Results 1 to 3 of 3

Condition sum

  1. #1
    Registered User
    Join Date
    09-23-2005
    Posts
    7

    Condition sum

    Hi
    My workbook has in access of 100 sheets, cells b1 contains text in every worksheet and c2 a numerical value (sometimes 0 or blank). I wish to sum c2 for all identical text in b2. I have tried sumif but understand this does not work over different sheets.
    For info there are only 5 variants of text in b2
    Excel version 97
    I feel this should be simple but have fail miserably help!

  2. #2
    Bob Phillips
    Guest

    Re: Condition sum

    Dave,

    Here is how to do it.

    Load the sheet names into an array, C1:C100

    =SUMPRODUCT(N(INDIRECT("'"&C1:C100&"'!c2"))*(T(INDIRECT("'"&C1:C100&"'!b2"))
    <="text"))

    --
    HTH

    Bob Phillips

    "daveks" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    > My workbook has in access of 100 sheets, cells b1 contains text in
    > every worksheet and c2 a numerical value (sometimes 0 or blank). I wish
    > to sum c2 for all identical text in b2. I have tried sumif but
    > understand this does not work over different sheets.
    > For info there are only 5 variants of text in b2
    > Excel version 97
    > I feel this should be simple but have fail miserably help!
    >
    >
    > --
    > daveks
    > ------------------------------------------------------------------------
    > daveks's Profile:

    http://www.excelforum.com/member.php...o&userid=27498
    > View this thread: http://www.excelforum.com/showthread...hreadid=470124
    >




  3. #3
    Registered User
    Join Date
    09-23-2005
    Posts
    7
    Bob

    A big thank you worked a treat. Have to put hand up and admit I dont understand it yet but feel better because it wasnt as simple as I assumed.
    Once again thank you.
    Cheers.

    Dave

+ 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