About the author

Image of Philipp Kowalski

Philipp Kowalski is a self-taught Excel-lover, project manager and blog-owner. Besides developing "beautiful" solutions in MS' premier spreadsheet tool, he loves his fiance, his cats and surfing the net. He is CEO and owner of Inservo IT, the company behind Excel-King. He's also available on Twitter and YouTube. If you like this website, please leave a comment. If you want to know more visit the forums or look into the about section of this website.

Error
  • Error loading Modules:
I just wanted to share with you a little trick that has been recently published. I will show you, how I use it to make my spreadsheets more informative.

Assuming you have a table like this one:

 

  A B
1 Member FoodUnitUsed
2 Frodo Baggins 58
3 Merry Brandybock 67
4 Peregrin Tuk 65
5 Samwise Gamdschie 42
6 Aragorn 32
7 Legolas 11
8 Gimli 39
9 Boromir 28
10 Gandalf 9

Now we want to visualize the figures in column B. We will use the REPT function for this. The syntax of this function is as follows:

=REPT(text, number_of_times)

I think, this is pretty self-explanatory. The first element is the one to be repeated, the second one is the number of repititions. To produce a nice little in-cell-bar-chart we will use the pipe-symbol "|" as text and the value in column B as number of repititions.

=REPT("|",B2)

You now can format this with font-size 6 to 8 and bold to have a nice little equalizer-like bar chart. So far, so good. This tip has been spread widely across the Internet. To show that Hobbits (yes, this is a Lord of the Rings example) use more food than anyone else, we will additionally utilize some conditional formatting. The MSXL2007 conditional formatting manager looks like this: 

conditionalFormatting01.jpg

So the final table is set up like this one ...

  A B C
1 Member FoodUnitUsed Visualization
2 Frodo Baggins 58 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3 Merry Brandybock 67 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4 Peregrin Tuk 65 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 Samwise Gamdschie 42 ||||||||||||||||||||||||||||||||||||||||||
6 Aragorn 32 ||||||||||||||||||||||||||||||||
7 Legolas 11 |||||||||||
8 Gimli 39 |||||||||||||||||||||||||||||||||||||||
9 Boromir 28 ||||||||||||||||||||||||||||
10 Gandalf 9 |||||||||
Formulas in the table
Cell Formula
C2 =REPT("|",B2)
C3 =REPT("|",B3)
C4 =REPT("|",B4)
C5 =REPT("|",B5)
C6 =REPT("|",B6)
C7 =REPT("|",B7)
C8 =REPT("|",B8)
C9 =REPT("|",B9)
C10 =REPT("|",B10)

Display Excel tables online >> Excel Jeanie HTML 4

... and the view will show up like this (because of the strange display of the above image):

reptFunction01.jpg

You can of course use this function with some other - more symbolic - fonts like Wingdings. Just imagine you want to visualize telephone calls, simply use the left parenthesis, which is a little telephone icon in the Wingdings font, and you get something like the following:

reptFunction02.jpg

This function is pretty nice, isn't it? What purposes do you / would you use it for? Simply join the discussion and leave a comment below.

discuss_it2.png

Discuss this blog post in the forums (click the blue button)


Administrator
Written on Monday, 07 December 2009 00:00 by Administrator

Viewed 284 times so far.
Like this? Tweet it to your followers!

Rate this article

(0 votes)

Latest 'tweets' from Phil Kowalski

  • dashboard reporting http://bit.ly/eSiM68 . Dashboard Financial Reporting for Board Members Link Wednesday, 30 March 2011 16:00
  • ! http://bit.ly/fZZSOI Display hidden data in an Excel chart chart excel Link Wednesday, 30 March 2011 06:00
  • Calculate the Coefficient of Variation in Excel statistics excel http://bit.ly/h6JrOe :P Link Wednesday, 30 March 2011 01:00
  • Excel - Combine Data From 2 Different Spreadsheets With a VLookup vlookup :O http://bit.ly/gFK5YH Link Tuesday, 29 March 2011 15:40
  • Undo and Redo in Microsoft Excel 2007 windows excel :) http://bit.ly/eM064Y Link Tuesday, 29 March 2011 14:00

Add comment


Security code
Refresh

Sharing is caring

Facebook Twitter Digg Delicious Stumbleupon Google Bookmarks RSS Feed 

Tweet, Tweet...

Click the little blue friend to follow Phil on Twitter!

Advertisement

Create Excel dashboards quickly with Plug-N-Play reports.