cell lock

bam12

Well-known Member
Joined
Dec 6, 2004
Messages
984
it here way to lock a cell when a certain date is meet with a formula, so that no info can be entered in it?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
it here way to lock a cell when a certain date is meet with a formula, so that no info can be entered in it?
There probably is but you would need to spell this out more clearly. I don't know what you mean by "when a certain date is meet with a formula".
 
Upvote 0
answer

What i meant is this

in cell C4i have a date let say 5/1/1994

in d1

I dont want to ba able to enter data in this cell when today date is eqaul to or greater then C4

i have seen VBA for this but was wondering if able to do with a formula
 
Upvote 0
Try this:
1. Select D1
2. Data|Validation...|Settings|Allow: Custom|Formula:
Code:
=TODAY()<C4|OK

Note: If you want to apply similar Data Validation to a lot of cells then it would be better to put the formula =TODAY() into a blank cell somewhere (say Z1) then in the Data Validation Formula use something like
Code:
=$Z$1<C4
 
Upvote 0
try

DATA >> VALIDATION

select DATE then is less than and enter =C4 in the end date

you can then use the input and error alerts box to enter information

HTH
 
Upvote 0
question

how about if i want it to lock on the next occurrance of 5/1, which would be 2007
 
Upvote 0
.. or if you want the next occurrance based on what is in C4:

1. If you have Analysis ToolPak installed try =TODAY()<EDATE(C4,12)

2. If you do not have Analysis ToolPak installed and don't want to install it, then try =TODAY()<DATE(YEAR(C4)+1,MONTH(C4),DAY(C4))

Note: To check if you have Analysis ToolPak: Tools|Add-Ins... and see if Analysis ToolPak is ticked. If not, do so, and click OK.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,449
Members
448,966
Latest member
DannyC96

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