Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Formula to sheet change

Is there a way To write an Offset formula that changes the sheet name when
indexed on a cell?

Ex: =OFFSET(A1!A2,A3,1)

Whe A1 = sheet name cell value the offset refers to, A2 = start cell, A3
= row to offset.

When I use "Sheet1!" in cell A1 it opens the File Not Found dialog.

--
George G
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Formula to sheet change

First, drop the ! from A1. You included it in your formula.

=OFFSET(INDIRECT("'" & A1 & "'!" & A2),A3,1)

The apostrophes maybe required for some sheet names (with spaces, for instance).



Sgwapt wrote:

Is there a way To write an Offset formula that changes the sheet name when
indexed on a cell?

Ex: =OFFSET(A1!A2,A3,1)

Whe A1 = sheet name cell value the offset refers to, A2 = start cell, A3
= row to offset.

When I use "Sheet1!" in cell A1 it opens the File Not Found dialog.

--
George G


--

Dave Peterson
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
how do I change lookup sheet within formula? Primster Excel Discussion (Misc queries) 1 June 3rd 10 01:13 PM
how to change formula in shared sheet without loss of change histo DCE Excel Worksheet Functions 1 July 23rd 08 05:09 PM
Is it possible to change a Sheet reference in a formula? Stuart Peters Excel Discussion (Misc queries) 1 June 16th 06 10:54 PM
Change sheet name in formula kojimm Excel Worksheet Functions 4 July 15th 05 11:43 PM
Change sheet reference in formula? David Turner Excel Programming 9 November 26th 03 10:40 PM


All times are GMT +1. The time now is 11:52 PM.

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

About Us

"It's about Microsoft Excel"