+ Reply to Thread
Results 1 to 4 of 4

Insert Rows Problem

  1. #1
    Registered User
    Join Date
    09-15-2005
    Posts
    90

    Angry 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?

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    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
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    09-15-2005
    Posts
    90
    i get a '#value'
    the cell is formated as 'general'

  4. #4
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1