Specifying a Row number value in a cell.

smithgt

Board Regular
Joined
Jan 22, 2010
Messages
193
I have a formula that I want to copy from sheet to sheet.

The problem is that I have a defined range of A3:Axxx where xxx is a row at the bottom of the data.

On Sheet1 one xxx is 1056, on Sheet2 xxx is 305.

To copy the formula I was thinking of putting the row number in a specific cell. e.g. K1068 = 1056

Is this possible?

The second, related question is how do I reference a cell in relation to another? As K1068 wont always be K1068, bit it will always be two cells below the cell thats looking for it.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi

You can use INDIRECT to generate a range:

=INDIRECT("A3:A" & $K$1068)

will generate a range from A3:Anumber_in_K1068

Use in a formula like

=SUM(INDIRECT("A3:A" & $K$1068))

You can also use INDIRECT refer to a cell 2 below the one in which it is entered by using R1C1 notation with it:

=INDIRECT("R[2]C",FALSE)

will always point to the cell 2 below the one in which it is entered.
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,144
Members
452,891
Latest member
JUSTOUTOFMYREACH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top