Restrict values in 1 column

kathleenfarber

New Member
Joined
Sep 26, 2016
Messages
32
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to restrict values in column D if column G has an entry of 1 and vice versa. I don't think Data Validation will work. Any ideas? Example is if they choose full service in Units A they are unable to choose Units B and vice versa. Any help appreciated.

ANNUAL FEEUNITS ACOSTANNUAL FEEUNITS BCOST
NSCLC$100.00( auto computes )$60.00(auto computes)
Late IO$500.00( auto computes )$500.00( auto computes )
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Any idea why this macro stops working? I have resaved the file as an XLSX and went thru the steps multiple times to re-enter the code. Resaved the file as macro-enabled. It still won't work. I'm not sure what I am doing wrong. it was working great and now it's not. :/
 
Upvote 0
Did you place the macro in the worksheet code module as I suggested in Post #3?
 
Upvote 0
I sure did. Then something happened to the file by another co-worker. I deleted everything. Saved as XLSX then started back at step 1. It just keeps failing.
 
Upvote 0
Correct. I cleared everything. Saved at XLSX then started back at step 1 including saving it again as macro-enabled.
 
Upvote 0
Could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file (de-sensitized if necessary) that you can post here.
 
Upvote 0
The macro is working properly for me. If I enter a value in D5 and G5 is blank, then nothing happens. If I enter a value in G5 and D5 is not blank, then the message pops up.
 
Upvote 0
It's working fine for me, it might be your security settings blocking it, or events are currently disabled. Try completely closing excel (everything, not just one workbook), then starting again.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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