Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KJo
 
Posts: n/a
Default Dates/Amounts calcs

I need a formula that calculates the amount ($) in one column based on the
date that coincides with the amount (another column) and also 30 days less
than the spreadsheets' date. How would I begin to write that? Help... and
thanks!
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=SUMPRODUCT(--(TODAY()-A2:A300<31),B2:B300)
where column A holds your dates and column B holds the amount and by
"spreadsheets' date" you men todays date

"KJo" wrote in message
...
I need a formula that calculates the amount ($) in one column based on the
date that coincides with the amount (another column) and also 30 days less
than the spreadsheets' date. How would I begin to write that? Help... and
thanks!



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

=INDEX(A:A,MATCH(today()-30,B:B,0))

--
HTH

Bob Phillips

"KJo" wrote in message
...
I need a formula that calculates the amount ($) in one column based on the
date that coincides with the amount (another column) and also 30 days less
than the spreadsheets' date. How would I begin to write that? Help... and
thanks!



  #4   Report Post  
 
Posts: n/a
Default

Hi
Try something like this:
=SUMPRODUCT((A2:A1000<=G1)*(A2:A1000G1-30)*(B2:B1000))
assuming your date is in G1, your list of dates is A2:A1000 and your list of
values is B2:B1000
Hope this helps.
For more informtion on how SUMPRODUCT works, have a look he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Andy.


"KJo" wrote in message
...
I need a formula that calculates the amount ($) in one column based on the
date that coincides with the amount (another column) and also 30 days less
than the spreadsheets' date. How would I begin to write that? Help... and
thanks!



  #5   Report Post  
KJo
 
Posts: n/a
Default

I think this is exactly what I need as I wouldn't be using a 'today' date.
I'll give this a try. Thank You!

"Andy B" wrote:

Hi
Try something like this:
=SUMPRODUCT((A2:A1000<=G1)*(A2:A1000G1-30)*(B2:B1000))
assuming your date is in G1, your list of dates is A2:A1000 and your list of
values is B2:B1000
Hope this helps.
For more informtion on how SUMPRODUCT works, have a look he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Andy.


"KJo" wrote in message
...
I need a formula that calculates the amount ($) in one column based on the
date that coincides with the amount (another column) and also 30 days less
than the spreadsheets' date. How would I begin to write that? Help... and
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2002 calcs slower than Excel 97 David Excel Discussion (Misc queries) 0 March 24th 05 03:23 PM
Time Calcs Tcs Excel Worksheet Functions 7 November 6th 04 06:02 PM


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