INDEX Function with Dynamic Array

UnitedCloud01

New Member
Joined
Nov 14, 2017
Messages
30
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone

I have an array in my spreadsheet where I need to add rows periodically.

I have the following array with fixed parameters that I then update and have to copy down the column to the end of the new rows each time I add a series of new rows. I would like to have a more dynamic formula the negates this step. Currently the rows total 2100.

{=IFERROR(INDEX($C:$C,SMALL(IF($S$5:$S$2100<>"",IF($L$5:$L$2100="",IF($C$5:$C$2100<>"",ROW($S$5:$S$2100)))),ROWS(V$5:V5))),"")}

Column 'C' contains patients name that I add to a list. Column 'S' contains data that captures if this patient is overdue for a risk review. Column 'L' ensures the patient is open and not closed. Column 'V' then captures all patient names due for a risk review. A macro then pulls from this column and populates a cell where the patient names are all collated.

Many thanks for your assistance.

Chat soon

Scott
 
Thanks for that (y)
As you have 365 another option is
Excel Formula:
=FILTER(C5:C10000,(S5:S10000<>"")*(L5:L10000="")*(C5:C10000<>""))
This just goes in one cell & will spill down.
Thanks so much, Fluff. I did try this, but an error was returned #SPILL! I might just keep with the solution above for now.
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I did try this, but an error was returned #SPILL!
You only need this formula in one cell. The results of the FILTER will spill down the column, taking as many cells as is required to show the results.

The #SPILL! error just means that you have other values or formulae in the way. Get these out of the way and the formula should work?
 
Upvote 0
You only need this formula in one cell. The results of the FILTER will spill down the column, taking as many cells as is required to show the results.

The #SPILL! error just means that you have other values or formulae in the way. Get these out of the way and the formula should work?
Hi Stephen. Thanks so much. I didn't even think. The old formulas were remaining further down the column!! DOH. 🫣
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

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