Need to calcualte secounds to the next 1/2 minute

  • Thread starter Thread starter Paul D
  • Start date Start date
P

Paul D

I have a Hold Time field Z1 = 4 (four Secounds)

I need to round it to .5 minutes
 
Hi
do you enter the seconds as Excel time or a numeric value? If you enter
them as numeric values use the following formula
=ROUNDUP((Z1/60)*2,0)/2
 
Never understood why people are using roundup when ceiling is the more
effective

=CEILING(Z1/60,0.5)

--
For everyone's benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom
 
One way:

To return the value in seconds:

=CEILING(Z1,30) ==> 30

To return the value in minutes:

=CEILING(Z1/60,0.5) ==> 0.5

If you want the value as a time:

=TIME(0,0,CEILING(Z1,30)) ==> 00:00:30

when formatted as hh:mm:ss
 
Hi Peo
I personally always forget that the function CEILING exists :-)
 
I was just joking, although it is less calculations and easier to use IMHO

--
For everyone's benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom
 
Hi
totally agree with you :-)
but getting older it's getting difficult to rember new things <vbg>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top