Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Refer to Previous or Next Sheet

G'day All,
Is it possible to refer to a cell on the previous sheet IN A FUNCTION
without refering to the sheet name?
Do sheets have index number or similar?

Thanking you in anticipation,
build


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Refer to Previous or Next Sheet

See

http://www.mcgimpsey.com/excel/udfs/prevsheet.html

In article ,
"build" wrote:

G'day All,
Is it possible to refer to a cell on the previous sheet IN A FUNCTION
without refering to the sheet name?
Do sheets have index number or similar?

Thanking you in anticipation,
build

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Refer to Previous or Next Sheet

G'day,
Thank you for your reply.
That method requires the use of VBA (saw that in google), however I need to
do this in a function as some users are not permitted to open books with VBA
code. I did shout the stipulation "IN A FUNCTION". :-) but thanks anyway.

cheers,
build


"JE McGimpsey" wrote in message
...
See

http://www.mcgimpsey.com/excel/udfs/prevsheet.html

In article ,
"build" wrote:

G'day All,
Is it possible to refer to a cell on the previous sheet IN A FUNCTION
without refering to the sheet name?
Do sheets have index number or similar?

Thanking you in anticipation,
build



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Refer to Previous or Next Sheet

There is no way of doing this without VBA, at least not a generic way. One
option would be to name the sheets in a special way using numbers and have
them in number order then by first getting the sheet name of the sheet where
you are working

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32)

will return the sheet name of the sheet that holds the formula, note that
the workbook needs to be saved. Assume this formula is in a sheet named 3,
the previous sheet if in order would be 2, and by using a formula like

=INDIRECT("'"&MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32)-1&"'!A1")

will return what's in A1 in a sheet named 2. Thus it is not possible to do
this in a generic way like JE's UDF but if you have some sort of index
number you can parse out those numbers and then subtract 1 to get the
previous sheet


--

Regards,

Peo Sjoblom








--

Regards,

Peo Sjoblom





"build" wrote in message
...
G'day,
Thank you for your reply.
That method requires the use of VBA (saw that in google), however I need
to do this in a function as some users are not permitted to open books
with VBA code. I did shout the stipulation "IN A FUNCTION". :-) but thanks
anyway.

cheers,
build


"JE McGimpsey" wrote in message
...
See

http://www.mcgimpsey.com/excel/udfs/prevsheet.html

In article ,
"build" wrote:

G'day All,
Is it possible to refer to a cell on the previous sheet IN A FUNCTION
without refering to the sheet name?
Do sheets have index number or similar?

Thanking you in anticipation,
build





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Refer to the previous worksheet in a formula Shazzer Excel Worksheet Functions 3 December 15th 06 02:07 PM
Countif - refer to another sheet DarrenWood Excel Worksheet Functions 3 February 9th 06 09:25 PM
Refer to formula in another sheet Jonsson Excel Discussion (Misc queries) 5 December 8th 05 01:09 PM
Refer new sheet to previous sheet Spot Excel Worksheet Functions 2 September 9th 05 02:05 PM
Refer to sheet name specified in other cell Marko Pinteric Excel Discussion (Misc queries) 2 March 4th 05 09:13 AM


All times are GMT +1. The time now is 06:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"