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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,224,828
Messages
6,181,212
Members
453,023
Latest member
alabaz

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