How do i use a macro to do this?

Closed
macro-ed out - Sep 17, 2011 at 08:07 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Sep 19, 2011 at 08:22 AM
Hello,

I am trying to set up a macro to use in a program where for example. If a value of 1 or 1st place then the value of 6 would be appointed to that cell and if 2 then the value of 4 and so forth. Please help.




1 response

TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 552
Sep 19, 2011 at 08:22 AM
Hi macro-ed out,

Try this:
=IF(A1=1,6,IF(A1=2,4,IF(A1=3, and so forth ,"")))

Since you didn't specify the rest, I can't give full formula.

Usually a macro is used when formula's can't get the job done.

Does this work for you?

Best regards,
Trowa
0