Here is an interesting scenario.
Imagine you are responsible for customer satisfaction at ACME Inc. Every month you track customer satisfaction rate for the 3 products you sell which are conveniently named Product A, B & C.
You also have bands for the satisfaction rating.
- Rating of 85% or below is Average
- Rating between 85% & 95% is OK
- Rating above 95% is good
At the end of the year, you want to visualize the ratings for last 12 months for 3 products along with bands.
Something like this:

Unfortunately, there is no “Insert Banded line chart” button in Excel. So what to do?
That is what we will learn today. Ready?
Create a line chart with KPI bands
The process of creating a line chart with background bands is simple. Follow these steps.
Step 1: Arrange your data
Lets say your data looks like this:

Now, add the band information to it and make it look like this:

Use simple formulas to generate OK & Good columns from the bands.
Step 2: Create a line chart with all data
Select all 6 columns of data and insert a line chart.
This is how it looks.

Step 3: Convert Average, OK & Good lines to columns
This step changes depending on the version of Excel you are running.

In Excel 2013:
- Right click on any line and choose “Change series chart type”.
- Now, set up “Stacked Column” as chart type for Average, OK & Good series. (As shown in above picture)
- Done!
In earlier versions of Excel:
- Right click on Average line and choose “Change series chart type”.
- Change it to “Stacked Column Chart”
- Repeat the steps 1 & 2 for OK & Good lines too
- Done.
Step 4: Make columns wider by setting gap width to 0%
Right click on any of the columns and choose format.
Change the gap width to 0%.

Step 5: Adjust axis settings & column colors
Since our focus is to show variation in customer satisfaction ratings between the band of 80% to 100%, adjust axis min to 80%, axis max to 100% and major unit to 5%.
Also, fill columns with dull & subtle colors. This way, user’s attention shifts to the lines.

Step 6: Format the lines & axis labels
Now let’s make those lines stand out. You can add markers, adjust line thickness. While at it, fix the orientation of axis labels and remove year (as it is not needed).

Step 7: Add a title, apply labels to important points and annotate bands
This is the last step. Lets add a descriptive title to the chart.
Also, apply data labels (only to the last data point). To do this:
- Click on the line. All points will be selected.
- Click on the last point alone.
- Now only last point will be selected.
- Right click & add data label.
- Click on data label.
- Click on it again (this will select only that label, not the entire series)
- Format it by adding series name.
Annotate bands by either adding data labels or text boxes.
Our chart is ready.

Download line chart with bands template
Click here to download the chart template. It has detailed images of all the steps. Examine the chart settings to understand this better.
Do you make banded line charts?
Although I make very few banded charts, I think they are great for several scenarios.
What about you? Do you make banded line charts to report this kind of data? What techniques you rely on? Please share your tips & ideas using comments.
More charts like this:
If you like banded line charts, you will surely enjoy these other charts too:
- Bar chart with lower & upper bounds
- Shading above or below a line chart to depict boundaries
- Indexed charts to depict change from point in time
- Thermo-meter chart with last year value
- World education rankings visualization – a case study
Your journey to Excel awesomeness – a banded line chart
Why stop at banded line charts? You want to learn how to create different types of charts, reports, dashboards & analytical models to supercharge your career. And this is where my Excel School program can help you most. It is an online course with more than 50 lessons on various aspects of Excel, right from basics to advanced concepts.
You can login and access the lessons from anywhere at anytime. You can learn at your own pace and become awesome in Excel.
Please click here to learn about Excel School program & join us.















13 Responses to “Convert fractional Excel time to hours & minutes [Quick tip]”
Hi Purna..
Again a great tip.. Its a great way to convert Fractional Time..
By the way.. Excel has two great and rarely used formula..
=DOLLARFR(7.8,60) and =DOLLARDE(7.48,60)
basically US Account person uses those to convert some currency denomination.. and we can use it to convert Year(i.e 3.11 Year = 3 year 11 month) and Week(6.5 week = 6 week 5 days), in the same manner...
This doesn't work for me. When applying the custom format of [h]:mm to 7.8 I get 187:12
Any ideas why?
@Jason
7.8 in Excel talk means 7.8 days
=7.8*24
=187.2 Hrs
=187 Hrs 12 Mins
If you follow Chandoo's instructions you will see that he divides the 7.8 by 24 to get it to a fraction of a day
Simple, assuming the fractional time is in cell A1,
Use below steps to convert it to hours & minutes:
1. In the target cell, write =A1/24
2. Select the target cell and press CTRL+1 to format it (you can also right click and select format cells)
3. Select Custom from “Number” tab and enter the code [h]:mm
4. Done!
Hi, sorry to point this out but Column C Header is misspelt 'Hours Palyed'
good one
So how do I go the other way and get hours and minutes to fractional time?
If you have 7.5 in cell A1,
- Use int(A1) to get the hours.
- Use mod(A1,1)*60 to get minutes.
If you have 7:30 (formatted as time) in A1
- Use hours(a1) to get hours
- Use minutes(a1) to get minutes.
I had the same issue. You can solve it by changing the format as described above:
Right click cell > Format Cells > (In Number tab) > Custom > Then enter the code [h]:mm
([hh]:mm and [hhh]:mm are nice too if you want to show leading zeros)
Thanks guys, these are the tips I'm looking for.
...dividing the number of minutes elapsed by the percent change is my task - "int" is the key this time
It doesnt work for greater than 24 hours
It returns 1:30 for 25.5 hours. It should have returned 25:30
Ideally I would right function as
=QUOTIENT(A1,1)&":"&MOD(A1,1)*60
Sorry, replied to wrong comment....
----
I had the same issue. You can solve it by changing the format as described above:
Right click cell > Format Cells > (In Number tab) > Custom > Then enter the code [h]:mm
([hh]:mm and [hhh]:mm are nice too if you want to show leading zeros)
Clever use of MOD here to extract the decimal part of a number. Divide a number containing a decimal by 1 and return the remainder. Humm. Very clever.
Thanks very much, extremely useful !