+ Reply to Thread
Results 1 to 7 of 7

Copying formula changing references

  1. #1
    Registered User
    Join Date
    02-06-2019
    Location
    Porto
    MS-Off Ver
    MS Office 2016
    Posts
    3

    Copying formula changing references

    Hi everyone,

    I dont know if it is possible or if the question makes sense but here it goes.

    Lets assume i have a column/line with the following values/formulas

    E

    8 ='1'!L15+'1'!L138
    9 ='2'!L15+'2'!L138
    10 ='3'!L15+'3'!L138

    As you can see im catching those references from different sheets

    Now what i want is copy those formulas to the next column (F) but changing the references for the following:

    F

    8 ='1'!O15+'1'!O138
    9 ='2'!O15+'2'!O138
    10 ='3'!O15+'3'!O138

    Does it make sense? Is it possible without have to go to each cell changing the references manually? As you can see i only changed the reference from L to O. The rest maintains the same.

    Thank you

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Copying formula changing references

    UNTESTED!!

    Change the formula in E8 to

    =INDEX('1!'!L15:ZZ15,1,(COLUMN()-5)*3+1,)+INDEX('1!'!L138:ZZ138,1,(COLUMN()-5)*3+1)

    Now you should be ok to copy across from F to G to H etc for as many columns as far as column ZZ

    UPDATE: Mm, still means you'll have to change the sheet number for rows 9 and 10 :-(
    Though you've only suggested three rows so that shouldnt be too hard to do.
    Last edited by Special-K; 02-06-2019 at 09:26 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Copying formula changing references

    UNTESTED!!

    Or change ALL the formulas to

    =INDEX(INDIRECT("'"&ROW()-7&"'!"&"L15:ZZ15"),1,(COLUMN()-5)*3+1,)+INDEX(INDIRECT("'"&ROW()-7&"'!"&"L138:ZZ138"),1,(COLUMN()-5)*3+1)

    then you should be able to copy it down for as many rows as you have sheets

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Copying formula changing references

    If you can create macro in your sheet

    mini macro:
    Please Login or Register  to view this content.
    then in col F

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  5. #5
    Registered User
    Join Date
    02-06-2019
    Location
    Porto
    MS-Off Ver
    MS Office 2016
    Posts
    3

    Re: Copying formula changing references

    Special-K actually it is not 3 rows only, it is 31 rows and 12 columns :-)
    Anyway im a fairly begginer in Excel im going to try to digest the info and see if i can do it.
    I would post the excel file here but it is a bit large, in Portuguese (even if math formulas are rather universal, and thats what matters i suppose here).
    Last edited by nmcbs84; 02-06-2019 at 09:40 AM.

  6. #6
    Registered User
    Join Date
    02-06-2019
    Location
    Porto
    MS-Off Ver
    MS Office 2016
    Posts
    3

    Re: Copying formula changing references

    Well what the heck here it goes the excel file. If you have any doubt understanding portuguese please tell me. The tab im working with is the one that says "Evolução Receitas Por dia".
    If you can help. Thank you very much
    Last edited by nmcbs84; 02-07-2019 at 11:52 AM.

  7. #7
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Copying formula changing references

    Quote Originally Posted by nmcbs84 View Post
    Special-K actually it is not 3 rows only, it is 31 rows and 12 columns :-)
    Anyway im a fairly begginer in Excel im going to try to digest the info and see if i can do it.
    I would post the excel file here but it is a bit large, in Portuguese (even if math formulas are rather universal, and thats what matters i suppose here).
    That file refers to coordinates that are completely different to the example you gave and contain breaks within the original sheets 1, 2, 3 etc
    This is now more complex than originally described and I don't have that amount of time to spend on this.

+ 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. Copying workshets and changing sheet references
    By Babalouie4 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-22-2017, 04:10 PM
  2. Copying a formula that references to the right and down
    By chris85259 in forum Excel General
    Replies: 3
    Last Post: 02-15-2016, 03:51 PM
  3. Replies: 9
    Last Post: 10-11-2012, 07:50 AM
  4. Replies: 0
    Last Post: 11-15-2007, 02:41 AM
  5. Replies: 0
    Last Post: 11-15-2007, 02:39 AM
  6. Changing Cell References after copying sheets
    By ChemistB in forum Excel General
    Replies: 5
    Last Post: 10-16-2007, 04:40 PM
  7. Copying formulas without cell references changing
    By gijoe119 in forum Excel General
    Replies: 3
    Last Post: 03-24-2005, 09:51 AM

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