ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Average command (https://www.excelbanter.com/excel-programming/309705-average-command.html)

Haim[_2_]

Average command
 
Hi,

How can I do the following (I guess for you it will
be simple):)

I would like to use the Average command as follow:

I called cell A1: RSI1

So the Average command will be:

Average(the cell that I'm right now : the cell that
I'm right now - RSI1).

How can write this command?

Thank you,

Haim.


Andoni[_47_]

Average command
 
you wil get an error as you will be in a circular reference

at least if you try to do this with no VBA!

using vba:

sub TryThis()
dim Answer as long
Answer
Application.WorksheetFunction.Average(Range(Active Cell.Address
Range("RSI1")))

end su

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 10:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com