Resources

How to insert in-cell bar charts in Excel

More often than not, you don't want an excess of full-scale charts clogging up your worksheet. That's where in-cell charts come into play, as they conserve space yet provide an effective way of glancing over data to make quick judgements.

Excel has a couple of options for this, namely Sparklines and Conditional Formatting. The latter features something called Data Bars, which are mini horizontal bar charts representing values in cells.

While these can be sufficient, the drawback is the coloured bars sometimes affect the readability of values if they happen to collide with each other. You also need a column width significantly wider than the values themselves to make them truly worthwhile.

An alternative is the clever use of a formula.

In the video example, sales data is present, with the monthly figures housed in B2:B9.

Using =REPT("|",B2:B9) in the adjacent column repeats the pipe symbol (|) a set number of times according to each sales value.

After changing the font from Aptos to Stencil, the pipes (|) turn into overly long continuous bars. Dividing the range B2:B9 by 10 drastically reduces their length, making them easy to interpret.

To go one step further, a threshold value of 500 is added in E2, followed by the creation of two conditional formatting rules to check if the sales value is greater than (=๐™ฑ๐Ÿธ>$๐™ด$๐Ÿธ) or less than (=๐™ฑ๐Ÿธ<$๐™ด$๐Ÿธ) this number. The bar is displayed in green if it is, and red if not.

For more Excel tips and tricks like this, check out our Video Tutorials page.

Andrew Moss
About the Author

Andrew Moss

Andrew is a technical writer who specialises in Microsoft Excel and data analysis. He has published hundreds of articles and social media posts aimed at helping people enhance their skills and spreading good practices.

Conversation

0 Comments

As you comment, let's keep the discussion friendly and respectful to add value to the conversation.

Thank you! Your comment has been sent!
Oops! Something went wrong while submitting the form.
Commenter profile pic.
Author Name
Comment Time

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere. uis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Reply
Delete
Commenter profile pic.
Author Name
Comment Time

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere. uis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Reply
Delete

Get Tickets

Benefit from an award-winning 3-day conference plus access to exclusive networking and additional Masterclass events.

Get Tickets
Close Cookie Popup
Cookie Preferences
By clicking โ€œAccept Allโ€, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts as outlined in our privacy policy.
Strictly Necessary (Always Active)
Cookies required to enable basic website functionality.
Cookies helping us understand how this website performs, how visitors interact with the site, and whether there may be technical issues.
Cookies used to deliver advertising that is more relevant to you and your interests.
Cookies allowing the website to remember choices you make (such as your user name, language, or the region you are in).