date field

Helen Wills

New Member
Joined
Nov 14, 2014
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hi
I am creating a project tracker where users will be collaborating in the same document. One of the fields requires inputting the date of the latest update.

How can i make the cell (O16), display either
[insert date here]. black text, grey background
or
display --/--/-- as a prompt black text, grey background

but then for the text to disappear and background to go to white when the date is populated (a bit like creating a form in word when you can insert fields...
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi Helen,

You could use conditional formatting for this. Prepopulate the required field with the input text of your choosing (either [insert date here] or --/--/--) then apply a conditional formatting rule which changes the background colour of the given cell if it displays the input prompt. For example, if your prompt is [insert date here] in O16, highlight the cell, go to Home->Conditional Formatting->New Rule, then select "Format only cells that contain". Change the 2nd dropdown field from "between" to "equal to" and type "[insert date here]" in the last field (without quotation marks). Select the format you would like to apply by clicking on the "Format..." button. Click OK. Now the field will have the selected format as long as its content is the text you've defined. Once the users overwrite it, the formatting will revert to the original.

Hope this helps
 
Upvote 0
You could do that with conditional formatting (ribbon > home tab):
- New Rule
- Rule Type: Format only cells that contain
- Rule Description / Format only cells with: Specific Text - containing - [insert date here]
Click Format button to define colors of font and background (on Fill tab).
Finally [OK], [OK], [Apply], [OK]

PS: my locale is Dutch.
Book1
A
1[insert date here]
21-10-2020
Sheet1
Cell Formulas
RangeFormula
A2A2=NOW()
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A2Cell Valuecontains "[insert date here]"textNO
 
Upvote 0
You are welcome and thanks for letting us know.
 
Upvote 0

Forum statistics

Threads
1,214,815
Messages
6,121,715
Members
449,049
Latest member
THMarana

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