Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
qdave, you're welcome.
Yes, ROW(A1) and COLUMN(A1) can be used as incrementers within formulas when copying down / across. But do tinker with it to ensure that the results returned are exactly as desired. For example: =INDIRECT("'Sheet1'!A"&COLUMN(A1)) The above effectively returns a dynamic transpose of Sheet1's col A as we copy it across. It returns the "vertical" contents of A1,A2,A3 ... etc in Sheet1, in a horizontal fashion. And sometimes, that's exactly what's wanted. But if we wanted it to return Sheet1's A1,B1,C1... as we copy across we could use instead either: =INDIRECT("'Sheet1'!"&CHAR(COLUMN(A1)+64)&"1") above can be copied across 26 cols [returns for cols A - Z] (there are other, more complex variations to handle beyond col Z) Instead of the above, a better one might be: =INDEX(INDIRECT("'Sheet1'!1:1"),COLUMN(A1)) above can be copied / will work right across all 256 cols or the versatile but volatile: =OFFSET(INDIRECT("'Sheet1'!A1"),ROW(A1)-1,COLUMN(A1)-1) which allows "straight-through" copy across and down for "as-is" linking (no transposing) Of course, the real flexibility / benefit would be to point to a cell(s) for the text parts (parts within quotes) within the INDIRECT instead of hardcoding it as shown in the examples above. -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "qdave" wrote in message ... Thanks Max. Option 2 worked well for modifying formulas along the top of my sheet and then dragging them down. I'm assuming I could replace ROW() with Column(): use: =INDIRECT("'Sheet1'!A"&ROW(A1)) becomes use: =INDIRECT("'Sheet1'!A"&COLUMN(A1)) and get the desired result when I drag a formula left to right across a sheet. appreicate the tips. qdave |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Named Ranges | Excel Worksheet Functions | |||
Compiling macro based on cell values | Excel Discussion (Misc queries) | |||
INDIRECT lookup of sheet names | Excel Worksheet Functions | |||
Using a relative SHEET reference for source data in a chart | Charts and Charting in Excel | |||
Does excel recognise names rather than cells? | Excel Worksheet Functions |