Computing.Net > Forums > Office Software > Excel Formula Help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel Formula Help

Reply to Message Icon

Name: Aynz
Date: April 15, 2004 at 01:39:41 Pacific
OS: windows xp
CPU/Ram: 1.5 Gb Athlon
Comment:

Hi All

I need some help with a certain Excel formula. Hopefully my explanation is clear enough.

Basically I have 3 columns - Days, Hours and Minutes. Currently I put in data for each column and it is added up individually so for example after entering the data I could end up with a total of 3 days 29 hours and 76 mins.

I would like to be able to convert the mins into hours and hours into days automatically, so when entering the same data it gives me the following - 4 days, 6 hours and 16 mins.

Can anyone help me with a formula that can do this?



Sponsored Link
Ads by Google

Response Number 1
Name: angrymen2001
Date: April 15, 2004 at 03:34:20 Pacific
Reply:

You explained pretty well, but just to clarify.... I'm guessing you want to put in the minutes the full amount? Like 546 minutes and then have a formula calculate how many days, hours that was with remaining minutes?

When all else fails beat the $%!* out of it!!!


0

Response Number 2
Name: Aynz
Date: April 15, 2004 at 08:16:33 Pacific
Reply:

Yes thats right, and the same with the hours and days as well.


0

Response Number 3
Name: angrymen2001
Date: April 15, 2004 at 11:47:12 Pacific
Reply:

I've been trying, and haven't figured it out yet. If I do, I'll either email or repost for you. Please do the same if you get it. As of yet I don't see how it's possible (but I'm having a lot of fun trying)

When all else fails, beat the %*#$! out of it!!!


0

Response Number 4
Name: daithe
Date: April 15, 2004 at 14:39:55 Pacific
Reply:

I did this through VBA

basically saying in 121 mins divide by minutes in a day if minus go to hours etc:

Here is the code. I wrote the program on excel and can mail you if you like:

Sub Macro1()

'days
asak = Range("b5")
For askas = 1 To 10000000
asak = asak - 1440
If asak - 1440 < 0 Then GoTo esca
Next askas
esca:
Range("c5") = askas
'hours
If asak = 0 Then Exit Sub
For askas = 1 To 1000000
asak = asak - 60
If asak - 60 < 0 Then GoTo esca2
Next askas
esca2:
Range("d5") = askas
If asak = 0 Then Exit Sub
Range("e5") = asak
'mins
End Sub
-


0

Response Number 5
Name: wizard-fred
Date: April 16, 2004 at 11:30:43 Pacific
Reply:

I think you are trying too hard.

Cell Formulas

Days = TDay+INT((THr+INT(TMin/60))/24)
Hours = (THr+INT(TMin/60))-INT((THr+INT(TMin/60))/24)*24
Minutes = TMin-(INT(TMin/60)*60)

where
Tday = Total Days
THr = Total Hours
Tmin = Total Minutes



0

Related Posts

See More



Response Number 6
Name: angrymen2001
Date: April 17, 2004 at 13:39:40 Pacific
Reply:

And I thought I did good in excel. You guys (and I'm sure a lot more) make me feel like an ameteur.

When all else fails beat the $%!* out of it!!!


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel Formula Help

excel formula help www.computing.net/answers/office/excel-formula-help/3999.html

Excel Formula, need help! www.computing.net/answers/office/excel-formula-need-help/6717.html

Excel formula help/question www.computing.net/answers/office/excel-formula-helpquestion/4782.html