+ Reply to Thread
Results 1 to 4 of 4

Sorting when formulas reference a different sheet

  1. #1
    Registered User
    Join Date
    01-08-2015
    Location
    Australia
    MS-Off Ver
    Mac 2011
    Posts
    75

    Sorting when formulas reference a different sheet

    Hi,

    I have a spreadsheet where student data is entered. When scores are entered into Column C & F then G calculates the growth. This is done by referencing a cell in another sheet that is hidden ='June M'!AB43. There are similar formulas in columns K & M.

    My problem is that when a new student arrives the data needs to be sorted alphabetically by column A (Family Name). When this happens the formulas move with the rest of the data and then the results aren't calculated correctly. I need the formulas to stay in the same spot. (I've tried adding $$ but this doesn't work).

    I've used a macro to make it easier for users to sort with a click of a button (I've had issues with people inserting rows and mucking up formulas). The only way I have been able to get this to work is by the macro copying & pasting the columns with formulas further down the sheet, sorting the data in the table and then copying the formulas back up to the top. This seems to work.

    I was wondering if there is a better way of sorting the data while keeping the formulas as they are in their current cells. I would prefer this as there may need to be columns added in or deleted. If the formulas stay in their current cells I could extend the sort range to include additional columns and I wouldn't need to alter the macro every time a column is added/deleted.

    I've attached the spreadsheet to make it easier. I hope that makes sense.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Sorting when formulas reference a different sheet

    Try this,
    In G6, then drag down
    Please Login or Register  to view this content.
    Similarly Apply for other formulas also.

  3. #3
    Registered User
    Join Date
    01-08-2015
    Location
    Australia
    MS-Off Ver
    Mac 2011
    Posts
    75

    Re: Sorting when formulas reference a different sheet

    Thanks. That was the simple solution I was looking for. I did read another post about Indirect formulas but didn't really understand them. Thanks again. Much appreciated.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Sorting when formulas reference a different sheet

    Thanks for feedback.

+ 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. Formulas that change sheet reference
    By Allen_dulles in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-04-2016, 08:58 PM
  2. Reference to another sheet, dragging formulas and skipping rows
    By ospreyguy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-07-2016, 03:37 PM
  3. Reference a cell to a sorting table on another sheet
    By Mikelaz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-12-2016, 06:09 AM
  4. How do I reference the sheet name in formulas?
    By djarcadian in forum Excel General
    Replies: 2
    Last Post: 03-08-2015, 03:52 PM
  5. [SOLVED] Copy formulas from one spreadsheet to another keeping the original sheet cell reference
    By Sheepdog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2012, 02:41 PM
  6. Copy formulas with various sheet reference
    By Katy Jordan in forum Excel General
    Replies: 1
    Last Post: 08-16-2008, 06:23 AM
  7. Cell value as Sheet name reference in formulas
    By bobboy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-07-2007, 12:08 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