This article is written by Alex Kerin from Data Driven Consulting.

“When expensive dashboard software doesn’t work, do it with Excel” stated Stephen Few back in 2006. This was before the release of Tableau, and some of the other solutions now available for visualizing your data, but Excel remains a great choice for creating dashboards when you extend it with sparkline add-ins, clever chart hacks, and VBA or (relatively) simple formulas.
Excel however isn’t regarded as a “serious” business intelligence tool for delivery of your metrics and charts. Perhaps some of this is that users expect dashboards to be deployed on the web not on a locally installed application.
Today we will learn how to export excel dashboards to web pages.
Exporting Excel Dashboards to Web:
When it comes to exporting dashboards to web, 4 options come to my mind. I’ll quickly review these, culminating in a look at a new option – Excel 2010 and Microsoft’s online version of Office – Docs.com
- Save your workbook as a web page. Text in cells is converted to text in html tables, while charts and other shapes are converted to images. Excel offers two formats – mhtml and normal html. The mhtml version saves as a single file with the images encoded as text. Only IE can natively handle mhtml file while plug-ins exist for some of the other popular browsers. The normal html file option creates a folder full of images. By choosing this option you obviously lose any interactivity you had via drop down forms, pivot tables, or VBA. The conversion of charts/shapes to images is imperfect, leading to fuzzy edged images, and in my (beta) version of 2010 sometimes resulted in blank or missing images. You also lose font type information in 2007, so if you’re using any special fonts to create in-cell charts they will end up looking odd. Excel 2010 preserves font information (as long as the font is installed on the user’s machine). Personally, I don’t think it’s a great option – you may as well just:

[click here for a larger version] - Take a screenshot and post it to your website. You could use contol-printscreen to take a snapshot of your dashboard. As this just dumps the screen to the clipboard you may want to use a screen capture tool which can select a portion of the screen and save it to a file easily. You’ll want to make sure you crop appropriately, for looks, and so that your boss doesn’t see your taskbar with your browser on Facebook. Excel 2010 has a new screenshot option, but that’s for inserting screenshots, not saving them out. You can’t save a file as jpg/png like you can in Powerpoint, but you could save as a PDF and upload that. But what if you want more interactivity?
- Publish using Sharepoint. Sharepoint is an MS server platform that among (lots of) other things, allows publication of Excel workbooks to the web. While some interactivity is preserved (like pivot tables), many features are not (VBA, form dropdowns, images, and shapes). As some sparkline add-ins use VBA to generate a shape that depicts the data, even the static shape will not be shown as it will be stripped out. Other add-ins use VBA and a special font to depict the shape. As Excel 2010 preserves font information, these may show on a Sharepoint server, assuming the user has installed the font. Of course though, they will not update as VBA is not allowed. Linking to external data sources is allowed, so you can use your OLAP cubes or whatever else. Sharepoint is a viable option, but requires servers and licenses, neither of which come cheap. What other options are there then?
- Docs.com and Excel 2010. Docs.com is Microsoft’s online version of the Office applications. At the time of writing (July 2010), it was still in private beta. Oddly, MS has chosen to release it with deep ties to Facebook (login, posting to your wall, and sharing documents amongst friends). I honestly have never needed to share a document with a friend, and equally I’m not friends with the people that I do want to share documents with. Despite this (and I’m sure plenty will change as Docs evolves past beta), Docs.com offers some interesting opportunities for web deployment of dashboards. It still suffers from no VBA or ability to show shapes – I suspect that docs.com is running in a Sharepoint environment, BUT, and this is a big but, Docs.com was built with Office 2010 in mind. This means that the sparklines new to Excel 2010 show up, and update when values change. Take a tour of one of my workbooks on docs.com here.

Problems with Excel Dashboards uploaded to Docs.com
You’ll see on the example that there are several warnings thrown up – I left some shapes in the file before uploading just to show you what the warning message looked like. Linking to external data is not allowed (as you would expect, compared to Sharepoint where you control the servers), so you’ll have to be clever about how you update the dashboards. If your goal is to deploy using Docs.com, you’ll probably design your dashboard with this in mind, making good use of pivot tables for example.
I could envisage using Docs.com in the following manner:
- Develop a great dashboard in 2010 that instantly makes the user aware of any problems (but you’re doing that already aren’t you?) and upload it to Docs.com
- Share the document with your users, and upload a new file as data is added to the dashboard
- For any interactivity (e.g. simple data exploration to further investigate problems), the user can download the document – even though things like dropdown list boxes are not shown on docs.com, they are preserved and will show and work on the local version (VBA is still a no-no as you can’t upload a xlsm file)
I would like to see some changes with Docs.com – for example being able to hide the “Who you are sharing this with” column, allowing full-screen viewing of just the sheet, and sorting out the sharing outside of Facebook.
Now this method will not be suitable for sensitive information where deploying to the cloud (albeit with careful sharing of access) would not be appropriate, but the concept of using Excel 2010 and Docs.com offers some interesting opportunities for web-deployed Excel dashboards, and for using on websites that teach us to become awesome in Excel…
Added by Chandoo:
How do you Export Excel Dashboards to Your Audience?
Do you save the dashboards as PDFs or email the workbook or save as web page? What is your way of exposing the dashboard to the audience?
Please share using comments.
More Resources on Dashboards:
Checkout our dashboards page which has lots of links, templates, downloads and tutorials on creating excel dashboards.
Thank you Alex
I thank Alex for sharing these beautiful ideas with all of us. Exporting dashboards is a growing need and we all could use help like this to become better. Thank you Alex.
About Alex Kerin:
Alex runs a kickass consulting business at Data Driven Consulting. He shares a lot of innovative ideas and information on dashboards, visualization and Excel thru his blog regularly. And of course, he is awesome with excel.















22 Responses to “Formula Forensic No 019. Converting uneven Text Strings to Time”
Why not let the TIME function take care of the math:
=TIME(LEFT(TEXT(A1,"000000"),2),MID(TEXT(A1,"000000"),3,2),RIGHT(TEXT(A1,"000000"),2))
I was going to point out the same thing, except to note that useing the time function and doing the divide method are not interchangeable.
I have spent hours investigating a spreadsheet working with a couple of years worth of hourly data, and found that the reason things weren't working is because the rounding on the divide method is only close to the correct time values. In order to have it work for comparisons, (like sub-totaling by time value, or pivoting) you MUST use the TIME function.
Great use of the TEXT function, Hui. I will be using this concept for sure.
Why not just.
=TEXT(A1,"00\:00\:00")*1
Regards
Elegant!
Hi Elias,
I tried to use your formula. But, it doesn't seem to work for me. I am getting an error message "The formula you typed contains an error". It seems I have the problem in using \: in the format. How can I overcome this?
Thanks
Manick, it isn't the /: that causes the problem. If you copy/paste it, you're getting “'s instead of the actual quotation marks that Excel uses. Change the quotation marks by deleting from the pasted formula and retype them.
Hi Manick...
use this alternate formula :
=1*TEXT(A1,"00"":""00"":""00")
note twice double quote each side of :
@Manick,
Did you copy the formula and pasted in Excel or did you typed? Also, do you use , or ; as separator of arguments?
Regards
@Elias: I had no problem using your formula, in fact, I have used your method to convert a number such as 20120419 to an Excel date using =TEXT(A1,"0000\/00\/00")*1. Thanks for posting.
@Joe: For date convertion you can use this as well.
=TEXT(A1,"00-00-00")*1
Regards
Sweet! It appears this also works with =TEXT(A1,"0-00-00")*1. I come from the old days when you counted every byte. I also like to try an make formulas as small as possible for the fun of it 🙂
Elias's suggestion is the simplest, but here is yet another way with TIME and MOD functions...
=TIME(MOD(A2/10000,100),MOD(A2/100,100),MOD(A2,100))
Since the seconds appear to always be 0, why not simply the input to minutes and above and save yourself the trouble of typing those zeroes...
0 => 0:00
1 => 1:00
10 => 10:00
100 => 1:00:00
etc.
Then just use this formula...
=TEXT(A1,"0\:00\:")*1
@ Rick, the numbers to convert are no typed, they are imported. Then your formula will return the wrong result.
Regards.
Hmm! My formula lost some backslash-zero combinations (two of them to be exact). The formula was supposed to be this...
=TEXT(A1,"0\:00\:\zero\zero")*1
where the words "zero" should actually be the number 0. Another way to write the formula is this...
=TEXT(A1,"0\:00\:""00""")*1
Hi Master,
While writing the formulae you have considered only upto "seconds factor" . I think you should take the centi-seconds factor also to achieve best results. Please look into it and rectify the problem...?
For Example.
In horse racing timings are noted in minute, seconds and centi-seconds, like if a horse finished in 70 seconds over a scurry of 1200 metres, is noted as 1.10 min. Nowadays it is noted in centi-seconds everywhere, like 70.00 if you want to convert it to centi seconds (should multiply by 100) = 7000 centi seconds. If you put this figure into your formula as a general number (7000) it will return as 1:10:00. As per your formula, it should be taken as 1 hour 10 seconds 0 minutes. However for a racing enthusiast like me it can be taken as 1 minute 10 seconds also.
Just look what happens if we race goers use this figure as 7000 centi seconds in your formulae, it will correctly show as 1 minute 10 seconds(?) Suppose a horse finishing over a 1200m in 70.60 seconds or in racing terms written as 1.10.60 mins, where 1 minute 10 seconds, & 60 centi-seconds can be counted as 7060, if you put this figure in the formula it will return as 1 minute 11 seconds, that is correct.
My point is if you can incorporate Centi Seconds in the formulae, it would be of great help to us also.
Thanks and regards.
Rajagopal (Mumbai)
Awesome techniques !
I tried with 235960 just to see if it will fail but this is great.
Although a little longer, this too work:
=CHOOSE(LEN(A2);A2/(24*3600);A2/(24*3600);LEFT(A2;1)/(24*60) + RIGHT(A2;2)/(24*3600);LEFT(A2;2)/(24*60) + RIGHT(A2;2)/(24*3600);LEFT(A2;1)/24 + MID(A2;2;2)/(24*60) + RIGHT(A2;2)/(24*3600);LEFT(A2;2)/24 + MID(A2;3;2)/(24*60) + RIGHT(A2;2)/(24*3600))
Converting uneven Text Strings to Time I have imported some data that comes in as a number that I need to convert to h:mm.
Just come across this while googling
find interesting challenge and come up with this
=TEXT(TEXT(SUBSTITUTE(A1,RIGHT(A1,1),""),"000000"),"00\:00\:00")
I need to convert a string of numbers representing average minutes, to reflect correct time values. For example, the numbers below currently represent 5.79 minutes, 15.82 minutes, etc.
I need to convert these values to their correct corresponding value within time parameters. So 5.79 would be something close to 5 minutes and 45 seconds.
5.79
15.82
3.92
12.40
6.70
3.62
I know there has to be a way to compute this in Excel, it can do anything, I believe!
Thank you for any and all assistance~
@Renee... You can use a formula like this. Assuming A1 has the minutes.seconds,
=INT(A1) + MOD(A1, 1)*0.6
If you want to see it in 5 minutes 45 seconds format, use
=INT(A1) & " mins " & ROUND(MOD(A1, 1)*0.6,2) & " secs"