Prev Previous Post   Next Post Next
  #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
 
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 11:04 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"