
Ever since writing the create in-cell pie charts in excel, I have been itching to find a simple enough method to do incell bar graphs. An in-cell bar would probably be more useful and cuter than an in-cell pie as it can instantly provide trending details. What more, these would probably look gorgeous when printed out.
My first challenge was that there was no font readily available for bar graphs. Thankfully this is when I noticed Font Struct, an online font creator / editor. I quickly created a bar graph font using their wonderful editor. When you use bargraph font, 0 through 9 will show bars of increasing heights, as shown below.

You should download bargraph font if you want to use incell bar graphing technique mentioned here.
Once you have downloaded the font, the rest is simple process. For this example, lets use fictitious sales data of various beverages over the last 12 months. The initial data table is something like this:

=ROUND(jan_sales/MAX(all_sales)*9,0). Remember, we need to round the data make it one digit instead of a decimal.When we are finally done, our table should look something like this:
Remember, you need to have the bargraph font installed first.
Do you like this? share your feedback.

Here is a ridiculously easy trick to do nice incell pie charts in excel, what more, they will make you look like a charting wizard.
=CHAR(CODE("a") + ROUND(data cell*21,1)), just replace the data cell with actual cell code. You can add some conditional formatting to the pie charts like I did to make it nice.

I was toying with the idea of creating a tag cloud in excel - as a form of new visualization, this could be useful when you have medium amounts of data (eg: 50-300 rows) and you want to emphasize on what is important and what is not. I would imagine using a tag-cloud,
My goal is to generate a tag cloud from a selected data table (with just 2 columns, one with text to display, the other with any number on it) as shown below:

Since anything related to changing cell formats is not possible using functions, I had to write a VBA Macro (a subroutine that you would write in your excel sheet to achieve a task). The logic is simple:
1. Read the selected table and create 2 arrays, 1 with tags and another with the numeric data
2. Select an empty cell in the work book (I choose E10)
3. For each item in tags array:
- Add text to the selected cell
- set its font size based on normalized value between 6 and 20
The code is shown below:
Sub createCloud()
‘ this subroutine creates a tag cloud based on the list format tagname, tag importance
‘ the tag importance can have any value, it will be normalized to a value between 8 and 20On Error GoTo tackle_this
Dim size As Integer
size = Selection.Count / 2
Dim tags() As String
Dim importance()ReDim tags(1 To size) As String
ReDim importance(1 To size)Dim minImp As Integer
Dim maxImp As Integercntr = 1
i = 1For Each cell In Excel.Selection
If cntr Mod 2 = 1 Then
taglist = taglist & cell.Value & “, ”
tags(i) = cell.Value
Else
importance(i) = Val(cell.Value)
If importance(i) > maxImp Then
maxImp = importance(i)
End If
If importance(i) < minImp Then
minImp = importance(i)
End If
i = i + 1
End If
cntr = cntr + 1
Next cell' paste values in cell e10
Range("e10").Select
ActiveCell.Value = taglist
ActiveCell.Font.size = 8strt = 1
For i = 1 To size
With ActiveCell.Characters(Start:=strt, Length:=Len(tags(i))).Font
.size = 6 + Math.Round((importance(i) - minImp) / (maxImp - minImp) * 14, 0)
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
strt = strt + Len(tags(i)) + 2
Next i
Exit Sub
tackle_this:
' errors handled here
'MsgBox "You need to select a table so that I can create a tag cloud", vbCritical + vbOKOnly, "Wow, looks like there is an error!"
End Sub
This code is totally reusable. Just right click on the sheet name at bottom & select “view code”. In the VBA Editor create a new module (Menu > Insert > module) and Paste the above code there. Go back to your excel sheet and select a 2 columned data table and run the createCloud macro. The cloud will be created and pasted in cell E10. You can change this by modifying the line Range(”e10″).Select.
![]()
Would you like to spend next 5 minutes learning how to create an excel sheet to track your mutual fund portfolio?
NOTE: I have updated the sheet to fix a formula error, download it again if you need to.
We will use 2 simple excel features to achieve this - web queries and vlookup()
[click here to learn more about web queries in excel]
When you finish creating the table, it would look something like this:
Since AMFI returns data in a text file with ; as delimiter, I had to parse the fund names and navs out of it using a combination of search(), left() and mid(). I will not get in to the details of how its done since you may have to process your data differently depending on source.
Finally when the processing is done, we will have a table in the second sheet with all fund names and latest navs.
The formula for latest NAV can look like this:
=vlookup(c1,sheet1!c1:d6000,2,false)
Remember to use false for last parameter since fund names may not be sorted in alphabetical order on your source web page.
Now we will repeat this formula for all the rows in latest nav column. I have built my portfolio tracker to track 20 funds at a time. Also, you can simplify formulas using named ranges.
current value = latest nav * units held
profit/loss = current value - purchase value
profit/loss % = “profit/loss” / purchase value
You can add some conditional formatting to beautify the table (like turning text blue for profits and red for losses etc.)
Feel free to download mutual fund portfolio tracker excel sheet I have created and play with it.
Few ideas on how you can enhance this:
Do you know that you can use excel find - replace dialog to change cell formats?
Often we prepare a report or project plan and our boss or someone else in the team feels that all the red color cells need to change to blue or something similar, worry not, you can use find-replace (ctrl+h) to do this for you.
I have created a small video demo on how to do this, check it out yourself
If you are not able to see the video:
add to del.icio.us | add to Stumble

How many times you created a chart in Microsoft excel and formatted it for minutes (and sometimes hours) to reduce the eye-sore?
Well, I will tell you my answer, its 293049430493 times
Worry not! for you can become a charting superman (or elastigirl) by using these 73 free designer quality chart templates in literally no time (well, almost)
These templates will take care of typical formatting activities like,
so that you, the user can focus on your data and not on “why in the world anyone would design a default format like this…”, so go ahead and unleash the charting pro in you.
(I have put them in 3 separate excel sheets):
or, since you are so good, download one zip file, quick and easy!
If you are wondering how to use these templates, scroll all the way down the post
(29 of them)





























(22 of them)






















(22 of them)
Even though I seldom use pie-charts (since they hide more than they show and all that) I know a lot of people do use them and hence here they are,






















Finally we can say good bye to default chart formats and all the associated eyesore

(I have put them in 3 separate excel sheets):
or, since you are so good, download one zip file, quick and easy!
Thats all, feel free to share this content with your friends by bookmarking it on del.icio.us | Stumble upon
What are your 3 most favorite excel key board shortcuts?