+ Reply to Thread
Results 1 to 3 of 3

Formula in the cell changes automatically

  1. #1
    Registered User
    Join Date
    02-28-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Formula in the cell changes automatically

    Hi,

    I have an excel sheet with macro enabled. The macro copies the data from another workbook to mine. Then in my sheet column ‘AP’ I have given a formula which calculates the week based on the date in column ‘J’.
    The formula is =IF(J2="","",CONCATENATE("Week ",WEEKNUM(J2,21))). The formula works fine till row 232. While running my macro after row number 232, the formula changes automatically to row 356.

    For example:

    Till row 232 the formula is

    =IF(J232="","",CONCATENATE("Week ",WEEKNUM(J232,21)))

    In row 233 the formula changes automatically to

    =IF(J356="","",CONCATENATE("Week ",WEEKNUM(J356,21)))

    Can anyone help me out in this case.

    TIA,
    Gautham

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,093

    Re: Formula in the cell changes automatically

    Do you have any hidden rows?

    Maybe you could post a sample workbook?

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-07-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    62

    Re: Formula in the cell changes automatically

    Hi Gautham,

    Are you sure that the weeknum formula you are using is correct?

    =WEEKNUM(J232,21)
    I think it should be =WEEKNUM(J2,1)+20

    Regards
    Shekhar Sharma

+ 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