Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
maintchief
 
Posts: n/a
Default how do i operate on the decimal portion of a number

I am working on making a worktime calculator to ensure that i know what my
employer should be entering. We clock in/out using 100ths of an hour
(x.00-x.99).
If a day's time (the fraction portion) falls .12 above a quarter hour (.00,
..25, .50, .75) it is rounded down to the lower quarter hour. If it is
..13-.24 above a quarter hour it is rounded up to the next higher quarter
hour. I am having problems figuring out how to operate on the decimal
portion and get the proper result (retaining the hour portion (or increasing
it by 1) and the new quarter hour portion.

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default how do i operate on the decimal portion of a number

One way:

=ROUND(A1*4,0)/4

In article ,
"maintchief" wrote:

I am working on making a worktime calculator to ensure that i know what my
employer should be entering. We clock in/out using 100ths of an hour
(x.00-x.99).
If a day's time (the fraction portion) falls .12 above a quarter hour (.00,
.25, .50, .75) it is rounded down to the lower quarter hour. If it is
.13-.24 above a quarter hour it is rounded up to the next higher quarter
hour. I am having problems figuring out how to operate on the decimal
portion and get the proper result (retaining the hour portion (or increasing
it by 1) and the new quarter hour portion.

  #3   Report Post  
maintchief
 
Posts: n/a
Default how do i operate on the decimal portion of a number

You folks are amazing. Thanks a lot.
One further question: how do I access the referenced article?


"JE McGimpsey" wrote:

One way:

=ROUND(A1*4,0)/4

In article ,
"maintchief" wrote:

I am working on making a worktime calculator to ensure that i know what my
employer should be entering. We clock in/out using 100ths of an hour
(x.00-x.99).
If a day's time (the fraction portion) falls .12 above a quarter hour (.00,
.25, .50, .75) it is rounded down to the lower quarter hour. If it is
.13-.24 above a quarter hour it is rounded up to the next higher quarter
hour. I am having problems figuring out how to operate on the decimal
portion and get the proper result (retaining the hour portion (or increasing
it by 1) and the new quarter hour portion.


  #4   Report Post  
George Nicholson
 
Posts: n/a
Default how do i operate on the decimal portion of a number

In article ,
"maintchief" wrote:


The "article" in question is your original post.

HTH,
--
George Nicholson

Remove 'Junk' from return address.


"maintchief" wrote in message
...
You folks are amazing. Thanks a lot.
One further question: how do I access the referenced article?


"JE McGimpsey" wrote:

One way:

=ROUND(A1*4,0)/4

In article ,
"maintchief" wrote:

I am working on making a worktime calculator to ensure that i know what
my
employer should be entering. We clock in/out using 100ths of an hour
(x.00-x.99).
If a day's time (the fraction portion) falls .12 above a quarter hour
(.00,
.25, .50, .75) it is rounded down to the lower quarter hour. If it is
.13-.24 above a quarter hour it is rounded up to the next higher
quarter
hour. I am having problems figuring out how to operate on the decimal
portion and get the proper result (retaining the hour portion (or
increasing
it by 1) and the new quarter hour portion.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Rational exansion of a decimal number Leo Excel Worksheet Functions 2 September 16th 05 05:15 PM
converting number string to number with decimal rortiz Excel Worksheet Functions 2 September 15th 05 08:34 PM
Need number of Saturdays and number of Sundays between 2 dates Class316 Excel Worksheet Functions 1 June 10th 05 02:47 AM
How do I change the number of decimal places displayed in Excel Dan Excel Discussion (Misc queries) 1 February 23rd 05 10:31 PM


All times are GMT +1. The time now is 12:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"