Referencing Previous Spreadsheet

cpupartsplz

New Member
Joined
Oct 18, 2006
Messages
12
Hello,

I searched the forum for a similar problem and am very close to what I need, but not exactly there yet...

My spreadsheets are titled: "0", "1", "2", "3"...
I enter a value in K1 in "0".
I would like K1 in "1" to be (=0!K1 + 1)
I would like K1 in "2" to be (=1!K1 + 1)
etc...

There was a similar post on Yahoo! Answers and somebody suggested...
=INDIRECT("'Sheet "& VALUE(RIGHT( MID(CELL("filename"), SEARCH("]", CELL("filename"))+1,256), 2)) -1 &"'!A1")

Which I modified to...
=INDIRECT("'"& VALUE(RIGHT( MID(CELL("filename"), SEARCH("]", CELL("filename"))+1,256), 2)) +1 &"'!K1")

This almost works, but is off by 1...
When I change the "+1" at the end to "+0" or "-0" or take it out completely, it returns an error.
When I change the "+1" to "-1" it returns the original value in 0!K1.

Any ideas to off-set it just 1?

Thanks!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,203,070
Messages
6,053,365
Members
444,657
Latest member
jessejames1of3

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