Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default sumproduct including previous years

=sumproduct(d18:d1000,--(year(b18:b1000)=year(now())))
I need a formula to add all the values in d18:d1000. All the previous years
including current year.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default sumproduct including previous years

Unless you have future dates in Column D along with non-zero values in
Column B, wouldn't you just want this?

=SUM(D18:D1000)

If you do actually have future dates that you have to filter out, try
this...

=SUMPRODUCT(D18:D1000,--(Year(B18:B1000)<=YEAR(NOW())))

--
Rick (MVP - Excel)


"tleehh" wrote in message
...
=sumproduct(d18:d1000,--(year(b18:b1000)=year(now())))
I need a formula to add all the values in d18:d1000. All the previous
years
including current year.


Reply
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
sumproduct including empty cells Rene Excel Discussion (Misc queries) 3 January 17th 09 06:18 PM
Calculating to add years - including leap year MareskiCP Excel Worksheet Functions 4 July 19th 07 12:50 AM
SUMPRODUCT - Count Previous Month HearSay Excel Worksheet Functions 3 September 29th 06 04:42 PM
Overlay 4 years of data as a line on 4 years of columns for several x category labels eMTee Charts and Charting in Excel 1 December 5th 05 12:32 PM
Changing dates entered in 2005 to previous years lucy Excel Worksheet Functions 8 August 27th 05 03:17 AM


All times are GMT +1. The time now is 08:27 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"