+ Reply to Thread
Results 1 to 5 of 5

Referencing location in another sheet, I want the location to not change.

  1. #1
    Registered User
    Join Date
    11-18-2020
    Location
    USA
    MS-Off Ver
    Office 2019 at home, Office 2013 at work
    Posts
    4

    Referencing location in another sheet, I want the location to not change.

    I am pulling data from a different sheet onto a overview worksheet. I tried as example =Sheet2!C3 The C3 is the data I want, but if I update that sheet(sheet 2), I insert a new row, put in the new data, and save it. The original formula changes to =Sheet2!C4....when the updated data is in C3. I also tried =Sheet2!$C$3 -it worked to pull the data, but the exact same thing happened when I inserted a new row. Should I just to this in a different workbook, and call it from that? Rather not, but I will if I have to.

    I think calling it from a different workbook would work - since the overview page would never really know when data is moved around in the separate workbook. Guessing here.

    Thanks for looking at this
    Andrew

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Re: Referencing location in another sheet, I want the location to not change.

    .
    If you are using a macro to insert a new row, include in the macro code that moves the formula to the new C3

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Referencing location in another sheet, I want the location to not change.

    Try with INDIRECT to keep constant address of C3

    =INDIRECT("Sheet2!C3")
    Quang PT

  4. #4
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Referencing location in another sheet, I want the location to not change.

    If there's be a lot of such formulas, INDIRECT would be problematic. The better alternative is =INDEX(Sheet2!1:1048576,3,3) which does depend on all cells in Sheet2, but Excel won't recalculate it if cells outside Sheet2 change.

  5. #5
    Registered User
    Join Date
    11-18-2020
    Location
    USA
    MS-Off Ver
    Office 2019 at home, Office 2013 at work
    Posts
    4

    Re: Referencing location in another sheet, I want the location to not change.

    Thanks for the quick responses, much appreciated.

+ 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] How to use macros to change Information from one location to another location
    By Roco in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-07-2017, 04:29 PM
  2. [SOLVED] Macro to Save Excel File to a SharePoint location and then e-mail that location in Outlook
    By NickyHavey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2016, 09:27 AM
  3. [SOLVED] Change chart location not to new sheet to existing sheet
    By HerryMarkowitz in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-08-2014, 05:16 AM
  4. [SOLVED] Change Sheet Location for a Range
    By publius190 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-21-2014, 11:16 AM
  5. [SOLVED] [Help]macro to open file browser, to select a location, and save the location to a cell
    By zhuleijia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2013, 09:56 AM
  6. Replies: 0
    Last Post: 09-05-2012, 02:04 PM
  7. Automatically sort by location --each location having it's own sheet
    By blacky69 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 12-02-2008, 03:02 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