Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Calculate Average for same period last year

I need to calculate the average rate both Year To Date and for the same
period last year. I have two rows of data.

Row 1 shows Current Year average rates per month (all zeros after previous
month; ie April - December are currently zero)
Row 2 shows Last Year average rates per month (all months have positive
values).

I've used the formula =SUM(C35:N35)/(COUNTIF(C35:N35,"<0")) to get the
average rate for the Current Year but, I also want to be able to
automatically calculate the average rate for the same period last year (ie
Jan - March only in this example).
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculate Average for same period last year

Try this

=SUM(IF(C35:N35<0,C36:N36,0),0)/(COUNTIF(C35:N35,"<0"))

It's an array so enter with CTRL+Shift+Enter. I have assumed last yesr is
one row down from this year.

Mike

"irish_hp" wrote:

I need to calculate the average rate both Year To Date and for the same
period last year. I have two rows of data.

Row 1 shows Current Year average rates per month (all zeros after previous
month; ie April - December are currently zero)
Row 2 shows Last Year average rates per month (all months have positive
values).

I've used the formula =SUM(C35:N35)/(COUNTIF(C35:N35,"<0")) to get the
average rate for the Current Year but, I also want to be able to
automatically calculate the average rate for the same period last year (ie
Jan - March only in this example).

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Calculate Average for same period last year

Thanks Mike H, that works perfectly.

"Mike H" wrote:

Try this

=SUM(IF(C35:N35<0,C36:N36,0),0)/(COUNTIF(C35:N35,"<0"))

It's an array so enter with CTRL+Shift+Enter. I have assumed last yesr is
one row down from this year.

Mike

"irish_hp" wrote:

I need to calculate the average rate both Year To Date and for the same
period last year. I have two rows of data.

Row 1 shows Current Year average rates per month (all zeros after previous
month; ie April - December are currently zero)
Row 2 shows Last Year average rates per month (all months have positive
values).

I've used the formula =SUM(C35:N35)/(COUNTIF(C35:N35,"<0")) to get the
average rate for the Current Year but, I also want to be able to
automatically calculate the average rate for the same period last year (ie
Jan - March only in this example).

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculate Average for same period last year

Your welcome and thank you for the feedback

"irish_hp" wrote:

Thanks Mike H, that works perfectly.

"Mike H" wrote:

Try this

=SUM(IF(C35:N35<0,C36:N36,0),0)/(COUNTIF(C35:N35,"<0"))

It's an array so enter with CTRL+Shift+Enter. I have assumed last yesr is
one row down from this year.

Mike

"irish_hp" wrote:

I need to calculate the average rate both Year To Date and for the same
period last year. I have two rows of data.

Row 1 shows Current Year average rates per month (all zeros after previous
month; ie April - December are currently zero)
Row 2 shows Last Year average rates per month (all months have positive
values).

I've used the formula =SUM(C35:N35)/(COUNTIF(C35:N35,"<0")) to get the
average rate for the Current Year but, I also want to be able to
automatically calculate the average rate for the same period last year (ie
Jan - March only in this example).

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
how to calculate average loan period of a 5 year loan Jayant Excel Worksheet Functions 2 March 25th 08 11:47 PM
Calculate a date based on period and year Sam Excel Worksheet Functions 5 August 27th 07 07:11 AM
How do I calculate year vs. year sales in a percentage? johngalt Excel Discussion (Misc queries) 2 January 10th 07 06:23 PM
how to calculate $1000/year at 5% for 25 years showing each year HELP! Setting up and Configuration of Excel 0 July 25th 06 12:58 AM
Count returns for a period - year Saintsman Excel Worksheet Functions 1 August 3rd 05 04:49 PM


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