Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I have a worksheet where column A holds dates todays date would be the
below yesterdays and so on) and coumn B holds a percentage. On a separate page, I have an average field that is currently displaying a fixed average of 90 days from the other sheet. I would like a formula so the number of days can be input and then it would return the average for the last x days. I have tried numerous forulas but it seems that average cannot have a formula result as the arguments. Any help is much appreciated. |
#2
![]() |
|||
|
|||
![]()
try
=average(offset(Sheet1!B1,0,0,X,1)) X is th enumber of days you want to average or can be a cell reference with the number in it. " wrote: I have a worksheet where column A holds dates todays date would be the below yesterdays and so on) and coumn B holds a percentage. On a separate page, I have an average field that is currently displaying a fixed average of 90 days from the other sheet. I would like a formula so the number of days can be input and then it would return the average for the last x days. I have tried numerous forulas but it seems that average cannot have a formula result as the arguments. Any help is much appreciated. |
#3
![]() |
|||
|
|||
![]()
Hi!
Here's one way: Assume the TRUE dates are in sheet1 column A, A1:An AND THERE ARE NO EMPTY ROWS WITHIN THE RANGE! On sheet2 cell A1 holds the variable for the last number of days to average: Sheet2 A1 = 5 (average the LAST 5 days) =AVERAGE(OFFSET(Sheet1!A1,COUNT(Sheet1!A:A)-1,,-1*A1)) Biff wrote in message oups.com... I have a worksheet where column A holds dates todays date would be the below yesterdays and so on) and coumn B holds a percentage. On a separate page, I have an average field that is currently displaying a fixed average of 90 days from the other sheet. I would like a formula so the number of days can be input and then it would return the average for the last x days. I have tried numerous forulas but it seems that average cannot have a formula result as the arguments. Any help is much appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula in an Excel comment | Excel Discussion (Misc queries) | |||
Excel should have a simpler subtraction formula similar to "sum". | Excel Worksheet Functions | |||
How do I get the formula bar in excel 2003 | Excel Discussion (Misc queries) | |||
Need excel formula to display 28.50hrs in HRS & MINS? | Excel Worksheet Functions | |||
Suddenly Excel can't calculate formula!!! | Excel Worksheet Functions |