How to Bold Text in a Concatenate Formula in Excel

Table of Contents

Table of Contents

In Excel, it’s common to merge multiple pieces of information, like a product name and its status, into one cell using the CONCATENATE or TEXTJOIN functions. However, many users want to know how to bold part of the merged text, such as emphasizing the product name while keeping the rest normal. This need often arises in professional reports, product catalogs, or dashboards where formatted text improves readability.

Key Takeaways

To bold text in a concatenate formula in Excel, follow these steps:

➤ Open the Developer tab and go to Visual Basic.
➤ Insert a new VBA module and paste the bolding code.
➤ Run the macro to merge text and automatically bold part of it.

overview image

In this article, we will show how to bold text in a concatenated formula in Excel in two different ways.

Download Practice Workbook
1

Applying a VBA Macro to Bold Specific Portions of Text in the Output of the Concatenate Formula

When we need to combine data from multiple cells in Excel but want certain parts to appear bold, Excel’s standard functions like CONCATENATE or TEXTJOIN fall short because they can’t apply text formatting. We use VBA to solve this limitation by automating both the merging and formatting process.

We have a dataset that contains the salesperson’s name and the total sales of a company. We will create a dynamic text summary showing the salesperson’s name and their total sales in a sentence format with the Sales Amount displayed in bold.

Steps:

➤ Open your worksheet that contains your data. For example, we have taken a dataset that contains Name in Column A, Region in Column B, Total Sales ($) in Column C, and Summary Sentence (Blank) in Column D.

Applying a VBA Macro to Bold Specific Portions of Text in the Output of the Concatenate Formula

Press  Alt  +  F11  to open the Visual Basic for Applications (VBA) editor in Excel.

Applying a VBA Macro to Bold Specific Portions of Text in the Output of the Concatenate Formula

Go to the menu bar → InsertModule to create a new code module.

Applying a VBA Macro to Bold Specific Portions of Text in the Output of the Concatenate Formula

➤ A new code window will open where you will paste your VBA script.

Applying a VBA Macro to Bold Specific Portions of Text in the Output of the Concatenate Formula

Copy and paste the following code into the module:

Sub BoldConcatenatedText()
Dim ws As Worksheet
Dim i As Integer
Dim nameText As String
Dim salesText As String
Dim combinedText As String
Dim startPos As Integer
Dim boldLength As Integer
Set ws = ThisWorkbook.Sheets("Sheet1")
For i = 2 To 9 'Data rows: 2 to 9
nameText = ws.Cells(i, 1).Value
salesText = ws.Cells(i, 3).Value
combinedText = nameText & " Sales of $" & salesText & "."
With ws.Cells(i, 4)
.Value = combinedText
'Find starting position of "Sales of"
startPos = InStr(.Value, "Sales of")
'Length of bold portion: "Sales of $" + number length
boldLength = Len("Sales of $") + Len(salesText)
'Make "Sales of" and the sales amount bold
.Characters(Start:=startPos, Length:=boldLength).Font.Bold = True
End With
Next i
MsgBox "Concatenation and formatting complete!", vbInformation
End Sub

Applying a VBA Macro to Bold Specific Portions of Text in the Output of the Concatenate Formula

➤ Go back to Excel,
➤ Press  Alt  +  F8  , select BoldConcatenatedText, and click Run.

Applying a VBA Macro to Bold Specific Portions of Text in the Output of the Concatenate Formula

➤ A message box will open as Concatenation and formatting complete!
➤ Click OK.

Applying a VBA Macro to Bold Specific Portions of Text in the Output of the Concatenate Formula

➤ You will see the concatenated sentences in Column D with bold text.

Applying a VBA Macro to Bold Specific Portions of Text in the Output of the Concatenate Formula


2

Using a VBA Macro to Bold Entire Text in the Output of the Concatenate Formula

When we need to apply bold formatting for the entire result, we use this method. We usually use this method to visually emphasize full names in Excel,  for printed documents like training rosters, certificates, or ID cards.

We have a dataset that represents a training participant list. Each full name is generated by combining first and last names. We will use VBA for bold formatting to emphasize in printed certificates.

Steps:

➤ Open your dataset that contains your data. Here, we have taken a dataset that contains First Name in Column A, Last Name in Column B, and Full Name in Column C.

Using a VBA Macro to Bold Entire Text in the Output of the Concatenate Formula

Press  Alt  +  F11  to open the Visual Basic for Applications (VBA) editor in Excel.

Using a VBA Macro to Bold Entire Text in the Output of the Concatenate Formula

Go to the menu bar → InsertModule to create a new code module.

Using a VBA Macro to Bold Entire Text in the Output of the Concatenate Formula

➤ A new code window will open where you will paste your VBA script.

Using a VBA Macro to Bold Entire Text in the Output of the Concatenate Formula

Copy and paste the following code into the module:

Sub Bold_in_Concatenate_range()
Dim ws As Worksheet
Dim i As Integer
Set ws = ThisWorkbook.Sheets("Sheet1") ' Update if your sheet name differs
For i = 2 To 11 ' Adjust range if needed
Dim fullName As String
fullName = ws.Cells(i, 1).Value & " " & ws.Cells(i, 2).Value
With ws.Cells(i, 3)
.Value = fullName
.Font.Bold = True
End With
Next i
End Sub
Explanation
This macro loops through rows 2 to 11, combines first and last names from columns A and B, writes the result in column C, and applies bold formatting to the entire cell.

➤ Click  Alt  +  Q  to return to your workbook.
 Alt  +  F8  to open the Macro dialog box. You will see Bold_in_Concatenate_range listed among other macros. Click on Bold_in_Concatenate_range and press Run.

➤ Column C will now display bolded full names for each row.


Frequently Asked Questions

Can I bold text using the CONCATENATE formula alone?

No, Excel formulas like CONCATENATE or TEXTJOIN can only merge text but can’t apply any formatting such as bold, italic, or color.

Do I need to know coding to use the VBA method?

Not necessarily. You can simply copy-paste the given VBA code and run it once from the Developer tab, no advanced coding skills required.

Will the formatting stay if I edit the cell later?

If you change the content, you’ll need to re-run the macro to reapply the bold formatting.

Can this method work in Excel Online or Google Sheets?

No, VBA macros work only in desktop versions of Excel, not in online versions or Google Sheets.


Concluding Words

Apply the VBA-Based Bold Concatenate Method, and you can thus enhance your Excel data presentation just by carefully merging text with bold emphasis exactly where needed. You can download the text files and datasets we have used in this article to practice on your own.

Facebook
X
LinkedIn
WhatsApp
Picture of Shihab Shahriar

Shihab Shahriar

Md. Shihab Uddin holds a Graduation in Crop Science and Technology and is pursuing a Postgraduate degree in Soil Science from the University of Rajshahi. With 4+ years of Excel and Google Sheets experience, he specializes in formulas, data cleaning, lookups, automation, VBA, formatting, and file management. He has authored 100+ in-depth Excel articles and is skilled in Power Automate, RPA, and Python. He enjoys creating efficient workflows and solving real-world data problems.
We will be happy to hear your thoughts

      Leave a reply


      Excel Insider
      Logo