LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Nest 3 SUMPRODUCT formulas - Possible?

Hi!

I have a book in Excel 2003 that serves as simple timetable and payroll at
the same time, but assignments are scheduled weekly from Mon €“ Sun, which is
also the way the employees are paid. That part works perfectly until I have
to do the tax analysis, since its breakdown goes by month and year.

I have 12 sheets, each for a month in a year and each sheet is made out of 5
weeks. I created them like this because the last days of a month and the
beginning of the next can fall on the same week - either on the 5th week of
that month or on the 1st of the next. The five weeks also gives the users
enough flexibility to organize their weeks as they please.

The amount paid each month is figured out from columns C2:C13 (Payments) and
D2:D13 (Extras) by their dates in column B2:B13 (this are just a few of the
cells in each range, but their similar) with the following formula:
=SUMAPRODUCTO(--(B$2:B$13=A19);--(B$2:B$13<=A20);(C$2:C$13+D$2:D$13))

The CATCH is that the prior and/or following sheet might also hold dates
from this month. So assuming we're looking at sheet4, the other two are
sheet3 and sheet5. My Excel is in Spanish so SUMAPRODUCTO is SUMPRODUCT and
Sheet is Hoja.

SUMAPRODUCTO(--(Hoja3!B2:B13=A19);--(Hoja3!B2:B13<=A20);(Hoja3!C$2:C$13+Hoja3!D$2:D$13 ))

SUMAPRODUCTO(--(Hoja5!B$2:B1$3=A19);--(Hoja5!B$2:B$13<=A$20);(Hoja5!C$2:C$13+Hoja5!D$2:D $13))

A19 and A20 are equivalent to the first and last date of the month and I
used them as criteria for the date search. Hoja3 is the prior month and Hoja5
is the following

I dont want to have 48 formulas to contend with, but only 12.
Is there any way to nest 3 3D SUMPRODUCT formulas in one that sums their
product? B21 would hold this formula and its product. Something like
SP(SP()+SP()+SP()) or maybe SUM(SP();SP();SP()) Any ideas?

I remember seeing this formula somewhere and thats why I ask:
=SUMPRODUCT((B1:B10="Europe")+(C1:C10="Y"))-SUMPRODUCT(--(B1:B10="Europe"),--(C1:C10="Y"))

I would really appreciate any help.
Thanks

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what can I do if I need to nest more than 7 formulas? Maggie Excel Worksheet Functions 8 May 8th 07 08:30 PM
multiple variables in sumproduct or if/then formulas Ang Excel Worksheet Functions 4 April 11th 07 05:28 PM
SUMPRODUCT and other formulas combined... cdavidson Excel Discussion (Misc queries) 3 February 9th 07 10:04 PM
Problems with Sumproduct formulas Zemmm Excel Worksheet Functions 1 December 12th 05 11:09 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 12:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"