PC Review


Reply
Thread Tools Rate Thread

Decimal days

 
 
cliffbellis766@
Guest
Posts: n/a
 
      2nd Jan 2006

Hi
Newish to Excel, so apologies if this a really stupid post.
Doing an annual leave calculator which gives as one its results th
decimal figure of, for example, 33.5 days, i.e. thirty three and a hal
days.
How can I convert this to read 33 days and 12 hours? Have tried al
sorts to no avail.
Many thanks
Clif

--
cliffbellis766
-----------------------------------------------------------------------
cliffbellis766@'s Profile: http://www.excelforum.com/member.php...fo&userid=2931
View this thread: http://www.excelforum.com/showthread.php?threadid=49731

 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      2nd Jan 2006
"cliffbellis766@" wrote:
> .. Doing an annual leave calculator which gives as one its results the
> decimal figure of, for example, 33.5 days,
> i.e. thirty three and a half days.
> How can I convert this to read 33 days and 12 hours?


One way which might suffice ..

Assuming the results (33.5, etc) are in A2 down

Put in B2:
=IF(A2=0,"",IF(A2=INT(A2),INT(A2)&" days",INT(A2)&" days and
"&(A2-INT(A2))*24&" hours"))

Copy down

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      2nd Jan 2006
Maybe try this slightly revised formula instead:

Put in B2:
=IF(A2=0,"",IF(A2=INT(A2),INT(A2)&" days",INT(A2)&" days and
"&TEXT((A2-INT(A2))*24,"00")&" hours"))

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


 
Reply With Quote
 
Roger Govier
Guest
Posts: n/a
 
      2nd Jan 2006
Hi Cliff

One way, with days in A1

=INT(A1)&" days "&MOD((A1*24),24)&" hours"

--
Regards

Roger Govier



cliffbellis766@
<(E-Mail Removed)> wrote:
> Hi
> Newish to Excel, so apologies if this a really stupid post.
> Doing an annual leave calculator which gives as one its results the
> decimal figure of, for example, 33.5 days, i.e. thirty three and a
> half days.
> How can I convert this to read 33 days and 12 hours? Have tried all
> sorts to no avail.
> Many thanks
> Cliff
>
>
> --
> cliffbellis766@
> ------------------------------------------------------------------------
> cliffbellis766@'s Profile:
> http://www.excelforum.com/member.php...o&userid=29310 View
> this thread: http://www.excelforum.com/showthread...hreadid=497313



 
Reply With Quote
 
cliffbellis766@
Guest
Posts: n/a
 
      2nd Jan 2006

Hello all
Many, many thanks; now got it working. No wonder my brain cell wa
having problems working this one out.
No more staff claiming extra minutes of undeserved leave! Hah! that'l
teach 'em.
Really grateful, although staff are preparing scaffold for me.
Clif

--
cliffbellis766
-----------------------------------------------------------------------
cliffbellis766@'s Profile: http://www.excelforum.com/member.php...fo&userid=2931
View this thread: http://www.excelforum.com/showthread.php?threadid=49731

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert decimal days to hours and minutes Christopher Microsoft Excel Worksheet Functions 2 25th Sep 2009 06:39 AM
Convert days in decimal to days:hours:minutes =?Utf-8?B?VG9kZCBGLg==?= Microsoft Excel Worksheet Functions 7 16th Mar 2006 07:17 PM
Convert decimal days to Days,hours, minutes =?Utf-8?B?VG9kZCBGLg==?= Microsoft Excel Worksheet Functions 3 14th Mar 2006 03:38 PM
Re: converting days to decimal point to year John Vinson Microsoft Access Database Table Design 3 22nd Nov 2003 12:33 PM
Decimal Days tsumanii Microsoft Excel Worksheet Functions 3 16th Nov 2003 06:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:29 PM.