Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Melonhead
 
Posts: n/a
Default Getting a cell reference to move laterally instead of vertically?

I have data that is sorted in columns, but the data I want to graph is a
cross section of this data and therefore it comes from one row across several
columns. I'm trying sort my graph/equation data in a column, however. Is
there a way to get the equation cell references to move across a row even
while the cell is descending a column?
  #2   Report Post  
Ken Wright
 
Posts: n/a
Default Getting a cell reference to move laterally instead of vertically?

You can do it on a range using the TRANSPOSE function (array entered), or
you may want to take a look at the OFFSET function, which takes a row and
column argument. Use the ROW() function to generate the column argument and
you will be able to copy the formula down a column and have the references
go across a row, eg:-

Assuming your data was in E4:L4 and you wanted your formula to start in say
A6 and then copy downwards.

In A6 use =OFFSET($E$4,0,ROW()-6) and copy down. Note the ROW()-6 bit.
When you are in row 6 the ROW() bit gives you 6, whilst the -6 bit turns it
into 6-6=0. Therefore the first column offset argument is 0. When you move
to row 7 the ROW() bit gives you 7, whilst the -6 bit turns it into 7-6=1,
so the column argument is 1 etc

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"Melonhead" wrote in message
...
I have data that is sorted in columns, but the data I want to graph is a
cross section of this data and therefore it comes from one row across
several
columns. I'm trying sort my graph/equation data in a column, however. Is
there a way to get the equation cell references to move across a row even
while the cell is descending a column?



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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
Getting contents of a cell when cell reference is in the sheet A Nelson Excel Discussion (Misc queries) 3 October 5th 05 06:46 PM
Input cell reference is not valid (One Variable Data Table) Dottore Excel Worksheet Functions 9 September 1st 05 03:05 PM
dynamic cell reference within a text string gvm Excel Worksheet Functions 4 July 25th 05 02:40 AM
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. [email protected] Excel Worksheet Functions 2 December 11th 04 12:05 AM


All times are GMT +1. The time now is 05:51 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"