Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Qaspec
 
Posts: n/a
Default Adding values for prior date intervals

I apologize my cell ranges are actually D150:D269 and E150:E269. I tried this
formula which is the closest thing I can think of but I get a #value error.



SUMPRODUCT(($D$150:$D$269=DATE(YEAR(TODAY()),MONT H(TODAY())-2,DAY(TODAY())))*(DATE(YEAR(TODAY()),MONTH(TODAY() )-1,DAY(TODAY())))=$D$150:$D$269)*$N$150:$N$269)



"Qaspec" wrote:

In cells d7:D36 I have dates. In cells e7:E37 i have corresponding point
values. I can use sumproduct to provide a value for the last month from
today. I'd like to be able to get a formula that would provide me with the
month before the last. Here is what I am using to calculate the last month
from todays date.

=SUMPRODUCT(($D$150:$D$269=DATE(YEAR(TODAY()),MON TH(TODAY())-1,DAY(TODAY())))*(TODAY()=$D$150:$D$269)*$N$150:$ N$269)

I'd like to get the month before this one as well but I don't want to
combine the 2 months.

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
Second serie doesn't use X-as values JackRnl Charts and Charting in Excel 1 January 20th 05 01:04 AM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Adding logical values Veronique Excel Discussion (Misc queries) 1 January 13th 05 07:14 AM
Adding multiple cells, return specific values Jim Excel Worksheet Functions 4 December 8th 04 07:26 AM
time format and adding tiome values. dave m Excel Worksheet Functions 3 November 20th 04 07:55 AM


All times are GMT +1. The time now is 01:58 AM.

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"