excel in-cell bar graphs

11 August 2006

excelincell.jpg
an extremely simple technique for adding simple bar charts or sparkline-like diagrams within the cells of an Excel spreadsheet. the already built-in Excel REPT function repeats any text entry a certain number of times. for instance, REPT(”X”,10) results in “XXXXXXXXXX”. so the trick is to repeat specific characters, such as a single bar “|” to create data bars.
see also a similar implementation in the upcoming Excel 12 & an artistic take as Excel drawings.
[juiceanalytics.com & juiceaanalytics.com]

add to delicious.gif add to digg

recent entries

roots of Middle-East conflict movie data signals on a spiral electoral college prediction tracker hidden cost of Iraq war movie credit crisis visualized museum data dashboard Berkman tag content network visualization funniest pie chart ever 2008 visualization challenge winners participative physical bar charts why we drink movie US elections reference frequency pyramid the graphic truth visual overview of your life

extra

excelincell2.jpg

comments

Wow thats cool.

If you rotate the text direction, you should be able to to vertical bar charts as well. Neat trick.

I think this simple command has a lot of utility in GIS applications: you get a quick infographic within its spatial context. I've referenced your post as well as JA's in my last blog.

Cheers

This is super cool trick. I can't wait to check it out.

I see the new Excel in Windows Vista is going to be able to do this automatically.

I did this in MS Access 2.0 forms to nice effect back in '97. Different fonts have different widths for the | character, with some mods you can make almost solid bars.

Really neat trick. Try using "g" as the character and Webdings as the font. You get completely solid bars.

shop

post a comment