conditional cell lock if select cells =1

2k05gt

Board Regular
Joined
Sep 1, 2006
Messages
151
I am having trouble creating a formula to to this, so I am leaning to the VB solution, this
is causing me to beat my head against the wall...

I am trying to lock cells (a1:a3, c1:c3, e1:e3 g1, i1, k1, m1, o1, q1, s1, if any cell has a "1" entered (don't lock the cell with the 1 in it because if I remove the 1 they must all unlock). the locked cells also need to receive an X in them to indicate that they are locked.

The attached sheet can give better detail. but the A1-A3, C1-C3 and E1-E3 are a group
I have 3 seporate groups. these 3 groups are repeated in 5 defferent columns.

If someone can get me started on the basics I should be able to apply the code to the entire workbook, several sheets and 100 sections and Conditional formating is killing me.

http://www.fileswap.com/dl/8DNRNBeMUK/racing.xlsx.html
 

Some videos you may like

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Watch MrExcel Video

Forum statistics

Threads
1,123,474
Messages
5,601,880
Members
414,479
Latest member
Beau the dog

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
Top