#1   Report Post  
comotoman
 
Posts: n/a
Default Insert Rows Problem


cell a7:=IF(B7=0,"",MONTH(C7)&DAY(C7))

when i select b7:h7 and 'insert, shift rows down' the fromula changes
in a7 to =IF(B8=0,"",MONTH(C8)&DAY(C8))

How con I do this without a change to a7?


--
comotoman
------------------------------------------------------------------------
comotoman's Profile: http://www.excelforum.com/member.php...o&userid=27292
View this thread: http://www.excelforum.com/showthread...hreadid=474178

  #2   Report Post  
swatsp0p
 
Posts: n/a
Default


Try this:

=IF(OFFSET(A7,0,1)=0,"",MONTH(OFFSET(A7,0,1))&DAY( OFFSET(A7,0,2)))

an offset of 0,1 is col. B and 0,2 is col. C of the same row as the
formula.

HTH


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=474178

  #3   Report Post  
comotoman
 
Posts: n/a
Default


i get a '#value'
the cell is formated as 'general'


--
comotoman
------------------------------------------------------------------------
comotoman's Profile: http://www.excelforum.com/member.php...o&userid=27292
View this thread: http://www.excelforum.com/showthread...hreadid=474178

  #4   Report Post  
swatsp0p
 
Posts: n/a
Default


My guess is that you have a text entry in either B or C, not a number
that can be used to calculate a MONTH or a DAY...hence the #VALUE error
that Excel returns when trying to do date calculations on non-valid date
values.

Good Luck


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=474178

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
asking again, macro to insert rows Luke Excel Worksheet Functions 12 September 18th 05 06:32 PM
Insert rows Mr. G. Excel Worksheet Functions 3 March 31st 05 03:49 AM
Challenging Charting C TO Charts and Charting in Excel 0 January 17th 05 06:57 PM
Auto Insert of Rows Gar3th Excel Worksheet Functions 0 January 6th 05 08:33 PM
insert rows Arun Excel Worksheet Functions 3 December 11th 04 06:14 PM


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