Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ltat42a
 
Posts: n/a
Default rounddown with date calc?


I'm trying to determine the number of years someone has on the job.
I'm using this formula - =DATEDIF(B7,TODAY(),"m")/12.

This gives me a result of 13.92, how can I round down this calculation
to 13.0?
If I remove the decimals...it rounds up to 14 - which is an error.

Thanx.


--
Ltat42a
------------------------------------------------------------------------
Ltat42a's Profile: http://www.excelforum.com/member.php...o&userid=24735
View this thread: http://www.excelforum.com/showthread...hreadid=498378

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bart Snel
 
Posts: n/a
Default rounddown with date calc?

Ltat42a schreef:
I'm trying to determine the number of years someone has on the job.
I'm using this formula - =DATEDIF(B7,TODAY(),"m")/12.

This gives me a result of 13.92, how can I round down this calculation
to 13.0?
If I remove the decimals...it rounds up to 14 - which is an error.

Thanx.


use ROUNDDOWN(cell;number of digits)

Bart Snel
  #3   Report Post  
Posted to microsoft.public.excel.misc
RagDyer
 
Posts: n/a
Default rounddown with date calc?

Try this:

=FLOOR(DATEDIF(B7,TODAY(),"m")/12,1)
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"Ltat42a" wrote in
message ...

I'm trying to determine the number of years someone has on the job.
I'm using this formula - =DATEDIF(B7,TODAY(),"m")/12.

This gives me a result of 13.92, how can I round down this calculation
to 13.0?
If I remove the decimals...it rounds up to 14 - which is an error.

Thanx.


--
Ltat42a
------------------------------------------------------------------------
Ltat42a's Profile:

http://www.excelforum.com/member.php...o&userid=24735
View this thread: http://www.excelforum.com/showthread...hreadid=498378


  #4   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default rounddown with date calc?

Why not using?

=DATEDIF(B7,TODAY(),"y")

for years

otherwise

=FLOOR(DATEDIF(B7,TODAY(),"m")/12,1)


--

Regards,

Peo Sjoblom



"Ltat42a" wrote in
message ...

I'm trying to determine the number of years someone has on the job.
I'm using this formula - =DATEDIF(B7,TODAY(),"m")/12.

This gives me a result of 13.92, how can I round down this calculation
to 13.0?
If I remove the decimals...it rounds up to 14 - which is an error.

Thanx.


--
Ltat42a
------------------------------------------------------------------------
Ltat42a's Profile:

http://www.excelforum.com/member.php...o&userid=24735
View this thread: http://www.excelforum.com/showthread...hreadid=498378



  #5   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default rounddown with date calc?

On Thu, 5 Jan 2006 11:55:09 -0600, Ltat42a
wrote:


I'm trying to determine the number of years someone has on the job.
I'm using this formula - =DATEDIF(B7,TODAY(),"m")/12.

This gives me a result of 13.92, how can I round down this calculation
to 13.0?
If I remove the decimals...it rounds up to 14 - which is an error.

Thanx.


How about

=DATEDIF(B7,TODAY(),"y")


--ron


  #6   Report Post  
Posted to microsoft.public.excel.misc
Ltat42a
 
Posts: n/a
Default rounddown with date calc?


I used both of these -
=DATEDIF(E5,TODAY(),"y")
and
=FLOOR(DATEDIF(B5,TODAY(),"m")/12,1)

They both work good. Thanx All!


Jim


--
Ltat42a
------------------------------------------------------------------------
Ltat42a's Profile: http://www.excelforum.com/member.php...o&userid=24735
View this thread: http://www.excelforum.com/showthread...hreadid=498378

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
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
Calc End Date OCD Cindy Excel Worksheet Functions 2 September 18th 05 09:52 PM
search for latest date Sue Excel Worksheet Functions 2 August 2nd 05 11:09 PM
Date Calc. HELP Jerry Kinder New Users to Excel 7 May 20th 05 05:06 AM
calc constant date from variable date & return with ability to rn. SusieQ'sQuest Excel Worksheet Functions 1 November 9th 04 08:51 PM


All times are GMT +1. The time now is 08:48 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"