VBA needed to make cell deleted if another cell value is exist

love_guy_1977

Board Regular
Joined
Aug 5, 2006
Messages
111
Hi guys,

I'm looking for vba that do the following:

Say eample:

---1---2---3
A-Man-5---

===============
---1---2---3
A-Man- ---5

===============
---1---2---3
A-- --- ---


A1 must be filled then enter number in A2 or A3. Meaning can't enter value in A2 and A3.

So if A1 is entered, then you enter 5 in A2. If you enter any number in A3, value of A2 will be deleted.

And contrary, if A1 is entered, then you enter 5 in A3. If you enter any number in A2, value of A3 will be deleted.

One more that, no value allowed in A2 or A3 if A1 is empty


Thank your very much
 
Last edited:

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,224,616
Messages
6,179,909
Members
452,949
Latest member
beartooth91

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