How to insert in-cell bar charts in Excel
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.

@globalexcelsummit 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 =𝚁𝙴𝙿𝚃("|",𝙱𝟸:𝙱𝟿) 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.   #exceleration #excel #microsoftexcel #excelformulas #exceltips #exceltricks #globalexcelsummit ♬ original sound - globalexcelsummit

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

Using =𝚁𝙴𝙿𝚃("|",𝙱𝟸:𝙱𝟿) 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.

About the Author

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

REGISTER YOUR INTEREST

Our next event takes place in February 2025. Register your interest in attending and be the first to know when registration is live!