Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting integer to separate fields for hours and minutes 1

Status
Not open for further replies.

m3gd04

Technical User
Sep 17, 2004
17
0
0
US
Simple question...

I would like to convert a field showing minutes into 2 separate fields, one for hours and one for minutes...

For example, If I have a field that shows 80 minute, I'd like for the end result to show 1 hour in one field and and 20 minutes in another.

Any help would be appreciated.




 
Is this a Crystal Report or WebI or DeskI? Each one would work a little different, but two formulas would need to be created. One for the minute calculation, and one for the hour calculation.

I hope this helps.
 
oops forgot to mention that this was Business Objects 5.5

I can calculate the hour one, but I can't seem to get the minutes to reflect the way I want to.

I appreciate the advice....

 
All solved...

Thanks for pointing me in right direction Kray.
 

OriginalMinutes = 80

Hours = INT(OriginalMinutes/60)

Minutes = OriginalMinutes - (Hours * 60)

I think I learned that in 5[sup]th[/sup] grade or maybe it was a TV show.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top