ROW reference automatically adjusting

fredsunbay

New Member
Joined
Mar 27, 2024
Messages
7
Office Version
  1. 2016
Good day all,

I've got the below formula which is working fine. I would like to drag the formula down and increase the last row reference, -ROW($B$1)-10),1)),""), with 1 so it becomes 2, 3, 4, etc.

=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),1)),"")
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Welcome to the Forum!

The usual way to do this is to use a ROWS() reference.

For example, if your formula starts in A1, say, replace 1 with ROWS(A$1:A1)

Copy down to A2, and the formula will become ROWS(A$1:A2) = 2, etc etc
 
Upvote 0
Welcome to the Forum!

The usual way to do this is to use a ROWS() reference.

For example, if your formula starts in A1, say, replace 1 with ROWS(A$1:A1)

Copy down to A2, and the formula will become ROWS(A$1:A2) = 2, etc etc
Thank you for your reply, in this case the suggest solution doesn’t work unfortunately.
 
Upvote 0
... the suggest solution doesn’t work ...
This doesn't convey any useful information to help us understand what's happening, or not happening.

Here's my layout:

DLDM
1
2
3
4
5
6
7
8
9
10
11
12
13111ABC
14
15222ABC
16
17
18
19
20333ABC
21
Day 1

ABCDE
1FindABCYouMe
2111111
3222222
4 333333
5  
Sheet1
Cell Formulas
RangeFormula
D2,B4D2=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),1)),"")
E2:E5E2=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),ROWS(E$2:E2))),"")
D3D3=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),2)),"")
D4D4=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),3)),"")
D5D5=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),4)),"")

I didn't pay attention to the rest of your formula previously, but I see now that:

=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),ROWS(E$2:E2))),"")

would better be written as:

=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW('Day 1'!$DM$12)+1),ROWS(E$2:E2))),"")

to provide protection against rows being inserted/deleted at the top of the "Day 1" sheet.
 
Upvote 0
Solution
This doesn't convey any useful information to help us understand what's happening, or not happening.

Here's my layout:

DLDM
1
2
3
4
5
6
7
8
9
10
11
12
13111ABC
14
15222ABC
16
17
18
19
20333ABC
21
Day 1

ABCDE
1FindABCYouMe
2111111
3222222
4 333333
5  
Sheet1
Cell Formulas
RangeFormula
D2,B4D2=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),1)),"")
E2:E5E2=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),ROWS(E$2:E2))),"")
D3D3=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),2)),"")
D4D4=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),3)),"")
D5D5=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),4)),"")

I didn't pay attention to the rest of your formula previously, but I see now that:

=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW($B$1)-10),ROWS(E$2:E2))),"")

would better be written as:

=IFERROR(INDEX('Day 1'!$DL$12:$DL$199,SMALL(IF($B$1='Day 1'!$DM$12:$DM$199,ROW('Day 1'!$DM$12:$DM$199)-ROW('Day 1'!$DM$12)+1),ROWS(E$2:E2))),"")

to provide protection against rows being inserted/deleted at the top of the "Day 1" sheet.
Your adjustment works like a charm !!

Thank you so much, you've saved me hours of extra work . . .
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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