+ Reply to Thread
Results 1 to 2 of 2

summing multiple worksheets with multiple criteria

  1. #1
    Registered User
    Join Date
    01-31-2005
    Posts
    2

    Question summing multiple worksheets with multiple criteria

    i am trying to put together a formula that will sum all the values in a cell across 18 worksheets, based on 2 criteria. the current formula is {if(sum(('1'!d13=pipe!a21)*('1'!b13="sold")),'1'!c13,0)} - this formula works for one worksheet. when i try this {if(sum(('1:18'!d13=pipe!a21)*('1:18'!b13="sold")),sum('1:18'!c13,0)} i get an ref error.
    any advice or is there another formula that i should use
    Last edited by spirodem; 01-31-2005 at 08:40 PM.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Assuming that pipe!A21 contains a text value, try the following...

    =SUMPRODUCT(--(T(INDIRECT(ROW(INDIRECT("1:18"))&"!D13"))=pipe!A21),--(T(INDIRECT(ROW(INDIRECT("1:18"))&"!B13"))="sold"),N(INDIRECT(ROW(INDIRECT("1:18"))&"!C13")))

    If pipe!A21 contains a numeric value, try the following instead...

    =SUMPRODUCT(--(N(INDIRECT(ROW(INDIRECT("1:18"))&"!D13"))=pipe!A21),--(T(INDIRECT(ROW(INDIRECT("1:18"))&"!B13"))="sold"),N(INDIRECT(ROW(INDIRECT("1:18"))&"!C13")))

    Hope this helps!

    Quote Originally Posted by spirodem
    i am trying to put together a formula that will sum all the values in a cell across 18 worksheets, based on 2 criteria. the current formula is {if(sum(('1'!d13=pipe!a21)*('1'!b13="sold")),'1'!c13,0)} - this formula works for one worksheet. when i try this {if(sum(('1:18'!d13=pipe!a21)*('1:18'!b13="sold")),sum('1:18'!c13,0)} i get an ref error.
    any advice or is there another formula that i should use

+ 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