Showing posts with label Excel. Show all posts
Showing posts with label Excel. Show all posts

Tuesday, 21 June 2011

How Would You Visualize Product Sales Data? [Excel Challenges #2]

We have a new Excel Challenge folks!


I know our friends in US are away celebrating Memorial Day weekend. But that should not leave rest of us from fun. So, we have a new Excel Challenge. This time, you need to make a chart, to visualize product sales data.


The data you need to use:


Is this,


Excel Challenge #2 - Visualize Sales Data


Download Excel File with this data.


The Instructions:


1) Make one chart (you can make panel charts too, but not a dashboard or multiple charts) to visualize the product sales breakup in our data. Your chart should help answer any of these questions:



  • What is the overall composition of revenue, how it is changing over time?

  • Which products bring in more $s?

  • Trend of sales from Jan to May


2) You are free to make charts that answer additional questions. Just think like a owner of a company that sells these products (think like me, because these are the sales of some of our products) and try to make sense of the data.


3) You can use Excel or Tableau or your favorite visualization tool to make this chart.


How to submit your work?



  1. Prepare your chart and save the workbook

  2. Send an email to chandoo.d @ gmail.com with the subject “EC 2 – Solution”

  3. Or upload your work to skydrive.com, share it with public and post the URL here thru comments.

  4. Note: Submit your work by 6th June , 2011 This contest is closed now.


What do you get?


I will post a collection of all your entries on Chandoo.org for our readers to see. I will also pick one random winner from the best charts.


The random winner will receive an Amazon Kindle Reading Device – Wi-Fi Version



Fine Print



  • Note: Submit your work by 6th June , 2011 This Contest is closed now.

  • You can submit multiple entries

  • Or upload your work to skydrive.com, share it with public and post the URL here thru comments.

  • Email your workbook to chandoo.d @ gmail.com with the subject “EC 2 – Solution”

  • Please do not use add-ins or macros to generate the charts.

  • Please send unlocked files only. You also agree that Chandoo.org can publish your files for other to learn.


So go ahead and visualize the product sales data. Enjoy!


Previous Visualization Challenges


Charting is one of my favorite areas. Charts are very good for discovering patterns and communicating. We run contests on charting all the time. Browse some of our previous contests,






Generated by BlogIt

BlogIt - Auto Blogging Software for YOU!

BlogIt - autoblogging software for YOU

BlogIt - autoblogging software for YOU

Do you want to attend an Excel Workshop in Singapore? [Survey]

Announcing Excel & Financial Modeling Bootcamp in SingaporeI have happy news for you.


Paramdeep (from Financial Modeling School) and I am going to organize an Excel Workshop in Singapore during first (or second) week of July.


We want to know if you are interested in this. So please take a few minutes and go thru this small post.


Who is this workshop for?


If you are a financial or business analyst, this workshop is for you. We will be discussing various Excel & Financial Modeling topics during the 12 hour workshop (spread across 2-3 days)


What is the agenda?


We will be mixing Financial Modeling & Excel topics thru out 12 hours. The tentative agenda is,


Excel Topics (6 hours)



  • Excel formulas for analysts

  • Selection of Right Chart Type

  • Charts for monitoring performance

  • Creating Dynamic Charts in Excel

  • Using Pivot Tables for Rapid Reporting


Financial Modeling Topics (6 hours)



  • Basics of Finance & Financial Modeling

  • Case Study

  • Hands on Exercise

    • Creating a Financial Model using Excel

    • Enhancing the model




How much is the cost?


We are planning to charge SGD 300 per student.


Tentative Dates


We are planning to do this workshop in either first or second weekend in July. We need your opinion to fix the dates.


Are you interested?


We want to know if you are interested to join us for a weekend and learn Excel & Financial Modeling. Please fill this short form to express your interest.

[If you cannot see the form, please click here]






Thank you


Thank you so much for your interest to learn. You motivate me each to learn new things and share them with you. Thank you.


Singapore Photo from DigitalPimp





Generated by BlogIt

BlogIt - Auto Blogging Software for YOU!

BlogIt - autoblogging software for YOU

BlogIt - autoblogging software for YOU

10 Excel Formula Myths – Busted!

10 Excel Formula Myths - BustedMany of us start using Excel to keep track of something. And along way, we realize that Excel has a powerful feature called formulas, using which we can automate a lot of things. BOOM! Before we realize, we are in the thick of VLOOKUPs and SUMIFs.


But, along way, we also pick up a few bad habits or believe a few myths. Today, lets bust 10 Excel formula myths that we hear often.


1. Shorter Formulas are Better


I think it is human tendency to shorten and optimize things. We take great pride if we can shrink a task that takes 10 minutes to 12 seconds. But is it the case with Excel Formulas?


In my opinion, any formula that does the job is better. It does not matter how short or long the formula is. Often, we can come up with a reasonable formula in few minutes, but we waste several hours trying to shorten it. Time that could be used for better things like impressing your boss or shipping a product.


2. IF Formulas are Bad


I dont know where this comes from, but I hear it often. Oh, why use IF formula, as if it is going to slow down the computer drastically. Well, for most cases, we are dealing with reasonably sized data and Excel is fast enough to calculate formulas whether they are IFs or REPTs or something else.


So go ahead and use IF formula, if that is what you need to use.


3. VLOOKUP is slower


Ok, here is another one. For some reason people believe that VLOOKUP is slower than alternatives like INDEX+MATCH, OFFSET+MATCH, MATCH, Array formulas. Well, in my private tests, I found mixed results. VLOOKUP performance is almost same as that of other alternatives for small and medium (10000 rows) sized data sets.


Of course, if you have a workbook with million rows, then you should spend time looking for the fastest formula. Otherwise, just use VLOOKUP and be done.


4. Helper Cells, Helper Columns are Lame


Again, another myth that has no reason to exist. Each Excel sheet has 17179869184 cells and there is no reason why we should not use a few to support us in our formulas or models. Use helper cells, they keep your worksheet simple and easy to understand.


5. Formulas should start with = sign only


Do you know that you can start a formula with + or – sign too?


Well, you can type -SUM(1,2,3) to get -6 in a cell.

Similarly, you can type +SUM(1,2,3) to get 6 in a cell.


PS: You can also begin a formula with @ sign. I am not sure if there are more…

PPS: You can put ‘ before the formula if you just want to show the formula instead of running it. So if you write ‘=SUM(1,2,3), Excel would show =SUM(1,2,3) in a cell (instead of 6)


6. Formulas cannot refer to other Excel Workbooks


Well, that is not correct. You can refer to data in other workbooks in an Excel formula. For eg.


=SUM(sales.xlsx!q1Sales,2000,$H$2:$H$13)


will sum up the named range q1Sales in Sales.xlsx workbook, the value 2000 and the cells H2:H13


Remember, if your workbook is closed, you need to put the full path, like this:


=SUM(‘C:\full\folder\path\sales.xlsx’!q1Sales,2000,$H$2:$H$13)


PS: Certain formulas do not work with closed workbooks.


7. Formulas should be written in a cells only


Well, this is wrong. You can use formulas in named ranges, conditional formatting, data validation. You can also assign formulas to drawing shapes, chart elements (like titles, labels etc.).


See these examples:


5 ways to use formulas in Conditional Formatting

Custom Data Validation with Excel Formulas: Example 1, Example 2, More

Make your charts smarter with Formulas


8. We cannot copy a formula without changing references


Of course you can. If you want to have the same formula as in the cell above, just press CTRL+’

You will get the same formula and you can modify it as you want.


If you want to have the same formula elsewhere, just go to the formula cell, press F2, select everything (SHIFT+HOME), copy (CTRL+C).


Now go to the target cell and press F2 and paste (CTRL+V)


9. Formulas cannot do ‘x’…


May be they cannot feed your cat or take your dog for walk or change a nappy. But there is a formula for almost everything. And Excel team at Microsoft is adding new formulas in each version. It wont be long before a =ChangeNappy(kidname, ) appears. Well, may be.


But the best part is, you can create your own formulas, called as User Defined Functions. And once you start doing that, there is no limit to the possibilities. You can create a CONCAT() to add up a bunch of text values, a NETWORKINGDAYS() to calculate working days based on a custom weekend setup or anything. [More UDF Examples]


10. Formulas are difficult to learn


Only if you think so.


Excel formulas are very powerful and very easy to learn. You need to start slow and go one step at a time. It might take a while to wrap your head around the referencing styles and various formulas.


But once you learn a few simple formulas, rest of them will be easy to learn. And before you realize, you are in the thick of VLOOKUPs and SUMIFs.


Oh, wait, I said that already. But then who says we cannot repeat. That is another myth!


What myths you hear about Excel Formulas?


Thanks to all your emails, comments and forum discussions. I hear about a lot of myths and bad habits all the time, when it comes to Excel. I found that giving in to these myths limits our ability to do more.


What about you? What myths you have heard when you started learning Excel? Please share using comments.


Learn More About Excel & Excel Formulas


If you just started using Excel, then you are at the right place. Go thru below links to learn more.


1. Excel Tutorials for Beginners - 10 videos to start your Excel Journey

2. Excel Formula e-book – 75 Excel Formulas, explained in plain English

3. Excel Formulas – Examples & Demos – More than a 100 examples on Excel formulas

4. Excel School – Online Excel Training Program by Chandoo. With 23 hours of video lessons and downloadable excel files, you will master every aspect of Excel, very soon.


PS: Join our news letter. You will get emails with Excel tips, tricks, tutorials and more, 3 times a week.





Generated by BlogIt

BlogIt - Auto Blogging Software for YOU!

BlogIt - autoblogging software for YOU

BlogIt - autoblogging software for YOU

How to create a Win-Loss Chart in Excel? [Tutorial & Template]

Win Loss Charts are an interesting way to show a range of outcomes. Lets say, you have data like this:


win, win, win, loss, loss, win, win, loss, loss, win

The Win Loss chart would look like this:


Win Loss Charts in Excel - Template & Tutorial


Today, we will learn, how to create Win Loss Charts in Excel.


We will learn how to create Win Loss charts using Conditional Formatting and using Incell Charts.


Win Loss Charts in Excel using Conditional Formatting:


Step 1: Create a helper column where we show cumulative totals


This is easy. Just show cumulative sum of numbers like this:

Data for Win Loss Charts - Excel Win Loss Charts


Lets say this is in D4:D16


Step 2: Create a 100 cell grid


Type numbers 1 thru 100 in one hundred adjacent cells, one each in a column.

Then resize this grid so that you can fit everything in a screen.

Lets say, this is in F3:DA3

100 Cell Grid where we would show the win loss chart


Assumption: I assumed that the total number of wins and losses we have is 100. If you have more, adjust accordingly.


Step 3: Fetch the Win or Loss Status for Each of the 100 Cells


This is a bit tricky, but easy once you figure out the formula. We will use INDEX+MATCH.


For each column, we will lookup the corresponding number in our cumulative total table and once we find a match (not exact match, but a number less than what we are looking for), we just return the corresponding win or loss value.


We will write this formulas in the range F4:DA4,


This formula will do: =INDEX($C$4:$C$16,MATCH(F$3,$D$4:$D$16,1))

How this formula works?

1. We are looking for a column number (F3) in the range of cumulative totals (D4:D16) for a less than match (1)

2. Once found, we want the corresponding element from C4:C16 (where the win – loss labels are maintained).


Step 4: Copy the cells F4:DA4 and paste them as links in F5:DA5


Step 5: Apply conditional formatting


Now, we just apply conditional formatting to cells F4:DA4 such that whenever the cell is “Win”, we fill it with Green color.

Similarly, we apply CF to F5:DA5 such that whenever the cell is “Loss”, we fill it with Red color.


Conditional Formatting Rules to show Win Loss Chart


Finally, hide the cell values in F4:DA5 by using custom cell format code ;;;


Related: How to Apply Conditional Formatting


That is all. Your Win Loss Chart is ready.


Win Loss Charts in Excel


In-cell Win-Loss Charts in Excel:


We can create a slightly less accurate win-loss charts in Excel using In-cell charting approach.


Note: In-cell Charting is making charts inside a cell by using REPT() formula and some clever hacks. See examples of in-cell charting.

See this illustration to understand the technique.


Create a win loss chart in Excel using incell charts


Follow this procedure:



  1. Create 2 helper columns – H1 & H2.

  2. In H1, print the | symbol for Win and print spaces (” “) for loss. When printing spaces, divide the value by x.

    1. “x” will depend on the font & font size you choose. For script font, 11 pt size, it is 2.2



  3. In H2, do the same for Loss.

  4. Now concatenate all H1 values and print somewhere.

  5. In the cell beneath, concatenate and print all the H2 values.

  6. Change color of above cell to Green and below cell to Red.

  7. Your in-cell win-loss chart is ready!


Bonus: Create Quick Win Loss Charts with Excel 2010


In Excel 2010, Microsoft introduced Win-loss charts. So, now you can easily create a win-loss chart. To do this, just select the binary data (1 for win, -1 for loss) and go to Insert > Sparklines > Win/loss chart


Win Loss Chart in excel 2010


For more info: Visit Introduction to Excel 2010 Sparklines


Download Win Loss Chart Excel Template


I have made an excel template that creates win loss charts using conditional formatting and in-cell charts.


Go ahead and download the excel workbook [Excel 2003 version here]


Play with it to understand how to make win loss charts.


Do you use Win Loss Charts?


Personally, I never had to use win loss charts. But I have seen various applications of this chart. Win loss charts are effective in visualizing results from sports, stock markets and other such areas.


What about you? Have you used win loss charts before? How did you make them? Please share your techniques and ideas using comments.


More Excel Charting Tutorials:






Generated by BlogIt

BlogIt - Auto Blogging Software for YOU!

BlogIt - autoblogging software for YOU

BlogIt - autoblogging software for YOU

Amount Donated vs. Pledged [Excel Formula Homework]

We have some home work folks! Today, lets test your Excel formula skills by giving some data related to a fund.


The problem:


You manage a fund for a non-profit. You have donors who pledge certain amount at the start of the year. As you go thru the year, the donors donate money to your fund. At the end of the year, you have a table like this:


Amount Donated vs. Pledged - Data


And you need to summarize the fund’s performance by calculating all these statistics.


Amount Donated vs. Pledged - Summary Calculation Homework


 


Download the homework file:


Click here to download the homework file. Write formulas in all blue boxes so that the values are calculated properly.


The correct answers are shown below:


Solution for Amount Donated vs. Pledged Excel Homework


Post your Answers using Comments


Once you finish calculating the summary values, please share your approach (and formulas) using comments. Go!


Download the solution file:


There are several ways you can calculate the summary values. Here is my approach. Click here to download the solution file [Excel 2003 version here].


More homework:


If you like to test your Excel skills then, checkout some of these homework problems:



  1. Calculate sum of digits in a number using Array formulas

  2. Find average of closest 2 numbers

  3. When does Thanksgiving day occur on same day again?

  4. Show zebra lines when value changes

  5. … More homework & Excel challenges


Thanks David


Special thanks to David, who emailed me this problem a few weeks ago.





Generated by BlogIt

BlogIt - Auto Blogging Software for YOU!

BlogIt - autoblogging software for YOU

BlogIt - autoblogging software for YOU