Restrict entry on certain cells based on multiple drop drop-down list

Vani11

New Member
Joined
Sep 19, 2017
Messages
9
Hi There!

I have been working on excel codes to restrict specific cells based on values from multiple drop-down list.

[TABLE="width: 495"]
<tbody>[TR]
[TD]Subject Name[/TD]
[TD]Type[/TD]
[TD]Status[/TD]
[TD]Appointment[/TD]
[TD] ID[/TD]
[TD]Time[/TD]
[/TR]
[TR]
[TD]Test Subject 1[/TD]
[TD]HV[/TD]
[TD][/TD]
[TD][/TD]
[TD] 15033[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Test Subject 2[/TD]
[TD]DM[/TD]
[TD][/TD]
[TD][/TD]
[TD] 13588[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Test Subject 3[/TD]
[TD]DM[/TD]
[TD][/TD]
[TD][/TD]
[TD] 82215[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Test Subject 4[/TD]
[TD]RP DM/HV[/TD]
[TD]New[/TD]
[TD]Confirmed[/TD]
[TD] 15632[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Test Subject 5[/TD]
[TD]HV[/TD]
[TD]New[/TD]
[TD]Rescheduled[/TD]
[TD] 15643[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Columns, "Type", "Status", "Appointment" have drop-down list menu.

When the user selected the values from the "Type" column, the cells from the "Time" will have to be disabled.

When the user selects, "DM" or "HV", the cells under the "Time" must be disabled.

The cells under the "Time" will only be enabled if the user selects "RP DM/HV".

I find this quite tedious because there will be multiple drop down list throughout the spreadsheet.

Vani
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
You said:
"I have been working on excel codes to restrict specific cells based on values from multiple drop-down list."

Show us the code you have written.
 
Upvote 0
Hi There!

I did used codes but have removed it from the code page.

Tried using Conditional Formatting but it does not work.
 
Upvote 0
Hi,

What did you try as conditional formatting? That should work, select Time column set font to white to make it invisible, add conditional formatting with formula.

Use this formula =B2="RP DM/HV" and make it change the font to black. (when applied to multiple cells B2 is treated as a relative reference, it will check column B in the relevant row)
 
Upvote 0
Hi,

Would there be a way to link a dropdown list value to a user form? The appointment column "D" has drop-down list.

The drop-down list values are:
Confirmed
Rescheduled
Cancelled

If a user selects, "Rescheduled", a pop up form should appear to users to select the following checkboxes:

*Blood Test *Urinalysis * Blood Pressure

Next, when the user mouse over that row of data where the appointment is "rescheduled", it should show the checkbox which the user have selected.

[TABLE="class: cms_table_cms_table_grid, width: 486"]
<tbody>[TR]
[TD]Subject Name[/TD]
[TD]Type[/TD]
[TD]Res[/TD]
[TD]Appointment[/TD]
[TD]ID[/TD]
[TD]Time[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]DM New[/TD]
[TD]0.30[/TD]
[TD]Confirmed[/TD]
[TD]15605[/TD]
[TD]8:45 AM[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]0.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]0.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]0.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]0.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]0.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]0.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]0.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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