Conditional Format Part of a Cell

jeran042

New Member
Joined
Jun 9, 2016
Messages
23
So here is what I would like to do. I have a cell that is a concatenation to 2 cells. Some text followed by a hyphen and the current date. I want to conditional format the date to be white font (to appear invisible) if there is no dollar amount entered in an adjacent cell.
I know the length of the part I want to format will always be 11 characters from the right.

I have been testing such a formula in the conditional formatting section, but as of yet I have had no luck,
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
in my opinion a better approach would be to run a macro that finds instances of no dollar amount and then changes the date to white font
 
Upvote 0
You can't Conditional Format part of a cell.

Your options would seem to be:

1) Run a macro like oldbrewer suggests
2) Split the cell into 2 columns and CF the second column
3) Use a formula in the cell like:
=F1 & IF(G1="","",TODAY())

It would depend on your sheet references of course, but the gist is that the date is only concatenated to the cell if G1 (the amount) exists, otherwise it's not.

Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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