#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 138
Default Date Value Error

Hi,

I am trying to calculate the number of days between 2 dates, I am sure in
the past I have simply just did a formula to say date in cell 1 - date in
cell 2, however I get a value error. The dates are formatted i nthe following
way 18/11/2009 for example and I just need to calculate the number of days
between 2 dates.

Many thanks
Paula

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Date Value Error

Hi Paula,
check if you don't have any spaces, simple formula should work =B1-A1

"Paula" wrote:

Hi,

I am trying to calculate the number of days between 2 dates, I am sure in
the past I have simply just did a formula to say date in cell 1 - date in
cell 2, however I get a value error. The dates are formatted i nthe following
way 18/11/2009 for example and I just need to calculate the number of days
between 2 dates.

Many thanks
Paula

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 138
Default Date Value Error

Hi Eduardo

When I drag my formula it works sometimes and not others, how can I find out
what the error is? I don't have any spaces?

Regards

Paula


"Eduardo" wrote:

Hi Paula,
check if you don't have any spaces, simple formula should work =B1-A1

"Paula" wrote:

Hi,

I am trying to calculate the number of days between 2 dates, I am sure in
the past I have simply just did a formula to say date in cell 1 - date in
cell 2, however I get a value error. The dates are formatted i nthe following
way 18/11/2009 for example and I just need to calculate the number of days
between 2 dates.

Many thanks
Paula

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Date Value Error

Hi,
let' say your dates are in column A and B, in another two columns enter

=trim(A1)
=trim(B1)

that will ride off any blank space

"Paula" wrote:

Hi Eduardo

When I drag my formula it works sometimes and not others, how can I find out
what the error is? I don't have any spaces?

Regards

Paula


"Eduardo" wrote:

Hi Paula,
check if you don't have any spaces, simple formula should work =B1-A1

"Paula" wrote:

Hi,

I am trying to calculate the number of days between 2 dates, I am sure in
the past I have simply just did a formula to say date in cell 1 - date in
cell 2, however I get a value error. The dates are formatted i nthe following
way 18/11/2009 for example and I just need to calculate the number of days
between 2 dates.

Many thanks
Paula

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Date Value Error

sorry I press send before finishing
then copy this two columns as values on top of your data

"Paula" wrote:

Hi Eduardo

When I drag my formula it works sometimes and not others, how can I find out
what the error is? I don't have any spaces?

Regards

Paula


"Eduardo" wrote:

Hi Paula,
check if you don't have any spaces, simple formula should work =B1-A1

"Paula" wrote:

Hi,

I am trying to calculate the number of days between 2 dates, I am sure in
the past I have simply just did a formula to say date in cell 1 - date in
cell 2, however I get a value error. The dates are formatted i nthe following
way 18/11/2009 for example and I just need to calculate the number of days
between 2 dates.

Many thanks
Paula



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,071
Default Date Value Error

Paula
Simply subtracting one date from the other date should do it. But that
doesn't work for you. Perhaps one (or both) date is not a date but is text.
Do this. Select each date cell, in turn, and format the cell as "General".
If it's a date (which is really a number), you should get a 5-digit number.
If you get the same "date", that entry is text. In that case, clear the
cell, format it as a date, and re-enter the date. Post back if you need
more. HTH Otto

"Paula" wrote in message
...
Hi,

I am trying to calculate the number of days between 2 dates, I am sure in
the past I have simply just did a formula to say date in cell 1 - date in
cell 2, however I get a value error. The dates are formatted i nthe
following
way 18/11/2009 for example and I just need to calculate the number of days
between 2 dates.

Many thanks
Paula

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Date Value Error

Try entering the dates as m/d/y rather than d/m/y

Date entry depends upon your Regional Settings


Gord Dibben MS Excel MVP

On Tue, 9 Feb 2010 07:46:04 -0800, Paula
wrote:

Hi,

I am trying to calculate the number of days between 2 dates, I am sure in
the past I have simply just did a formula to say date in cell 1 - date in
cell 2, however I get a value error. The dates are formatted i nthe following
way 18/11/2009 for example and I just need to calculate the number of days
between 2 dates.

Many thanks
Paula


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
Date-error Format Mia Setting up and Configuration of Excel 7 July 1st 08 07:10 AM
date error hitesh New Users to Excel 1 September 4th 07 03:08 PM
Error calculating date Attie Excel Worksheet Functions 1 January 25th 07 11:37 AM
date error hitesh via OfficeKB.com Excel Discussion (Misc queries) 1 October 20th 06 02:34 PM
Date Error - HELP! Mikey Moe Excel Discussion (Misc queries) 1 February 6th 05 02:43 AM


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