Creating in-cell bar Chart

This post will guide you how to insert a bar chart in a cell in excel. And How do I insert a bar chart into a cell with conditional formatting function in excel. How to insert a bar chart into a cell in excel with the REPT function.

In-Cell Bar charts with the REPT Function

You can easily create an in-cell bar chart using REPT function in excel, just do the following steps:

#1 select on cell in a new column that next to the source data, such as: Cell C2, then type the following formula in the formula box of cell C2. Press Enter key in your key board. Then drag Auto Fill Handler over other cells to apply this formula.


creating in cell bar chart1

#2 select that new column, go to HOME tab, type Webdings in Fond style under Font group, and press Enter key,

creating in cell bar chart2

#3 click Fond Color icon, and select a font color from the drop down list.

creating in cell bar chart3

#4 you will see that the in-cell bar chart have been inserted into each cell in new column.

creating in cell bar chart8

In-Cell Bar Charts with the Conditional Function

You can also use the Conditional Function to insert an in-cell bar chart, you can refer to the following steps:

#1 select the source data that you want to create in-cell bar chart, such as: range B2:B5

creating in cell bar chart4

#2 go to HOME tab, click Conditional Formatting command under Styles group, and select Data Bars , then select More Rules…. The New Formatting Rule dialog will appear.

creating in cell bar chart5

#3 select Format all cells based on their values in the Select a Rule Type list. And select Data Bar as Format Style. Check Show Bar Only check box. Set bar color as you need in the Bar Appearance section.  Click OK button.

creating in cell bar chart6

#4 let’s see the result.

Related Functions

  • Excel REPT function
    The Excel REPT function repeats a text string a specified number of times.The syntax of the REPT function is as below:= REPT  (text, number_times)…




So empty here ... leave a comment!

Leave a Reply

Your email address will not be published. Required fields are marked *