Changing format of cell based on text in another cell

coolguyhb

New Member
Joined
Apr 4, 2017
Messages
7
I'm trying to change the cell format based on another cells text.

example:

F6 contains the words "Contract Rate:". i need H6 to be formatted to "0%" only when the words "Contract Rate:" is showing in F6. F6 is variable and changes based on a drop down selection. H6 is being used for multiple input types, could be text or in this case will be a percentage number. This is why I'm trying to conditional format H6.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Just use a set of CF rules of the type

=F6="Contract Rate:"

and assign the desired number format to each rule.
 
Upvote 0
Just use a set of CF rules of the type

=F6="Contract Rate:"

and assign the desired number format to each rule.
Thats the first thing i tried. But it didn't seem to work. I kinda over thought this. lol. I ended up just formatting the cell H6 to percentage after realizing that the only time someone would be using this field for a numerical input would be for the contract rate all other input in this cell will be text unless Contract Rate is selected from a dropdown menu.

Thanks for your help. I'm sure i will have other questions for this forum in the future. Very happy to be a subscriber. :)
 
Upvote 0

Forum statistics

Threads
1,215,766
Messages
6,126,761
Members
449,336
Latest member
p17tootie

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