Dragging down formulas and automatically changing row or column indexes

Excelstudent2030

New Member
Joined
May 27, 2020
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Is there a way to construct a formula that allows row or column indexes to change as you drag the formulae into other cells? For example, I need to copy the following formula into other cells in the column and would like it to change the row index number as I drag it down. The only way I know how to do it is to change the index location in each cell. =INDEX(Progress!$B$5:$DF$32,6,4), next cell below would be =INDEX(Progress!$B$5:$DF$32,6,5)
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi & welcome to MrExcel.
You mention changing the row index, but in your example you are changing the column index. Is that a mistake?
Also what cell is the formula in to begin with?
 
Upvote 0
Thanks. The formula contains both a column and a row index. =INDEX(Progress!$B$5:$DF$32,6,4) The formula is in another worksheet in Cell FD7.
 
Upvote 0
Ok, how about
=INDEX(Progress!$B$5:$DF$32,ROW()-1,COLUMN(D7))
 
Upvote 0
If you want both the row and column indices to move by 1 as you drag the formula down or across, you could even do:

=Progress!F11

The only difference would be that with the INDEX formula, it would generate an error when you exceeded the boundary of the range.
 
Upvote 0
Ok, how about
=INDEX(Progress!$B$5:$DF$32,ROW()-1,COLUMN(D7))

Thanks again but I couldn't make this work. I've attached a sample of what I'm trying to do which is basically read from one table and show the values in another table which is structured "90 degrees" off the first one.
 

Attachments

  • Excel Index Formulae 5-27-20 rev1.jpg
    Excel Index Formulae 5-27-20 rev1.jpg
    171.7 KB · Views: 74
Upvote 0
Ok, how about
=INDEX(Progress!$B$5:$DF$32,COLUMN(F7),ROW()-3)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,730
Members
448,987
Latest member
marion_davis

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