Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rweasel6
 
Posts: n/a
Default Rounding Question


Heres the short end of what Im trying to do. I am trying to subtract
two dates and return the number of months between the two dates. I can
get this part. The catch here is that I want the number of months to
come back as either whole months or half months. So 1/1/05-2/1/05 = 1
month and 1/1/05-2/15/05 = 1.5 months. My problem is that when I run
the calc I get numbers like 1.64 and using a round will give me 1.6
whereas I would want this number to come back as 1.5.
Any ideas?


--
Rweasel6
------------------------------------------------------------------------
Rweasel6's Profile: http://www.excelforum.com/member.php...o&userid=23251
View this thread: http://www.excelforum.com/showthread...hreadid=379078

  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=floor(1.64,0.5)
will reduce 1.64 to 1.5
so you could enclose your formula as

=floor(your formula,0.5)

also take a look at function CEILING to round up your values to nearest 0.5


"Rweasel6" wrote in
message ...

Heres the short end of what Im trying to do. I am trying to subtract
two dates and return the number of months between the two dates. I can
get this part. The catch here is that I want the number of months to
come back as either whole months or half months. So 1/1/05-2/1/05 = 1
month and 1/1/05-2/15/05 = 1.5 months. My problem is that when I run
the calc I get numbers like 1.64 and using a round will give me 1.6
whereas I would want this number to come back as 1.5.
Any ideas?


--
Rweasel6
------------------------------------------------------------------------
Rweasel6's Profile:
http://www.excelforum.com/member.php...o&userid=23251
View this thread: http://www.excelforum.com/showthread...hreadid=379078



  #3   Report Post  
Rweasel6
 
Posts: n/a
Default


works great thanks!!!


--
Rweasel6
------------------------------------------------------------------------
Rweasel6's Profile: http://www.excelforum.com/member.php...o&userid=23251
View this thread: http://www.excelforum.com/showthread...hreadid=379078

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
rounding time question lbfries Excel Worksheet Functions 3 April 6th 05 08:23 PM
Rounding Question PastorHankWi Excel Worksheet Functions 3 March 31st 05 01:09 AM
rounding question Amie Excel Discussion (Misc queries) 2 January 21st 05 04:44 PM
Banker's Rounding - need help! Somecallmejosh Excel Discussion (Misc queries) 3 January 20th 05 09:53 PM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM


All times are GMT +1. The time now is 10:45 AM.

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

About Us

"It's about Microsoft Excel"