+ Reply to Thread
Results 1 to 5 of 5

Relative formula is not looking at the right row

Hybrid View

  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    Brisbane
    MS-Off Ver
    Excel 2000
    Posts
    78

    Question Relative formula is not looking at the right row

    Sorry for the bad title!

    When i copy and past a line instead of it staying relative to the new position it is looking at a completly different row.

    So the formula only looks at the cells in the row that it is in, but for some reason when it is being copied and pasted it changes the row it looks at.

    None of the formulas are using absolute cell refernces so it should change the formula to be relative to that row but it doesn't

    The formula's are simple as well one is just O227*N227, thats as about advanced as these formulas get!

    And if i re enter the formula corectly and copy that down it then works again?

    Does anyone have any ideas? Has anyone seen this before?

    Thank you

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Relative formula is not looking at the right row

    How are you copying and pasting it? Is the formula you gave an actual example of a formula that is producing the error? Can you attach a sample workbook to see if the error can be replicated?
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    02-25-2014
    Location
    Brisbane
    MS-Off Ver
    Excel 2000
    Posts
    78

    Re: Relative formula is not looking at the right row

    That is actually on of the formulas. There are 700 oidd rows with multiple formulas in them and they work in the position they are in. Then the whole row is cut and moved to a different worksheet in the same file, that is when the formula starts looking at a row in the worksheet that it was pasted to. Let say it was cut from row 350 - Formula is O350*N350 - in the original worksheet and then pasted in the new worsheet on row 220 so the formula should be - O220*N220 -, but what happens is the formula becomes - O84*N84 - and if i go to row 84 it is working out that correctly?

    Unfortuanetly because of the nature of the spreadsheet I am unable to post it. So if there are any ideas i appreciate the help but if the only way to fix it is to see it then i'll just have to leave it for now.

    Thank you for the help.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Relative formula is not looking at the right row

    I'm unable to duplicate the behavior.
    It behaves exactly as you'd expect it to.

    There must be something else going on.
    Are you doing the cut/paste by hand? or with a macro?
    Is there any vba code in the book?

    Does it do this on any sheet, any book, any formula?
    Or just this one in particular?
    Does it do it in a brand new book/sheet ?
    Are there any merged cells in the range?
    Are you only cutting that 1 row, or several rows at the same time?

    Just for troubleshooting sake, try COPY and paste, instead of CUT

  5. #5
    Registered User
    Join Date
    02-25-2014
    Location
    Brisbane
    MS-Off Ver
    Excel 2000
    Posts
    78

    Re: Relative formula is not looking at the right row

    If you copy and paste it does do the same thing. This is intermittent as well!

    This is a shared workbook so someone is probably screwing something up. I have never seen Excel be the one that isn't doing what it is told.

    There are no Macros and there are no VBA code in this worksheet.

    It seems to be isolated to this workbook. Other things have been happening to this workbook as well, like random lines scattered through every worksheet. I am convinced someone is at fault but i am not sure.

    Here is the code that is only ever affected,

    =0.87*(L2/1000) 200 1 =O2*N2 =(O2*L2)/1000 =U2/O2 5.54 =T2*R2

    These are oviously in different cells

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Relative formula
    By ezzzcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2013, 07:19 PM
  2. [SOLVED] Relative formula's by VBA
    By LeBaron in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-26-2012, 05:32 AM
  3. Replies: 2
    Last Post: 04-23-2012, 05:01 PM
  4. relative formula
    By teagle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-14-2007, 06:55 AM
  5. Need Help With Copying Relative Formula
    By Kia in forum Excel General
    Replies: 1
    Last Post: 01-03-2006, 09:15 PM

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