Average command

  • Thread starter Thread starter Haim
  • Start date Start date
H

Haim

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.
 
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(ActiveCell.Address
Range("RSI1")))

end su
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top