+ Reply to Thread
Results 1 to 6 of 6

Move a table without affecting the formula that depends on it

  1. #1
    Registered User
    Join Date
    03-22-2016
    Location
    USA
    MS-Off Ver
    Office: Office 13 Home: Office 16
    Posts
    22

    Move a table without affecting the formula that depends on it

    Afternoon Everyone!
    I'm not sure if someone's already asked this, but I couldn't find anything on this particular problem.

    I have a table, whose cells are referenced by a rather long formula in another part of the worksheet. Is there a way to move the table without messing up the formula that depends on it?

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Move a table without affecting the formula that depends on it

    Try changing the cell references in the formula to absolute by highlighting the formula in the formula bar then pushing F4.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Move a table without affecting the formula that depends on it

    Yeah, as long as the formula doesn't have any volatile function references (eg, there's no INDIRECT functions in there), then the formula should automatically update if you drag & drop the function.

    If you need to do something more extreme (eg, delete the table and recreate it on another sheet or something), then you can do something else:
    "comment out" the formula so it won't react to any changes, and then re-activate it. Just put a single-quote before the equals sign to force it to assess as a text string.

    Please Login or Register  to view this content.
    will have a text string containing "=SUM(range)" inside it, not the SUM function operating on the named range, "range".

    So you turn the function into a static text string, shuffle the function around and re-up the named ranges or whatever,
    and then remove the single quote so it's assessed as a function instead of a text string.

    That's my advice.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  4. #4
    Registered User
    Join Date
    03-22-2016
    Location
    USA
    MS-Off Ver
    Office: Office 13 Home: Office 16
    Posts
    22

    Re: Move a table without affecting the formula that depends on it

    Thanks guys, but I dont want to move the formula, I want to move the table the formula references.

    For Example, say I have a table that occupies D4 to H4 down to H9 and I wat to move it to Q4:U4:U9; if I make the references in the formula that uses the table absolute, will they update automatically to the new cell locations when I move the table, and also, would I need to copy the table and delete the original or cut/paste the table to the new location?

  5. #5
    Registered User
    Join Date
    03-22-2016
    Location
    USA
    MS-Off Ver
    Office: Office 13 Home: Office 16
    Posts
    22

    Re: Move a table without affecting the formula that depends on it

    Thanks for the help. I tried cutting and pasting while keeping the references relative and it worked fine. The referenced cell values updated to the new location without issue.

  6. #6
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Move a table without affecting the formula that depends on it

    Glad you were able to get it working.

+ 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. [SOLVED] need vba to split data move to particular file sheet depends upon sheetname
    By julielara in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-06-2016, 03:05 AM
  2. [SOLVED] Need vba code to move unique rows of D:D to corresponding sheet depends upon sht name
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-11-2016, 01:18 AM
  3. Move data depends upon selection of yr & wk or month from textbox userform vba
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2014, 02:26 PM
  4. Ms access Vba Save Data to xl depends upon 1 table pick & Depends 2 Upon fiterDate
    By breadwinner in forum Access Programming / VBA / Macros
    Replies: 14
    Last Post: 05-29-2014, 10:59 PM
  5. need excel formula to get result from data table depends upon week,partner,column values
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2013, 08:41 AM
  6. Data Move to Master from sheet1,sheet2 vba depends upon column heading value
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-24-2013, 03:21 AM
  7. Move every Nth cell up without affecting the rest of the columns.
    By Henk Stander in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2012, 08:09 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