#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gos-C
 
Posts: n/a
Default Date Function


Hi,

I have *=DATE(2006,1,1)* in cell B5 (with custom format mmm yyyy) and
entered *=DATE(YEAR(B5),MONTH(B5),1)* in cell A7 (with custom format
d). Then I entered
*=IF(DATE(YEAR(B5),MONTH(B5),DAY(A7)+1)DATE(YEAR( B5),MONTH(B5)+1,0),"",DATE(YEAR(B5),MONTH(B5),DAY( A7)+1))*
in cell A8 (with custom format d),which I want to copy down the next
twenty-nine cells (also with custom format d), but it is giving the
error #NUM! What have I done wrong?

Thanks,
Gos-C


--
Gos-C


------------------------------------------------------------------------
Gos-C's Profile: http://www.excelforum.com/member.php...o&userid=14518
View this thread: http://www.excelforum.com/showthread...hreadid=507893

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default Date Function

You don't mention what is in B6, but since you are using relative reference
for B5, if B6 were a negative number, you could get a #num error when you
copy down. You probably want to make B6 absolute ($B$6).
--
Kevin Vaughn


"Gos-C" wrote:


Hi,

I have *=DATE(2006,1,1)* in cell B5 (with custom format mmm yyyy) and
entered *=DATE(YEAR(B5),MONTH(B5),1)* in cell A7 (with custom format
d). Then I entered
*=IF(DATE(YEAR(B5),MONTH(B5),DAY(A7)+1)DATE(YEAR( B5),MONTH(B5)+1,0),"",DATE(YEAR(B5),MONTH(B5),DAY( A7)+1))*
in cell A8 (with custom format d),which I want to copy down the next
twenty-nine cells (also with custom format d), but it is giving the
error #NUM! What have I done wrong?

Thanks,
Gos-C


--
Gos-C


------------------------------------------------------------------------
Gos-C's Profile: http://www.excelforum.com/member.php...o&userid=14518
View this thread: http://www.excelforum.com/showthread...hreadid=507893


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gos-C
 
Posts: n/a
Default Date Function


Thanks, Kevin. The problem was not related to relative cell reference
(even though I had to make cell B5 absolute when copying the formula
down). Cell B6 had Page 1. I used the same formula on a new sheet and
everything worked.

Gos-C


--
Gos-C


------------------------------------------------------------------------
Gos-C's Profile: http://www.excelforum.com/member.php...o&userid=14518
View this thread: http://www.excelforum.com/showthread...hreadid=507893

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default Date Function

Glad you got it working.
--
Kevin Vaughn


"Gos-C" wrote:


Thanks, Kevin. The problem was not related to relative cell reference
(even though I had to make cell B5 absolute when copying the formula
down). Cell B6 had Page 1. I used the same formula on a new sheet and
everything worked.

Gos-C


--
Gos-C


------------------------------------------------------------------------
Gos-C's Profile: http://www.excelforum.com/member.php...o&userid=14518
View this thread: http://www.excelforum.com/showthread...hreadid=507893


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 function in Excel that updates only when a doc is changed? torino0020 Excel Worksheet Functions 1 January 5th 06 03:00 AM
Date Function Khangura Excel Discussion (Misc queries) 1 December 21st 05 09:33 AM
date format and the RIGHT function Rich Hayes Excel Worksheet Functions 0 December 19th 05 11:06 AM
Date function Dee Excel Worksheet Functions 2 July 13th 05 03:32 PM
Is there a function to show future date taxmom Excel Worksheet Functions 2 March 4th 05 09:23 PM


All times are GMT +1. The time now is 07:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"