Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default how can i calculate the number of days passed between 2 dates ente

hi all, happy 2009! does someone know the option of calculating the amount of
days between 2 entered dates, so i can claculate the average electricity use?
many thnx in advance. jozef carpenter (so not yet :-) an excel wizard)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default how can i calculate the number of days passed between 2 dates ente

It is simply subtracting the two days but the resulting cell with the formula
must be change to Number format instead of a date.

A1 = 1/1/2009
A2 = 1/5/2009
A3 = A2 - A1

"jozef carpenter" wrote:

hi all, happy 2009! does someone know the option of calculating the amount of
days between 2 entered dates, so i can claculate the average electricity use?
many thnx in advance. jozef carpenter (so not yet :-) an excel wizard)

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default number of days passed between 2 dates

HI, many thnx! it worked, stupid that i did not recognise this issue.

"Joel" wrote:

It is simply subtracting the two days but the resulting cell with the formula
must be change to Number format instead of a date.
A1 = 1/1/2009
A2 = 1/5/2009
A3 = A2 - A1


"jozef carpenter" wrote:
hi all, happy 2009! does someone know the option of calculating the amount of
days between 2 entered dates, so i can claculate the average electricity use?
many thnx in advance. jozef carpenter (so not yet :-) an excel wizard)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default how can i calculate the number of days passed between 2 datesente

On Jan 3, 2:34*pm, jozef carpenter
wrote:
hi all, happy 2009! does someone know the option of calculating the amount of
days between 2 entered dates, so i can claculate the average electricity use?
many thnx in advance. jozef carpenter (so not yet :-) an excel wizard)


This has worked for me in the past and can be used for number of days,
months, etc. between two dates:
=datedif(A1, B1, "d") where cells A1 and B1 contain the two dates.
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default how can i calculate the number of days passed between 2 dates

thnx for effort anthony, but if i do copy paste (so no spelling errors) it
unfortunately does not work... hwat is the "d"? and should they range not
have a colon instead of comma? and what does datedif actually do? they other
given solution did do the job, so i have a solution, but this intrigues me
now..... maybe u can clarify it a litlle bit more? im from the netherlands so
not a native english speaker (maybe this plays a role in misinterpreting what
you say...?). thnx again and looking 4ward to hear more. jozef

"Anthony" wrote:
This has worked for me in the past and can be used for number of days,
months, etc. between two dates:
=datedif(A1, B1, "d") where cells A1 and B1 contain the two dates.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default how can i calculate the number of days passed between 2 dates

<im from the netherlands

Then you should indeed use semicolons (;) instead of commas.

All about the DATEDIF function:

http://www.cpearson.com/excel/datedif.aspx

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"jozef carpenter" wrote in
message ...
thnx for effort anthony, but if i do copy paste (so no spelling errors) it
unfortunately does not work... hwat is the "d"? and should they range not
have a colon instead of comma? and what does datedif actually do? they
other
given solution did do the job, so i have a solution, but this intrigues me
now..... maybe u can clarify it a litlle bit more? im from the netherlands
so
not a native english speaker (maybe this plays a role in misinterpreting
what
you say...?). thnx again and looking 4ward to hear more. jozef

"Anthony" wrote:
This has worked for me in the past and can be used for number of days,
months, etc. between two dates:
=datedif(A1, B1, "d") where cells A1 and B1 contain the two dates.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default how can i calculate the number of days passed between 2 dates ente

For days, you don't need DATEDIF.
=B1-A1 will do, if you format the result as Number or General.
DATEDIF makes sense if you are looking at months and/or years.
--
David Biddulph

Anthony wrote:
On Jan 3, 2:34 pm, jozef carpenter
wrote:
hi all, happy 2009! does someone know the option of calculating the
amount of days between 2 entered dates, so i can claculate the
average electricity use? many thnx in advance. jozef carpenter (so
not yet :-) an excel wizard)


This has worked for me in the past and can be used for number of days,
months, etc. between two dates:
=datedif(A1, B1, "d") where cells A1 and B1 contain the two dates.



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
How can I calculate the number of business days between two dates Anonymous New Users to Excel 3 June 18th 08 03:30 PM
calculate number of days btw dates Nelson Excel Worksheet Functions 2 March 2nd 06 01:02 AM
Formula to calculate number of days between Dates themax16 Excel Worksheet Functions 2 October 21st 05 01:38 PM
Calculate number of days in a column of dates Barbara Excel Discussion (Misc queries) 3 May 25th 05 04:21 PM
Calculate number of days in a column of dates Barbara Excel Discussion (Misc queries) 8 May 25th 05 02:48 PM


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