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: 49
Default How best to use sumproduct instead of conditional sum:

This is the formula I am currently using:

=SUM(IF(Data!$I$2:$I$2000="Recordable",IF(Data!$A$ 2:$A$2500=DATEVALUE("1/1/1995"),IF(Data!$A$2:$A$2500<DATEVALUE("1/1/1996"),Data!$L$2:$L$2000,0),0),0))

Basically I'm trying to find the total of recordable incidents that happened
within a date range, where the individual records are entered on a worksheet
called "Data".

What I'd like to be able to do is build this formula once, and then be able
to drag it across cells to calculate for other years as well. What I did was
make a new worksheet in the workbook called "List Values". Cell A2 has the
value 1/1/1995, A2 has 1/1/1996, etc.

Am I on the right track? Is there a way this could work?

=SUMPRODUCT(--(Data!$A$2:$A$2500=ListValues!A2),--(Data!$A$2:$A$2500<=ListValues!A3),--(Data!$L$2:$L$2000,0)

Help?


 
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
VBA FOR USE OF CONDITIONAL SUMPRODUCT() FARAZ QURESHI Excel Discussion (Misc queries) 0 November 30th 07 12:10 PM
Conditional SUMPRODUCT Dallman Ross Excel Discussion (Misc queries) 2 September 16th 06 01:07 AM
Sumproduct conditional Carl Excel Discussion (Misc queries) 5 August 10th 06 11:10 PM
Sumproduct conditional with dates Carl Excel Discussion (Misc queries) 5 August 10th 06 09:42 PM
Conditional sumproduct? rahirah New Users to Excel 1 January 11th 06 10:46 PM


All times are GMT +1. The time now is 03:11 PM.

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

About Us

"It's about Microsoft Excel"