Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
% variance calculation
Can anybody help me to correct this macro:
Sub Macro1() Dim exptype exptype = InputBox("Enter e if expense type.") ActiveCell.FormulaR1C1 = "=IF(exptype=""e"",-(RC[-1]/RC[-2]-1),RC[-1]/RC[-2]-1)" End Sub Am getting error #NAME? I do not want to refer exptype to any cell as it's only a general input Thxs |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Pivot table and variance calculation | Excel Discussion (Misc queries) | |||
variance % | Excel Worksheet Functions | |||
Pivot Tables - Variance and Variance % | Excel Discussion (Misc queries) | |||
Pivot Tables - Variance and % Variance fields | Excel Discussion (Misc queries) | |||
Variance calculation | Excel Worksheet Functions |