Link to home
Start Free TrialLog in
Avatar of Kevin
KevinFlag for United States of America

asked on

Excel 2010 formula help - TODAY() date on cell

Good Morning,

I have a spreadsheet which shows the stock of our toners (sample below):

User generated image
For column F (Date Deplenished) i have a formula, for when the stock reaches "0" todays date will be inserted. Formula is:

=IF(D6=0,TODAY(), " ")

Open in new window


I added the above formula yesterday so the date originally read "10/14/2015". However upon opening the spreadsheet this morning, I've noticed that the date has changed to todays date of "10/15/2015".

This is not going to work, as the date needs to be set to the date when the stock reached "0" and stay that way until I increase it in the "Current Stock" in column D.

Can someone advise how I can accomplish this?

Kind Regards,
N
Avatar of Saurabh Singh Teotia
Saurabh Singh Teotia
Flag of India image

The only way that you can accomplish this by formula is that you convert that formula to values as today() formula is linked to the system dates as and when the system date will changes the today() formula will give you updated result an answer..

As a alternative you can do a paste special-->values over the cell which will leave the value over the cell rather then the formula..

In additional if you want to do it automatically then you can do with a macro where i can write a  macro for you which does what you are looking for automatically..

Saurabh...
Avatar of Kevin

ASKER

Thank you for your response Saurabh.

Yes it needs to be done automatically, as I will be locking down several cells and giving the spreadsheet to the office manager to update and having them manually do a special paste each time, is not going to work.

I would appreciate very much if you could write that Macro and let me know how to apply it, I myself am not too familiar with Excel in that aspect.

Kind Regards,
N
ASKER CERTIFIED SOLUTION
Avatar of Saurabh Singh Teotia
Saurabh Singh Teotia
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kevin

ASKER

Thank you Saurabh.

Everything appears to work. However please allow me to wait until tomorrow to ensure the date is OK before accepting your solution.

Kind Regards,
N
Avatar of Kevin

ASKER

Works great. Thanks again.