Macros run depending on cell value??

Alpacino

Well-known Member
Joined
Mar 16, 2011
Messages
511
Is it possible to assign a macro to a cell but depending on the value it will run either one macro or another??
E.g. If value is above 0 it runs macro 1
E.g. If value is below 0 it runs macro 2

Thanks in advance
:)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Yes it could be done, but it very much matters how the cell gets its value; from a formula or from the user typing a value?

If it's a formula, can you give an example.?

If it's user input, will it be just one cell or a column of cells or what?
 
Upvote 0
Hi , it's based on a result of a formula if the result is > 0 it runs marco 1 if <0 it runs macro 2 :)
 
Upvote 0
The formula is just an if formula is it's >0 is G <0 it's R then those letters will run macro ?? Is that possible toassign the 2 macro depending on this variable ?? Either G or R
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top