#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Sum

i have A=Date B= Amount and have 4000 rows i want to total on the base of
date but like that AS of Today 30days result 60days result 120 days result

02/02/2009 100.00
02/03/2009 54.00
02/16/2009 55.00
02/17/2009 103.00
02/18/2009 200.52
02/19/2009 560.65
02/23/2009 123.24


Help me out
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Sum

It's not clear what you mean by "AS of Today 30days result ..."

In general, you use Sumproduct for these kind of calculations. See if the
following is of use:
=sumproduct(--(a1:a4000=today()),--(a1:a4000<=today()+30),(b1:b4000))

Regards,
Fred

"J Walia" wrote in message
...
i have A=Date B= Amount and have 4000 rows i want to total on the base of
date but like that AS of Today 30days result 60days result 120 days
result

02/02/2009 100.00
02/03/2009 54.00
02/16/2009 55.00
02/17/2009 103.00
02/18/2009 200.52
02/19/2009 560.65
02/23/2009 123.24


Help me out
Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sum

With the number of days in cell c1 try the below


=SUMPRODUCT((A1:A4000=TODAY()-C1)*B1:B4000)

OR (if you have future data)
=SUMPRODUCT((A1:A4000=TODAY()-C1)*(A1:A4000<=TODAY())*B1:B4000)

--
Jacob


"J Walia" wrote:

i have A=Date B= Amount and have 4000 rows i want to total on the base of
date but like that AS of Today 30days result 60days result 120 days result

02/02/2009 100.00
02/03/2009 54.00
02/16/2009 55.00
02/17/2009 103.00
02/18/2009 200.52
02/19/2009 560.65
02/23/2009 123.24


Help me out
Thanks

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



All times are GMT +1. The time now is 02:25 PM.

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"