From the Excel menu, select Tools > Macro > Record new macro.
A dialog box name "Record Macro" will open with "Macro name" highlighted. Call it anything you like (e.g. Correct_Formulas) but don't use spaces or special characters. Make sure "Store macro in" is set to "This Workbook". Put in a description of what the macro does.
Click OK and the dialog will dissapear and a small menu bar will open with a little square blue button; this is the "Stop" button. Excel is now recording everything you do (well almost everything) until you click the stop button.
Insert your cursor at the top of the relevant column and type in the correct formula. Use your mouse to copy down the formula to all the required rows so that the formula increments correctly. Then click the stop recordig button.
On the Excel menu, click View > Toolbars > Forms.
On the Forms toolbar click the Button icon (should be fourth button down - if you hover your cursor over it a tool tip will say "Button") and your cursor will turn into a cross-hair. Move your cursor to the place on the worksheet you want to put your button, hold down the left mouse button and drag out to create the button.
An "Assign Macro" dialog will open. The macro you created above should be in the list of available macros (if it's not, make sure you select "This Workbook" in the "Macros in" drop down box). Select your macro and click OK.
You now have an issue in that if you add rows to your worksheet the macro will not automatically update and not all the formulas will be fixed. To cover this you could name the range covering the cells in the relevant column (do you know how to do this?) and then edit the macro and use the name. Then in the worksheet, make sure any new rows are added inside the named range. To edit the macro, right-click the button you made above, select "Assign Macro" and highlight your macro then click "Edit". You should see code similar to this:
Code:
Sub CorrectFormula()
'
' CorrectFormula Macro
' Macro recorded 23/07/2007 by Rob Yallop
'
'
Range("G1").Select
ActiveCell.FormulaR1C1 = "=RC[-4]+RC[-3]"
Range("G1").Select
Selection.AutoFill Destination:=Range("G1:G11"), Type:=xlFillDefault
Range("G1:G11").Select
Range("G1").Select
End Sub
Now change the cell reference to something like:
Code:
Sub CorrectFormula()
'
' CorrectFormula Macro
' Macro recorded 23/07/2007 by Rob Yallop
'
'
Range("G1") = "=C1+D1"
Range("G1").Select
Selection.AutoFill Destination:=Range("MyRangeName"), Type:=xlFillDefault
Range("G1").Select
End Sub
Save the code then return to Excel and test the button.