Convert NOW() to Text

excelbytes

Board Regular
Joined
Dec 11, 2014
Messages
249
Office Version
  1. 365
Platform
  1. Windows
I have a situation where if I enter a value of "Yes" in one cell, I want the date and time to populate another cell in that row, but be fixed and not refresh when any other entry is made in that worksheet.

I tried something like this in cell L6:

=IF(K6="Yes",TEXT(NOW(),"mm/dd/yyyy hh:mm:ss"),"")

But it keeps updating whenever any other data is entered in the worksheet like any volatile function would.

Is there a non-VBA solution to this?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
As far as I know, the only way to do what you want is to have VBA place the value as text (a formula cannot do this) into the cell.
 
Upvote 0
Actually, there is a solution, sort of.

=IF(K2="Yes",IF(L2="",NOW(),L2),"")

This creates a circular reference, so it requires checking the "Enable iterative calculation" in the Formulas section of the Options. Not a great solution, but one none the less.
 
Upvote 0
Actually, there is a solution, sort of.

=IF(K2="Yes",IF(L2="",NOW(),L2),"")

This creates a circular reference, so it requires checking the "Enable iterative calculation" in the Formulas section of the Options. Not a great solution, but one none the less.
I've not tried, but will that actually survive the workbook being closed and then reopened?
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,977
Latest member
dbonilla0331

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