I recorded a macro in Excel and need to now modify it but have not idea where to start. The Macro was recorded in a spreadsheet titled "Macro" and the macro actually refers to actions taking place in order to modify a spreadsheet titled "Data". I was purposely vague to allow users to save over the "Data" spreadsheet and reuse the macro to format.
Once of the actions taken in the Macro is to insert the following formula into Cell X13 of the "Data" spreadsheet:
=IF((ISERROR((((M13/5*3)-O13)/J13))),"NA",((((M13/5*3)-O13)/J13)))
While this formula works perfectly well, I now need to change it so that the user to enter two numbers on the "Macro" spreadsheet and those two numbers will be used in the formula.
For instance, on the "Macro" spreadsheet, a user enter the number 6 into cell E4 and also enter the number 4 into cell E5. I need to add the values from these cells into the formula above as follows:
=IF((ISERROR((((M13/(Value From E4)*(Value From E5))-O13)/J13))),"NA",((((M13/5*3)-O13)/J13)))
Any help is much appreciate!!!!
Thanks,
G
Once of the actions taken in the Macro is to insert the following formula into Cell X13 of the "Data" spreadsheet:
=IF((ISERROR((((M13/5*3)-O13)/J13))),"NA",((((M13/5*3)-O13)/J13)))
While this formula works perfectly well, I now need to change it so that the user to enter two numbers on the "Macro" spreadsheet and those two numbers will be used in the formula.
For instance, on the "Macro" spreadsheet, a user enter the number 6 into cell E4 and also enter the number 4 into cell E5. I need to add the values from these cells into the formula above as follows:
=IF((ISERROR((((M13/(Value From E4)*(Value From E5))-O13)/J13))),"NA",((((M13/5*3)-O13)/J13)))
Any help is much appreciate!!!!
Thanks,
G