refer to cell in previous sheet

ewibolo

New Member
Joined
May 16, 2011
Messages
7
Hi, I have looked and looked 'til I'm now blue in the face and I still cannot find the answer.

Thanks for your help all, I know you'll come through!

OK, here is my situation. It seems so easy, but I can't find the answer anywhere.

Let's say I have 2 open sheets "111" and "222"
In "111", cell A1 I have a number 1
in "222", cell A1, I want to type a formula that automatically adds 1 to the sheet directly to the left of "222", or if I copy sheet 222 (and rename "333"), cell A1 will add 1 to cell A1 in 222 ( which is now the sheet directly left of the current sheet.

It is always the same cell (adjacent sheet to the left),that I want to add plus one.
It has to work with all added/copied new sheets I add to the workbook.

Thanks for any input!
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Thanks for the reply, but I've been to that page before and tried to use the custom UDF =PrevSheet() , but it doesn't work. It gives me a #zero for any entries. I don't have any idea where to go from here.

thanks,

Eric
 
Upvote 0
The PrevSheet UDF worked for me. I'm not sure what else to tell you.

Alternatively, you could use just a standard reference in a formula e.g.
=Sheet1!A1+1
Then if you want to change the sheet referenced in all the formulas, you can use the Replace (Ctrl-H) feature to replace all Sheet1 references with the new sheet name. Not exactly what you asked for but easy enough to do.


Or you could use the INDIRECT function. The sheet you want to reference is listed in say cell A1 and you want to reference cell B1 on that sheet
=INDIRECT(A1&"!B1")+1
If you change the sheet name listed in cell A1, the INDIRECT formula will reference cell B1 on the new sheet.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top