Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TAS-LGS
 
Posts: n/a
Default DATEDIF Simple request


I want to enter regular entries in a spread sheet (of meter readings to
track utility cost) and in one column I want to determine the cost per
day. I therefore enter the date in column A (set as "Date" field),
followed by such items as meter reading, unit rate, etc. In one column
I want to subtract for example last reading date from prior reading
date; this value to divide the total period cost to determine the daily
cost.

It seems that there is no way I can get a result using DATEDIF, even
copying any samples expressed by various bulletin boards.

In desperation I have used the manual method of converting the date
value to it's numerical component and doing a simple subtraction to get
the desired result.

Surely, DATEDIF should allow me to leave the (date) field in date
format so that one can readily see the real date without having to do a
further conversion.

Am I expecting too much, or missing something?

Thanks for reading this and providing help.

TAS-LGS


--
TAS-LGS
------------------------------------------------------------------------
TAS-LGS's Profile: http://www.excelforum.com/member.php...o&userid=28358
View this thread: http://www.excelforum.com/showthread...hreadid=479408

  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default DATEDIF Simple request

On Wed, 26 Oct 2005 06:19:52 -0500, TAS-LGS
wrote:


I want to enter regular entries in a spread sheet (of meter readings to
track utility cost) and in one column I want to determine the cost per
day. I therefore enter the date in column A (set as "Date" field),
followed by such items as meter reading, unit rate, etc. In one column
I want to subtract for example last reading date from prior reading
date; this value to divide the total period cost to determine the daily
cost.

It seems that there is no way I can get a result using DATEDIF, even
copying any samples expressed by various bulletin boards.

In desperation I have used the manual method of converting the date
value to it's numerical component and doing a simple subtraction to get
the desired result.

Surely, DATEDIF should allow me to leave the (date) field in date
format so that one can readily see the real date without having to do a
further conversion.

Am I expecting too much, or missing something?

Thanks for reading this and providing help.

TAS-LGS


You're missing something, but hard to tell what since you don't post your
formulas nor the results of what you tried.

However, if you require a result in days, there is no need to use DATEDIF.

Excel stores dates as serial numbers starting with 1/1/1900 (or 1904) so you
merely need to subtract =current_date - previous_date. Be sure to format the
result as General or as Number.

If you get a VALUE error, then one or both of your dates are TEXT and not
dates.


--ron
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
DateDif Average? Damn DateDif UTCHELP Excel Worksheet Functions 14 November 17th 05 10:30 AM
Help with what should be a simple formula B Millar via OfficeKB.com Excel Worksheet Functions 2 June 16th 05 04:18 PM
Why do I get a #Name error when I use the DateDif function? PhilS Excel Worksheet Functions 9 April 5th 05 04:51 PM
How to Create an Excel Macro to send a meeting request. DM HD Excel Discussion (Misc queries) 2 February 28th 05 02:39 PM
Simple But Stumped Brian Keanie Excel Discussion (Misc queries) 3 February 5th 05 02:56 AM


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