Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

locking data cell

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Locking data in a cell

Locking data in a cell

ResolvedVersion 365

Locking data in a cell

Hi Guys

Is there a way I can lock a cell in excel from auto populating data after it has collected the data from another cell ?

Example, I have a cell that collects information from A2 and populates that in D2. If I change the source data in A2 then it'll then affect the data in D2.

Can I get D2 to lock the data once it's been populated?

RE: Locking data in a cell

Hi Daniel,

Thank you for the forum question.

If you have =A2 in the cell D2, you have a "live" reference back to A2, and if the content change in A2 it will also change D2.

You will have to copy A2 and paste in D2. You may have to paste special and only paste values, if you have a formula in A2.


Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Sat 6 May 2023: Automatically marked as resolved.

Excel tip:

Generating Random Numbers

To generate a random number in Excel use the = RAND() function.

The value returned will always be between 0 and 1. To convert this to some other random value, you will need to multiply the result by the highest number you want to consider. For example, if you wanted a random number between 1 and 25, you could use the following code line:
= INT(25 * RAND()+ 1)

Since RAND() will always returns a value between 0 and 1 (but never 1 itself), multiplying what it returns by 25 and then using the Integer function INT on that result will return a whole number between 0 and 24.

Finally, 1 is added to this result, so that x will be equal to a number between 1 and 25, inclusive

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.