how to bold part of a concatenate formula

evadiva9

New Member
Joined
Mar 27, 2013
Messages
3
i have a concateate formula in excel. is there any why to bold a portion for the wording?

this is my formula:

=CONCATENATE("Total US Division: ",$A$2," production (",TEXT(Month!D15,"#,###"),") is ",IF(Month!D15<Month!F15,"lower than ","higher than "),$A$2," Outlook (",TEXT(Month!F15,"#,###")," MMcf/d) by ",TEXT(ABS(IMSUB(Month!D15,Month!F15)),"#,###")," ",IF(C7>0,C7,"."))

results:
Total US Division: March gas production () is lower than March Outlook () by 29.

it there any way to make the Total US Division bold? so it would appear like this:

Total US Division: March gas production () is lower than March Outlook () by 29.

thanks in advance for the help!


<tbody>
</tbody><colgroup><col></colgroup>
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Sorry, no. A formula can only return a value, it cannot format cells.
 
Upvote 0
do you know if it could be done using a macro? if so do you know the code for the macro?

Try like this

Code:
Sub test()
With Range("A1") 'change to suit
    .Value = .Value
    .Characters(1, 18).Font.Bold = True
End With
End Sub
 
Upvote 0
that works, but it blows away my formula.
is there any way to for it to work with out pasting values to my formula?
 
Upvote 0
that works, but it blows away my formula.
is there any way to for it to work with out pasting values to my formula?

Sorry, but no.
You cannot format "Part" of the result of a formula.
Any formats applied to a cell with a formula will apply to the entire result of that formula.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

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