#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Formula Error

Hi,
I'm getting an error message (#NUM!) for the following formula and i'm not
sure why:
=IF(AD31="","",IF(DATEDIF(Z31,AD31,"m")=0,"",DATED IF(Z31,AD31,"m")))

where AD31 has a value of 07-01-05
and Z31 has a value of 97-04-23

This is a formula that i entered into the first row and then dragged the
formula down to apply to the other cells in this column. The formula is
working in most of the other cells.

I aslo got an error message (#VALUE!) for this same formula in a different
row:
=IF(AD74="","",IF(DATEDIF(Z74,AD74,"m")=0,"",DATED IF(Z74,AD74,"m")))

where AD74 is blank
and Z74 is 09-02-04

These two errors occur a couple of times throughout the spreadsheet, while
the rest of the cells with this formula are working fine.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Formula Error

The dates may not be a valid excel date..

Format the date field to mmm-dd-yyyy to see whether it displays what you
intended.

If this post helps click Yes
---------------
Jacob Skaria


"Shannan" wrote:

Hi,
I'm getting an error message (#NUM!) for the following formula and i'm not
sure why:
=IF(AD31="","",IF(DATEDIF(Z31,AD31,"m")=0,"",DATED IF(Z31,AD31,"m")))

where AD31 has a value of 07-01-05
and Z31 has a value of 97-04-23

This is a formula that i entered into the first row and then dragged the
formula down to apply to the other cells in this column. The formula is
working in most of the other cells.

I aslo got an error message (#VALUE!) for this same formula in a different
row:
=IF(AD74="","",IF(DATEDIF(Z74,AD74,"m")=0,"",DATED IF(Z74,AD74,"m")))

where AD74 is blank
and Z74 is 09-02-04

These two errors occur a couple of times throughout the spreadsheet, while
the rest of the cells with this formula are working fine.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Formula Error

Your formulas work ok for me when I use dates as per my regional settings:

07-01-05 = 1/5/2007 (Jan 5 2007)
97-04-23 = 4/23/1997 (Apr 23 1997)

You'll get a #NUM! error if the date in AD31 is before the date in Z31.

You'll get a #VALUE! error if any date is really a TEXT string (that may
look like a date).

--
Biff
Microsoft Excel MVP


"Shannan" wrote in message
...
Hi,
I'm getting an error message (#NUM!) for the following formula and i'm not
sure why:
=IF(AD31="","",IF(DATEDIF(Z31,AD31,"m")=0,"",DATED IF(Z31,AD31,"m")))

where AD31 has a value of 07-01-05
and Z31 has a value of 97-04-23

This is a formula that i entered into the first row and then dragged the
formula down to apply to the other cells in this column. The formula is
working in most of the other cells.

I aslo got an error message (#VALUE!) for this same formula in a different
row:
=IF(AD74="","",IF(DATEDIF(Z74,AD74,"m")=0,"",DATED IF(Z74,AD74,"m")))

where AD74 is blank
and Z74 is 09-02-04

These two errors occur a couple of times throughout the spreadsheet, while
the rest of the cells with this formula are working fine.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Formula Error

No, it can't be a formatting problem because all the other rows that have
this same formula have the dates formatted the same and they're working ok.
There's about six rows that are giving me error messages and the rest of the
3000 or so rows are working fine. :S

"Jacob Skaria" wrote:

The dates may not be a valid excel date..

Format the date field to mmm-dd-yyyy to see whether it displays what you
intended.

If this post helps click Yes
---------------
Jacob Skaria


"Shannan" wrote:

Hi,
I'm getting an error message (#NUM!) for the following formula and i'm not
sure why:
=IF(AD31="","",IF(DATEDIF(Z31,AD31,"m")=0,"",DATED IF(Z31,AD31,"m")))

where AD31 has a value of 07-01-05
and Z31 has a value of 97-04-23

This is a formula that i entered into the first row and then dragged the
formula down to apply to the other cells in this column. The formula is
working in most of the other cells.

I aslo got an error message (#VALUE!) for this same formula in a different
row:
=IF(AD74="","",IF(DATEDIF(Z74,AD74,"m")=0,"",DATED IF(Z74,AD74,"m")))

where AD74 is blank
and Z74 is 09-02-04

These two errors occur a couple of times throughout the spreadsheet, while
the rest of the cells with this formula are working fine.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Formula Error

Hmm.. Have you tried converting the format to mmm-dd-yyyy to see whether
those dates are displayed as what you intend.

If this post helps click Yes
---------------
Jacob Skaria


"Shannan" wrote:

No, it can't be a formatting problem because all the other rows that have
this same formula have the dates formatted the same and they're working ok.
There's about six rows that are giving me error messages and the rest of the
3000 or so rows are working fine. :S

"Jacob Skaria" wrote:

The dates may not be a valid excel date..

Format the date field to mmm-dd-yyyy to see whether it displays what you
intended.

If this post helps click Yes
---------------
Jacob Skaria


"Shannan" wrote:

Hi,
I'm getting an error message (#NUM!) for the following formula and i'm not
sure why:
=IF(AD31="","",IF(DATEDIF(Z31,AD31,"m")=0,"",DATED IF(Z31,AD31,"m")))

where AD31 has a value of 07-01-05
and Z31 has a value of 97-04-23

This is a formula that i entered into the first row and then dragged the
formula down to apply to the other cells in this column. The formula is
working in most of the other cells.

I aslo got an error message (#VALUE!) for this same formula in a different
row:
=IF(AD74="","",IF(DATEDIF(Z74,AD74,"m")=0,"",DATED IF(Z74,AD74,"m")))

where AD74 is blank
and Z74 is 09-02-04

These two errors occur a couple of times throughout the spreadsheet, while
the rest of the cells with this formula are working fine.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Formula Error

Oh! I figured it out. Someone had accidently typed "2997" as the year in the
first column instead of "1997". But thank you because i didn't know that i
could do custom formatting for dates like that, lol.

"Jacob Skaria" wrote:

Hmm.. Have you tried converting the format to mmm-dd-yyyy to see whether
those dates are displayed as what you intend.

If this post helps click Yes
---------------
Jacob Skaria


"Shannan" wrote:

No, it can't be a formatting problem because all the other rows that have
this same formula have the dates formatted the same and they're working ok.
There's about six rows that are giving me error messages and the rest of the
3000 or so rows are working fine. :S

"Jacob Skaria" wrote:

The dates may not be a valid excel date..

Format the date field to mmm-dd-yyyy to see whether it displays what you
intended.

If this post helps click Yes
---------------
Jacob Skaria


"Shannan" wrote:

Hi,
I'm getting an error message (#NUM!) for the following formula and i'm not
sure why:
=IF(AD31="","",IF(DATEDIF(Z31,AD31,"m")=0,"",DATED IF(Z31,AD31,"m")))

where AD31 has a value of 07-01-05
and Z31 has a value of 97-04-23

This is a formula that i entered into the first row and then dragged the
formula down to apply to the other cells in this column. The formula is
working in most of the other cells.

I aslo got an error message (#VALUE!) for this same formula in a different
row:
=IF(AD74="","",IF(DATEDIF(Z74,AD74,"m")=0,"",DATED IF(Z74,AD74,"m")))

where AD74 is blank
and Z74 is 09-02-04

These two errors occur a couple of times throughout the spreadsheet, while
the rest of the cells with this formula are working fine.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Formula Error

Oh, but that was only the problem for the one that was giving me a "#NUM!"
error. The one that was giving me "VALUE!" still isn't working.

"Shannan" wrote:

Oh! I figured it out. Someone had accidently typed "2997" as the year in the
first column instead of "1997". But thank you because i didn't know that i
could do custom formatting for dates like that, lol.

"Jacob Skaria" wrote:

Hmm.. Have you tried converting the format to mmm-dd-yyyy to see whether
those dates are displayed as what you intend.

If this post helps click Yes
---------------
Jacob Skaria


"Shannan" wrote:

No, it can't be a formatting problem because all the other rows that have
this same formula have the dates formatted the same and they're working ok.
There's about six rows that are giving me error messages and the rest of the
3000 or so rows are working fine. :S

"Jacob Skaria" wrote:

The dates may not be a valid excel date..

Format the date field to mmm-dd-yyyy to see whether it displays what you
intended.

If this post helps click Yes
---------------
Jacob Skaria


"Shannan" wrote:

Hi,
I'm getting an error message (#NUM!) for the following formula and i'm not
sure why:
=IF(AD31="","",IF(DATEDIF(Z31,AD31,"m")=0,"",DATED IF(Z31,AD31,"m")))

where AD31 has a value of 07-01-05
and Z31 has a value of 97-04-23

This is a formula that i entered into the first row and then dragged the
formula down to apply to the other cells in this column. The formula is
working in most of the other cells.

I aslo got an error message (#VALUE!) for this same formula in a different
row:
=IF(AD74="","",IF(DATEDIF(Z74,AD74,"m")=0,"",DATED IF(Z74,AD74,"m")))

where AD74 is blank
and Z74 is 09-02-04

These two errors occur a couple of times throughout the spreadsheet, while
the rest of the cells with this formula are working fine.

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
Formula error Jithu Excel Discussion (Misc queries) 1 June 22nd 07 03:55 PM
Formula Error El Bee Excel Worksheet Functions 5 December 10th 06 05:45 AM
How do I replace "#N/A" error, to continue my formula w/o error? Ali Khan Excel Worksheet Functions 2 February 20th 06 03:49 PM
Formula error - IF(AND... Pasmatos Excel Discussion (Misc queries) 3 November 30th 05 12:55 AM
Formula error... Jambruins Excel Discussion (Misc queries) 2 February 24th 05 09:57 PM


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