Sort/Filter Not Dynamic

cookeetree

Board Regular
Joined
Mar 2, 2015
Messages
53
G'day Excel Gods,

I have a worksheet that references my "Sample & Test Log". On entering a Request Number into cell $J$1, there is a formula that pulls the correct Concrete Sample Numbers for that request and inserts them into the worksheet. The worksheet is then printed for test data to be written on.

My full formula is:

=IFERROR(SORT(FILTER('[Sample & Test Log.xlsm]Concrete'!$C2:$C175,('[Sample & Test Log.xlsm]Concrete'!$A2:$A175=$J$1)*('[Sample & Test Log.xlsm]Concrete'!$V2:$V175=($AA$7-$AA$6)))),"")

This Part... '[Sample & Test Log.xlsm]Concrete'!$C2:$C175,('[Sample & Test Log.xlsm]Concrete'!$A2:$A175=$J$1 ...matches the Request Number.

This Part... '[Sample & Test Log.xlsm]Concrete'!$V2:$V175=($AA$7-$AA$6) ...matches the Age of the Sample (some are tested at 7 days, some at 28 days).


What I've discovered is that the references to the Concrete worksheet aren't dynamic; when new rows are added to the Log, the line references don't update to include the new row. If I insert a new row within the existing ones, there's no issue, it's only when I insert a new row above the first one that the problem occurs.

Is there a way around this???

Any assistance you could provide would be greatly appreciated,

Cheers, Jason.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
This simple formula used in a named range can give you want you want. Replace the column reference with whatever column your lookup column is in
=OFFSET($B$1,1,0,MAX(($B:$B<>"")*(ROW($B:$B))-ROW($B$1)),1)
 
Upvote 0
This assumes you have a header in B1. If you insert a row below the header it will still work. If you add data below it will still work.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,617
Latest member
Narendra Babu D

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