Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to calculate average loan period of a 5 year loan | Excel Worksheet Functions | |||
Calculate a date based on period and year | Excel Worksheet Functions | |||
How do I calculate year vs. year sales in a percentage? | Excel Discussion (Misc queries) | |||
how to calculate $1000/year at 5% for 25 years showing each year | Setting up and Configuration of Excel | |||
Count returns for a period - year | Excel Worksheet Functions |