How to reference same cell in previous sheet in excel?

Argus9

I know how to reference a cell in another sheet in Excel, but I'd like to know if there's some way to automate this process, such that if I duplicate a sheet, it will update its references to the previous sheet in sequence.

For example, let's say sheet n has a cell that references a cell in sheet n-1. If I have sheets 1, 2, and 3, I want the cell in 3 to reference a cell in 2. Then, if I duplicate 3 (making Sheet 4), I want the same cell in 4 to reference the cell in 3.

Ordinarily, I'd have the cell in sheet 3 read, 'Sheet2'!A1. Then, if I duplicate Sheet3 to make Sheet4, I'd have to go into that same cell on Sheet4 and change it from 'Sheet2'!A1 to 'Sheet3'!A1. I'd rather have this change done automatically when I duplicate the sheet.

Sorry for the long-winded explanation, but is there a way to automate this process rather than having to do it by hand? I'm currently using Excel 2013 preview but I also have Excel 2012.

Thank you!

Argus9

I found my solution right here: j-walk.com/ss/excel/tips/tip63.htm . Turns out macros are extremely powerful! :)

You can create a function called sheetoffset in VBA to do this

Function SHEETOFFSET(offset, Ref)
'   Returns cell contents at Ref, in sheet offset
    Application.Volatile
    With Application.Caller.Parent
        SHEETOFFSET = .Parent.Sheets(.Index + offset) _
         .Range(Ref.Address).Value
    End With
End Function

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Reference a cell of the previous row in the same table in Excel?

From Dev

How to link a cell to sheet reference

From Dev

How to link a cell to sheet reference

From Dev

Reference cell range on another sheet - Excel

From Dev

How to fix the sheet name part of an Excel cell reference when the whole sheet is copied?

From Dev

How can I reference Sheet1 name in a different Sheet in the same workbook in excel 2010?

From Dev

How to make excel automatically fill a value in a cell of a sheet when another corresponding cell of another sheet is filled the same value?

From Dev

How do make an Excel cell reference a particular sheet according to the current date?

From Dev

How to reference a cell in a excel hyperlink

From Dev

How can i count same text cell values count for multiple values in excel sheet

From Dev

Excel - using a cell reference on another sheet in a RAND formula

From Dev

Excel cell reference to it´s previous value (conditional formatting)

From Dev

Excel VBA finding matching cell in another sheet in same book

From Dev

How to reference current sheet data for excel graphs without sheet name

From Dev

Disable cell in excel sheet

From Dev

How to change cell reference in all formulas on a work sheet

From Dev

How can I reference a row in another sheet based on value in cell?

From Dev

Cell Reference based on sheet name

From Dev

How to use a cell as a filename in a reference in excel?

From Dev

How to change cell reference style in Excel Online?

From Dev

Excel - sheet names equal to cell (but the cells giving name to the sheets are all in the same sheet)

From Dev

Reference a cell in the previous visible row

From Dev

How to enable Cell re-size on protected Excel Sheet

From Dev

How to create and name an Excel Sheet referencing a cell in the workbook

From Dev

How to extract the hyperlink cell from excel sheet using python

From Dev

Excel: How to have an IF function return the value of the cell from another sheet

From Dev

How to add multiple string values to a cell in a excel sheet using vba

From Dev

Excel VBA How to edit every cell with formula on the sheet

From Dev

What should I do if I see a reference in Excel cell formulas to a sheet that I cannot see in the workbook?

Related Related

  1. 1

    Reference a cell of the previous row in the same table in Excel?

  2. 2

    How to link a cell to sheet reference

  3. 3

    How to link a cell to sheet reference

  4. 4

    Reference cell range on another sheet - Excel

  5. 5

    How to fix the sheet name part of an Excel cell reference when the whole sheet is copied?

  6. 6

    How can I reference Sheet1 name in a different Sheet in the same workbook in excel 2010?

  7. 7

    How to make excel automatically fill a value in a cell of a sheet when another corresponding cell of another sheet is filled the same value?

  8. 8

    How do make an Excel cell reference a particular sheet according to the current date?

  9. 9

    How to reference a cell in a excel hyperlink

  10. 10

    How can i count same text cell values count for multiple values in excel sheet

  11. 11

    Excel - using a cell reference on another sheet in a RAND formula

  12. 12

    Excel cell reference to it´s previous value (conditional formatting)

  13. 13

    Excel VBA finding matching cell in another sheet in same book

  14. 14

    How to reference current sheet data for excel graphs without sheet name

  15. 15

    Disable cell in excel sheet

  16. 16

    How to change cell reference in all formulas on a work sheet

  17. 17

    How can I reference a row in another sheet based on value in cell?

  18. 18

    Cell Reference based on sheet name

  19. 19

    How to use a cell as a filename in a reference in excel?

  20. 20

    How to change cell reference style in Excel Online?

  21. 21

    Excel - sheet names equal to cell (but the cells giving name to the sheets are all in the same sheet)

  22. 22

    Reference a cell in the previous visible row

  23. 23

    How to enable Cell re-size on protected Excel Sheet

  24. 24

    How to create and name an Excel Sheet referencing a cell in the workbook

  25. 25

    How to extract the hyperlink cell from excel sheet using python

  26. 26

    Excel: How to have an IF function return the value of the cell from another sheet

  27. 27

    How to add multiple string values to a cell in a excel sheet using vba

  28. 28

    Excel VBA How to edit every cell with formula on the sheet

  29. 29

    What should I do if I see a reference in Excel cell formulas to a sheet that I cannot see in the workbook?

HotTag

Archive