Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gabbon
 
Posts: n/a
Default How do I sum a date specific range of cells?

Hi,
There's got to be a way to do this:
I have several years expenses listed with their dates in Column A, and their
data in Column B.
However, I would like to view the three-monthly average expense for
differing three month ranges.
Also I would like to calculate this average from different days of the month
(eg. if today were the 12th of April, I would like to make the calculation
from december 12th to March 12th.)
Any suggestions how to do this?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default How do I sum a date specific range of cells?

Off to the side of your data range enter the formula

=subtotal(1, entire column of VALUES)

This will give you the average of the filtered values - since they're not
yet filtered it's the average of the whole list.

Now, select any cell in your data range and go to DataFilterAutoFilter.
Click on the down arrow at the top of your Date column and choose Custom. In
the dialog that appears Choose Greater than and enter your starting date, &
on the next line choose Less than and enter your ending date. When you click
on OK, the list will be filtered and the average (SUBTOTAL() function) will
show you what you want.


"Gabbon" wrote:

Hi,
There's got to be a way to do this:
I have several years expenses listed with their dates in Column A, and their
data in Column B.
However, I would like to view the three-monthly average expense for
differing three month ranges.
Also I would like to calculate this average from different days of the month
(eg. if today were the 12th of April, I would like to make the calculation
from december 12th to March 12th.)
Any suggestions how to do this?
Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gabbon
 
Posts: n/a
Default How do I sum a date specific range of cells?

Thanks for the reply.

However, I have a number of average calculations that I wish to perform (eg.
last 3 months, the 3 months beginning before that, last 6 months, last year)

For this reason, using the "filter" option is not ideal (I would have to
re-filter every time I wish to see the averages, and I would have to record
the averages manually).

Is there a way to calculate the average monthly expense for column B
according to specific date restrictions that are placed upon the date column
(column A): eg. the last three months, or the three months preceding this?

Thanks again.


"Duke Carey" wrote:

Off to the side of your data range enter the formula

=subtotal(1, entire column of VALUES)

This will give you the average of the filtered values - since they're not
yet filtered it's the average of the whole list.

Now, select any cell in your data range and go to DataFilterAutoFilter.
Click on the down arrow at the top of your Date column and choose Custom. In
the dialog that appears Choose Greater than and enter your starting date, &
on the next line choose Less than and enter your ending date. When you click
on OK, the list will be filtered and the average (SUBTOTAL() function) will
show you what you want.


"Gabbon" wrote:

Hi,
There's got to be a way to do this:
I have several years expenses listed with their dates in Column A, and their
data in Column B.
However, I would like to view the three-monthly average expense for
differing three month ranges.
Also I would like to calculate this average from different days of the month
(eg. if today were the 12th of April, I would like to make the calculation
from december 12th to March 12th.)
Any suggestions how to do this?
Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gabbon
 
Posts: n/a
Default How do I sum a date specific range of cells?

For two columns (Expense_column and Date_column), I ended up using the
forumla for a range four months prior to the latest date entered
max(date_column):

=(SUMIF(Date_column,"="&EDATE(MAX(Date_column),-4),Expense_column))/4
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
adding specific cells based on a corresponding date bluemoir Excel Worksheet Functions 0 February 9th 06 05:55 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Countif for specific cells rather than a range ???? Renee - California Excel Worksheet Functions 5 May 27th 05 07:09 PM
Count cells based on date range in another column [email protected] New Users to Excel 1 May 5th 05 08:11 PM
extract data from a range of cells in rows or columns when a date. Dartyon Excel Worksheet Functions 0 February 24th 05 10:37 PM


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