+ Reply to Thread
Results 1 to 6 of 6

sumproduct two criteria across 12 sheets

  1. #1
    Registered User
    Join Date
    04-02-2011
    Location
    Chorley, england
    MS-Off Ver
    Excel 2010
    Posts
    3

    sumproduct two criteria across 12 sheets

    =SUMPRODUCT((JAN!A3:A1003="Winstanley")*(JAN!I3:I1003="i"))+SUMPRODUCT((FEB!A3:A1003="Winstanley")*(FEB!I3:I1003="i"))+SUMPRODUCT((MAR!A3:A1003="Winstanley")*(MAR!I3:I1003="i"))+SUMPRODUCT((APR!A3:A1003="Winstanley")*(APR!I3:I1003="i"))+SUMPRODUCT((MAY!A3:A1003="Winstanley")*(MAY!I3:I1003="i"))+SUMPRODUCT((JUN!A3:A1003="Winstanley")*(JUN!I3:I1003="i"))+SUMPRODUCT((JUL!A3:A1003="Winstanley")*(JUL!I3:I1003="i"))+SUMPRODUCT((AUG!A3:A1003="Winstanley")*(AUG!I3:I1003="i"))+SUMPRODUCT((SEP!A3:A1003="Winstanley")*(SEP!I3:I1003="i"))+SUMPRODUCT((OCT!A3:A1003="Winstanley")*(OCT!I3:I1003="i"))+SUMPRODUCT((NOV!A3:A1003="Winstanley")*(NOV!I3:I1003="i"))+SUMPRODUCT((DEC!A3:A1003="Winstanley")*(DEC!I3:I1003="i"))

    How can I simplify the above?

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: sumproduct two criteria across 12 sheets

    Keep all your data on one worksheet and add a column to show the date it relates to. You will find any analysis that you do far easier.

    Spreading similar data across more than one worksheet is just making things difficult for yourself unless it won't fit.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    04-02-2011
    Location
    Chorley, england
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: sumproduct two criteria across 12 sheets

    Thanks Domski, However each sheet has a large amount of data for each month of the year and this is only a small part of data analysis which is on a thirteenth sheet.

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: sumproduct two criteria across 12 sheets

    More than would fit in 1 million+ rows if combined?

    Dom

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: sumproduct two criteria across 12 sheets

    You could do the SUMPRODUCT()'s (which BTW should be changed to COUNTIFS() if you're using XL 2010 as per your profile) on each monthly sheet in a discrete cell and then do a 3D sum of that cell on those sheets. Like

    =SUM(JAN:DEC!Z1)

    that will sum the 12 Z1 cells from sheet JAN to sheet DEC (that assumes no sheets are between those 2 named sheets other than the other 10 monthly sheets).

  6. #6
    Registered User
    Join Date
    04-02-2011
    Location
    Chorley, england
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: sumproduct two criteria across 12 sheets

    Thanks for suggestion and time given. The sumproduct example give uses a letter and code and ward name and I still wonder if it is possible to have to criteria and sumproduct across multiple sheets. each sheet is identical in layout except for month and variation of data.

+ 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