+ Reply to Thread
Results 1 to 8 of 8

Copy paste without incrementing - can't use absolute references

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    16

    Copy paste without incrementing - can't use absolute references

    Hi,
    I have a question on the spreadsheet that is included. (it is normal if you see lots of #REF in cells, I have deleted a lot of tabs and changed names to make this spreadsheet generic)
    The “planifdata” tab is a table I am building in order to get pivot table data for project reporting. There are 25 tabs in the regular spreadsheet.

    I want to be able to copy-paste the range D4 to AK108 25 times one after the other. The only thing I want to change is the reference to the tab in the formulas. (I could do a find and replace page-1 once everything is copied).

    I am unable to copy without excel incrementing the cells. Since the formulas are not all the same in that range, I can’t put in absolute references with the $ sign.
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Copy paste without incrementing - can't use absolute references

    You might usefully look at using the INDIRECT formula - see Excel help for details.
    Martin

  3. #3
    Registered User
    Join Date
    08-12-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Copy paste without incrementing - can't use absolute references

    Hi, Thanks for your answer.
    I have been playing with the indirect function following your suggestion but I can't seem to make it work. Excel keeps returning a formula error.
    What would the syntax be for this function for instance
    IFERROR('Page-1'!AG5*'Page-1'!$AC5,"")
    I want this formula to stay the same when I copy paste it so I can then replace page-1 by page-2 through a find and replace.

    Thank you

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Copy paste without incrementing - can't use absolute references

    Please have a look at the attachment which shows how the INDIRECT function can be used to reference other tabs.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-12-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Copy paste without incrementing - can't use absolute references

    hi,

    This actually does solve my problem but just for one cell. I am attaching your spreadsheet with added information. In the two tabs Page 1 and page 2, I have added data in colums B and C.
    I want the formula to allow me to increment when I drag across colums B and C. I am really sorry, I just realized I had not specified that initially. Apologies. You have already helped me immensely

  6. #6
    Registered User
    Join Date
    08-12-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Copy paste without incrementing - can't use absolute references

    Indirect help.xlsx

    With the attachement

  7. #7
    Registered User
    Join Date
    08-12-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Copy paste without incrementing - can't use absolute references

    In fact, here is the actual formula

    INDIRECT("'" & $D7 & "'" & "!ag$5")*INDIRECT("'" & $D7 & "'" & "!Ac5")

    AG5 has to increment to AH5 towards the right and AG6 down
    AC5 should stay the same horizontally, but increment to AC6 vertically

  8. #8
    Registered User
    Join Date
    08-12-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Copy paste without incrementing - can't use absolute references

    Hi Again! I found it. I've fixed the problem.
    In case someone is searching one day, here is the formula with incrementing across and vertical
    IFERROR(INDIRECT("'" & $D4 & "'" & "!"&CELL("address",AG5))*INDIRECT("'" & $D4 & "'" & "!"&CELL("address",$AC5)),"")

+ 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. Copy and Paste Chart and Data // Want Relative References, Not Absolute
    By AdamParker in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-25-2014, 12:05 PM
  2. Paste-Link Relative vs Absolute References
    By Garwayne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-30-2012, 12:35 PM
  3. Copy Absolute References across Columns
    By malawimick in forum Excel General
    Replies: 4
    Last Post: 01-08-2012, 05:26 PM
  4. Conducting Copy/Paste with absolute formula references
    By BenBarrass in forum Excel General
    Replies: 5
    Last Post: 03-03-2010, 08:49 AM
  5. [SOLVED] Modify Paste Special to choose absolute or relative references
    By peterl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2005, 08:04 PM

Tags for this Thread

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