Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Kevin B
 
Posts: n/a
Default rounding a calculation down to the nearest 0.5 - how?

The following function might work for you:


=IF(MOD(A1,1)=0.5,INT(A1)+0.5,A1)

The MOD function divides the value in a1 by 1 and returns the remainder, if
the remainder is = .5, it adds .5 to the integer value in A1, otherwise it
returns A1
--
Kevin Backmann


"Suza" wrote:

need to calculate holidays based on no of weeks worked x entitlement =
ROUNDED DOWN TO NEAREST 0.5 DAY

Able to round down but can't understand the 1/2 day

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
What is the formula for rounding a dollar amount to the nearest ni JeriSys New Users to Excel 5 December 22nd 05 06:54 PM
rounding to nearest hundred dollar in Excel Diane New Users to Excel 7 October 14th 05 04:25 PM
Rounding numbers to the nearest 5 or 0 Fieldmedic Excel Worksheet Functions 3 July 17th 05 06:51 AM
Rounding up to the nearest nickel jhangas Excel Discussion (Misc queries) 3 May 28th 05 12:41 AM
Rounding to nearest integer pattyh Excel Worksheet Functions 3 April 1st 05 08:02 PM


All times are GMT +1. The time now is 04:34 AM.

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"