+ Reply to Thread
Results 1 to 2 of 2

Data: select a cell x rows below the current, where x is designate

  1. #1
    manxman
    Guest

    Data: select a cell x rows below the current, where x is designate

    I have a sheet with multiple rows of data, and an analysis row at the top of
    the data rows. The analysis row holds a copy of one of the lower data rows,
    and now I populate it by either copying and pasting or writing and dragging a
    formula that selects the desired data row.

    I would like to write a formula in the analysis row that says: copy the cell
    x rows below this cell by looking in a separate cell (say A1) for the number
    of rows below this one. So if I enter 3 in cell A1, the analysis row
    copies a row three lines below itself. Then later I could enter 1, and it
    would change the selection.

    Can this be done? Thanks in advance for any help.


  2. #2
    Forum Contributor
    Join Date
    07-05-2006
    Location
    Canada
    MS-Off Ver
    2003, 2007
    Posts
    581
    Quote Originally Posted by manxman
    I have a sheet with multiple rows of data, and an analysis row at the top of
    the data rows. The analysis row holds a copy of one of the lower data rows,
    and now I populate it by either copying and pasting or writing and dragging a
    formula that selects the desired data row.

    I would like to write a formula in the analysis row that says: copy the cell
    x rows below this cell by looking in a separate cell (say A1) for the number
    of rows below this one. So if I enter “3” in cell A1, the analysis row
    copies a row three lines below itself. Then later I could enter “1”, and it
    would change the selection.

    Can this be done? Thanks in advance for any help.
    One way is:

    =INDIRECT(ADDRESS(ROW(B5)+$A$1, COLUMN(B5))) This just assumes you're in B5.

    Someone else will probably have a better way, but this will work.

    Scott

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1