![]() |
How to use Indirect functions?
Does anyone have any suggestions on how to use Indirect function?
For Example, there is a list of numbers under column A, a given number 20 in cell B1 and a formula sum(A81:A100)/20 in cell C1. If I change the number 20 into 30 in cell B1, then the formula will become sum(A71:A100)/30. If I change the number 20 into 40 in cell B1, then the formula will become sum(A61:A100)/40. Does anyone have any suggestions? Thanks in advance for any suggestions Eric |
How to use Indirect functions?
So you actually want the average?
One way: =AVERAGE(OFFSET(A1,99,,-B1)) -- Biff Microsoft Excel MVP "Eric" wrote in message ... Does anyone have any suggestions on how to use Indirect function? For Example, there is a list of numbers under column A, a given number 20 in cell B1 and a formula sum(A81:A100)/20 in cell C1. If I change the number 20 into 30 in cell B1, then the formula will become sum(A71:A100)/30. If I change the number 20 into 40 in cell B1, then the formula will become sum(A61:A100)/40. Does anyone have any suggestions? Thanks in advance for any suggestions Eric |
How to use Indirect functions?
Thank everyone for suggestions
I would like to use Indirect structure instead of average. Do you have any suggestions? Thank you very much for any suggestions Eric "T. Valko" wrote: So you actually want the average? One way: =AVERAGE(OFFSET(A1,99,,-B1)) -- Biff Microsoft Excel MVP "Eric" wrote in message ... Does anyone have any suggestions on how to use Indirect function? For Example, there is a list of numbers under column A, a given number 20 in cell B1 and a formula sum(A81:A100)/20 in cell C1. If I change the number 20 into 30 in cell B1, then the formula will become sum(A71:A100)/30. If I change the number 20 into 40 in cell B1, then the formula will become sum(A61:A100)/40. Does anyone have any suggestions? Thanks in advance for any suggestions Eric |
How to use Indirect functions?
Try this:
=SUM(INDIRECT("A"&101-B1):A100)/B1 -- Biff Microsoft Excel MVP "Eric" wrote in message ... Thank everyone for suggestions I would like to use Indirect structure instead of average. Do you have any suggestions? Thank you very much for any suggestions Eric "T. Valko" wrote: So you actually want the average? One way: =AVERAGE(OFFSET(A1,99,,-B1)) -- Biff Microsoft Excel MVP "Eric" wrote in message ... Does anyone have any suggestions on how to use Indirect function? For Example, there is a list of numbers under column A, a given number 20 in cell B1 and a formula sum(A81:A100)/20 in cell C1. If I change the number 20 into 30 in cell B1, then the formula will become sum(A71:A100)/30. If I change the number 20 into 40 in cell B1, then the formula will become sum(A61:A100)/40. Does anyone have any suggestions? Thanks in advance for any suggestions Eric |
All times are GMT +1. The time now is 07:26 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com