Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CDSchomaker
 
Posts: n/a
Default sum automatically from last 12 months based on current date

I have a database consisting of monthly hours covering the last 10 years.
Occassionally, I need to sum up the hours from the last 12 months. Which
Excel function do I use so that a cell will automatically show the sum of
hours from the last 12 months based on the current date?
  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
and just an alternative to Don' solution which does not need the Analysis
Toolpak Addin:
=SUMPRODUCT(--(A1:A100=DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY())),--(A1:A100<=TODAY()),B1:B100)

Also check:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards
Frank Kabel
Frankfurt, Germany

CDSchomaker wrote:
I have a database consisting of monthly hours covering the last 10
years. Occassionally, I need to sum up the hours from the last 12
months. Which Excel function do I use so that a cell will
automatically show the sum of hours from the last 12 months based on
the current date?



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
Automatically enter date and time but only update once. PM New Users to Excel 3 January 21st 05 07:47 AM
Formula to calucate # of months based on a speificed date entered David Excel Worksheet Functions 4 December 15th 04 06:57 PM
How to change (delivery) days and automatically the receive date in an other cell? Elboo Excel Worksheet Functions 5 November 22nd 04 02:44 PM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM
Show a date based on today DJ Dusty Excel Worksheet Functions 2 November 12th 04 03:20 AM


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