M
Mouimet
Hi,
I have different data related together on a sheet.
I want to create a formula selecting the function depending the code I have
in cell A7
The formula in all cell should be like this
= Choose(A7,ATV,Connect,Sales,Hours, Closing)
Each option (ATV, Connect, etc) = "a function I need to create for each case"
In case the user select "1" in cell A7 to increase the ATV, the cell should
use the function ATV
Using a relative reference so I can use it everywhere
I tried this:
Function ATV()
ActiveCell.FormulaR1C1 = "=Average (RC[-3:RC[-1])"
End Function
This mean calculate the average of the last 3 columns (months)
For testing in cell AL67 instead of
= Choose(A7,ATV,Connect,Sales,Hours, Closing)
I use directly
=ATV()
I tried also =ATV(AL67)
What I need to see is the answer of the formula =Average (RC[-3:RC[-1])
when in the cell I have =ATV function
Thanks
I have different data related together on a sheet.
I want to create a formula selecting the function depending the code I have
in cell A7
The formula in all cell should be like this
= Choose(A7,ATV,Connect,Sales,Hours, Closing)
Each option (ATV, Connect, etc) = "a function I need to create for each case"
In case the user select "1" in cell A7 to increase the ATV, the cell should
use the function ATV
Using a relative reference so I can use it everywhere
I tried this:
Function ATV()
ActiveCell.FormulaR1C1 = "=Average (RC[-3:RC[-1])"
End Function
This mean calculate the average of the last 3 columns (months)
For testing in cell AL67 instead of
= Choose(A7,ATV,Connect,Sales,Hours, Closing)
I use directly
=ATV()
I tried also =ATV(AL67)
What I need to see is the answer of the formula =Average (RC[-3:RC[-1])
when in the cell I have =ATV function
Thanks