Referencing 1st preceding sheet in excel

Posted on 2012-03-20
Last Modified: 2012-03-27
Is there a way I can reference a cell in the preceding sheet of a workbook so that when I  copy that worksheet to the end of the workbook the reference will hold to the next last sheet. I would like to use a function, however if I have to I could use a macro
Question by:Jenedge73
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
LVL 35

Expert Comment

by:Robert Schutt
ID: 37743271
As there is already a solution for this, I assume it's not possible in a formula.


Of course you could change this to always use an offset of -1 and maybe other defaults you want to use like look at the same cell in that sheet.

If you need help implementing that, let me know.
LVL 35

Expert Comment

by:Robert Schutt
ID: 37743439
I have made an example, hope that's clearer, if needed.

Author Comment

ID: 37743540
Could i use an indirect function and change the sheet name to reflect ie a 1 week difference based on let's say a 52 week year?
To Patch or not to Patch? That is the question!

Don't get caught out like thousands of others around the world in the recent Ransomware Fiasco!
- Why it's not a good idea to wait before Patching
- Sensible approaches to Patching discussed
- Add your feedback, comments and suggestions

LVL 35

Expert Comment

by:Robert Schutt
ID: 37743602
is this what you mean:


Open in new window

This references the current cell in the "week11" sheet, since weeknum for today is 12.

The literal date can be replaced by a cell ref, or a call to TODAY() if that's what you need.
LVL 35

Expert Comment

by:Robert Schutt
ID: 37743744
It can apparently also be done with a formula that gets the full reference to a cell, for example in cell A25 I've put:


Open in new window

Then in A26:


Open in new window

This gets the sheet name which in this case was: week12

Then in cell A27:


Open in new window

That returns the previous week, so now you can use that cell as the 5th argument to the ADDRESS call. Maybe that's more applicable to your situation? It's a pain with the extra cells though, you could write each reference out of course but it might become painfully slow, I don't really know.
LVL 35

Accepted Solution

Robert Schutt earned 500 total points
ID: 37743765
Just for fun, here it is: reference the current cell in the preceding sheet if your sheets are calle week11, week12 etc:


Open in new window

Note that I can't really recommend this...

Author Comment

ID: 37758251

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
drag and drop a row in excel 2010 5 44
Custom fill series 12 37
auto correct in word  VS outlook 4 14
Permutacion of 2 numbers COUNT 8 20
Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question