Heres my code:
Dim N As Single
N = ActiveCell.Offset(0, 0).Value
E = 1 - N
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=-SUM(R[E]C:R[-1]C)"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=-SUM(R[E]C:R[-1]C)"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=-SUM(R[E]C:R[-1]C)"
ActiveCell.Offset(1, 0).Range("A1").Select
I want the macro user to select a cell with a value (example 5) as it will be a slot for the 5th row of values. I want the program to find the negative sum of all the values prior to it (1,2,3 and 4).