How to bold a single word in a text string that appears in an excel IF statement

BobWald

New Member
Joined
Aug 19, 2014
Messages
6
Hi all

How do I bold a single word in a text string that appears in an excel IF statement.

For example: IF(A1=1, "apples and oranges", "potato and carrots")

Thanks for all help

BobWald
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
How do I bold a single word in a text string that appears in an excel IF statement.

For example: IF(A1=1, "apples and oranges", "potato and carrots")
I am afraid you cannot do that... a formula and its output must have the same font characteristics for each character in the entire text string. There is a way to simulate what you want using VBA Change event code, but that would mean removing the formula completely and letting the event handler perform all the functionality of the formula in code.
 
Upvote 0
For your reference
Format part of a formula result… A workaround (non-VBA) solution | wmfexcel

It's not perfect; and not effective if you are working with many formulas.
Please check your blog's spam folder... I just tried to post a comment to one of your other articles (once from my desktop and again from my laptop) and neither is showing up in the comment area of article. I have had this problem with other blogs as well... for some reason, certain blog software sees my comments as spam.
 
Upvote 0
Rick, thank you so much for your comment. It's really my pleasure to have you commented on my blog. :)
Yes you are right. You comments somehow go to the SPAM folder, which I have already unSPAM.


Please check your blog's spam folder... I just tried to post a comment to one of your other articles (once from my desktop and again from my laptop) and neither is showing up in the comment area of article. I have had this problem with other blogs as well... for some reason, certain blog software sees my comments as spam.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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