Just for info'
The number:
519451
Is this date:
16/03/3322
Main Topics
Browse All TopicsI'm having what can only be described as a simple Excel problem. I have the following value
51,9451388888889
That I wan't to convert to the format 'dd:hh;mm'. I wan't it to display 51:22:41 but Excel wants it to be 20 feb 22:41. How do I change it ?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Wow, I went to lunch for 30 min and got 7 replies :)
I'm sorry about my lack of clarity. I'm from Iceland and here we use commas where Americans use periods (There is a semi famous quote in icelandic that goes something like "is the period a period or a comma ?"). What I want is for the number 51.9451388888889 to read as 51 (days) (22 hours) : 41 (minute). I just want Excel to think of this number as a length of time.
Patrickab: your solution works if I change all the commas to a " ; " but since this is a query result that will get overridden every time the query is run, I don't see how this can be done without adding a number of worksheets, which I hope I don't have to do.
Let the brainstorming continue :)
There is no built in format that will display elapsed time like that. If you can display it all as hours, without days, then you can use the format I posted. If you use formulas to convert the number into text to get the days, then you can't add them up (which I assume was the point from your earlier question).
Regards,
Rory
Coming back to your comment, Mannsi:
"Patrickab: your solution works if I change all the commas to a " ; " but since this is a query result that will get overridden every time the query is run, I don't see how this can be done without adding a number of worksheets, which I hope I don't have to do."
You could amend your Query to replace all the commas with semi-colons so that the resultant data is always as you wished (and it does not get "overridden").
But if you are satisfied with the results, then just ignore me :)
Rory: I just didn't get 'on' with the new site colo[u]r-scheme (due to my colo[u]r-blindness... I've only been 'back' a few times since the redesign. I see you have been busy overtaking me in the Excel rankings... Congratulations on your MVP too! :)
Patrick: Are you still looking for work? Hope you're looking after Mrs A-B & she's still keeping you well fed :)
PS. Mannsi:
Patrick & I are both in the UK.
We have a saying here: "England and America are two countries separated by a common language" :) The separation is typically by a comma in both cases, though.
PPS. What is the difference between a cat and a comma?
A cat has claws at the end of its paws; a comma has a pause at the end of its clause.
I'll get my coat...
(That's another UK saying).
See you in another 12 months time...
BFN,
fp.
Business Accounts
Answer for Membership
by: patrickabPosted on 2008-06-16 at 04:34:27ID: 21792510
Mannsi,
The date system works on a 24hr clock so 51:22:41 cannot exist unless you create a custom format that is most probably VBA-driven.
By the way what is this:
51,9451388888889
It's not a number and it's not thousands or millions. Did you mean:
51.9451388888889
Patrick