#1   Report Post  
LWhite
 
Posts: n/a
Default datedif

Hello,

I am working on Excel 2003 in an XP sp2 environment.

I have a date in cell C7 and C6. I want to get the
difference between them to use to pro-rate vacation time
accrued.

I have the Norman Harker Function list and was trying to
use datedif. It has the function listed as

=DATEDIF(start_date,end_date,unit)

with units as

"y" = years; "m" = months; "d" = days; "md" = days
ignoring months and years; "ym" = complete months after
deducting years; "yd" = days after deducting complete
years. (Note: " " are required).

I tried this as

=DATEDIF($C$7,$C$6,"d")
=DATEDIF(C7,C6,"d")
=DATEDIF(DATE(YEAR(C7),MONTH(C7),DAY(C7)),DATE(YEA R
(C6),MONTH(C6),DAY(C6)),"d")

I still receive #NUM! as the answer. Does anyone know why?

LWhite
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Probably because your date in C7 is earlier than your date in C6. The
start_date has to be earlier than the end_date.

In article ,
"LWhite" wrote:

I still receive #NUM! as the answer. Does anyone know why?

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
The 'DATEDIF' Function is not listed on my Excel program. UOF Excel Worksheet Functions 7 January 5th 05 09:29 AM
Does Excel 2000 have a 'datedif' function to calculate the number. Kaddy Excel Worksheet Functions 7 December 11th 04 08:53 PM


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