Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do I change lookup sheet within formula? | Excel Discussion (Misc queries) | |||
how to change formula in shared sheet without loss of change histo | Excel Worksheet Functions | |||
Is it possible to change a Sheet reference in a formula? | Excel Discussion (Misc queries) | |||
Change sheet name in formula | Excel Worksheet Functions | |||
Change sheet reference in formula? | Excel Programming |