Formatting BOLD Using a Formula

meppwc

Well-known Member
Joined
May 16, 2003
Messages
626
Office Version
  1. 365
Platform
  1. Windows
I am trying to figure out if a formula can be used to control the format of a cell
For Example

If C3 or F3 is populated, then, make the contents of B3 bold

Is there a way of doing this?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
You can use conditional formatting for that, but not a formula in a cell. Does that help?
 
Upvote 0
I do see what you are recommending RoryA...............but I am confused on how to implement it
I went to conditional formatting, selected "use a formula to determine which cells to format"
I put in cell A3 the following formula
=IF(OR($C$3<>"",$F$3<>""))
And then selected formatting to be BOLD and ITALIC
But nothing happened............cell C3 has data and F3 does not
So A3 should be BOLD and ITALIC
Is the formula incorrect?
 
Upvote 0
Use this as your formula:
Code:
=OR($C$3<>"",$F$3<>"")
 
Upvote 0
Nevermind RoryA...............I figured it out...........=IF(OR(C2<>"",F2<>""),TRUE)
 
Upvote 0
You don't need the IF part at all - OR and AND are boolean functions that return TRUE or FALSE on their own without using IF.
See my previous response above.
 
Upvote 0
You are welcome.

You can also create your own boolean expressions.
For example, let's say that you wanted to highlight cell A1 if C1 is equal to "dog".
Instead of writing:
Code:
=IF(C1="dog",TRUE,FALSE)
you can just use:
Code:
=C1="dog"
Basically, based on the value of C1, the equality expression you created is either TRUE or FALSE, so that is what is returned.
 
Upvote 0
Thanks again..............never know when these shortcuts will come in handy...........believe it or not I do keep a log file of all these types of suggestions
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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