Range Change

CARBOB

Well-known Member
Joined
Jun 6, 2005
Messages
1,870
I'm stuck, in column ST20 is a formula that uses data from columns H & I. I need to drag the formula across the sheet for 300 columns with the range changing for each column to the next 2 columns J&K,L&M,N&O etc. When I drag across, the range changes from H&I to I&J, (this needs to be J&K). Is there any way to setup Excel to do this?
Excel Workbook
STSUSV
197.599.807.14
20100
5 DIGIT PAIRS
Excel 2007
Cell Formulas
RangeFormula
ST19=COUNT($A:$A)/ST16
SU19=COUNT($A:$A)/SU16
SV19=COUNT($A:$A)/SV16
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Excel Workbook
NameRefers To
pair=#REF!#REF!
Workbook Defined Names
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I'm stuck, in column ST20 is a formula that uses data from columns H & I. I need to drag the formula across the sheet for 300 columns with the range changing for each column to the next 2 columns J&K,L&M,N&O etc. When I drag across, the range changes from H&I to I&J, (this needs to be J&K). Is there any way to setup Excel to do this?
Excel Workbook
STSUSV
197.599.807.14
20100
5 DIGIT PAIRS
Excel 2007
Cell Formulas
RangeFormula
ST19=COUNT($A:$A)/ST16
SU19=COUNT($A:$A)/SU16
SV19=COUNT($A:$A)/SV16
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Excel Workbook
NameRefers To
pair=#REF!#REF!
Workbook Defined Names

You could use the Offset command with a helper row for reference. It's a bit hard for me to explain though.

Say you use row 2 as the helper row. In H2 and I2 place the value 0. In J2 place "=h2+2" in K2 "=I2+2". then copy and paste the formulas in J2 and K2 across as far as you need.

Now in a second helper row (row 3). Use your Offset function.

H3 =OFFSET($H$1,0,H2)
I3 =OFFSET($I$1,0,I2)

Now instead of referencing H1 and I1 you reference H3 and I3? I know it's confusing, and there are probably many better ways, but that's my shot at it.
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,681
Members
452,937
Latest member
Bhg1984

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