Insert Rows Problem

  • Thread starter Thread starter comotoman
  • Start date Start date
C

comotoman

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?
 
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
 
My guess is that you have a text entry in either B or C, not a numbe
that can be used to calculate a MONTH or a DAY...hence the #VALUE erro
that Excel returns when trying to do date calculations on non-valid dat
values.

Good Luc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top