I have a dynamic named range. Is it possible to have a formula in an adjacent column that is also dynamic?

helpneeded2

Board Regular
I have a named range of data that I have defined dynamically using the OFFSET method.

The range is a fixed 8 columns, and a varying amount of rows.

In the 9th column, I have a formula that is to be applied to 4 of the columns in the range, based on a conditional criteria. The rows of data could be anywhere from 10 rows of data to 100,000 rows of data. Rather than copying down the formula over 100k rows, I was wondering if there was another way to do this so that it dynamically populates only in the rows that have data. (I hope that all made sense -- I mix up my terminology sometimes).

I want to have the formula below to be utilized on the 4 rows of the table "transactionData_filtered".

Excel Formula:
``=IF(J2="",0,IF(ISERROR(MATCH(J2,transactionType_list,0)),0,SUM(K2:N2)*IF(VLOOKUP(J2,transactionType_table,2,FALSE)="Positive",1,-1)))``

Is there a way via formula to apply this dynamically, or is this beyond the features of Excel?

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi

Make use of an Excel table (CTRL-T). Formulas and formatting are copied down when new data is appended.

Hi

Make use of an Excel table (CTRL-T). Formulas and formatting are copied down when new data is appended.
Unfortunately using a table for the data does not work. It is how I wanted to do it first, however my filter formula just results in a #spill error when I convert the data to a table. I have done this on blank spreadsheet, so I know there is no other data in the way that is causing the SPILL error. Unfortunately the formula is not table friendly, but works fine when not used in a table.

Excel Formula:
``=LET(f,FILTER(INDEX(table_jackpotDataRaw,SEQUENCE(ROWS(table_jackpotDataRaw)),XMATCH(A1:P1,table_jackpotDataRaw[#Headers])),table_jackpotDataRaw[Date  Time]<>""),IFERROR(f+0,f))``

I'm confused. If the formula spills then there is no need to copy it down and everything is fine.

Replies
4
Views
214
Replies
8
Views
350
Replies
5
Views
201
Replies
4
Views
172
Replies
4
Views
458

Threads
1,216,481
Messages
6,130,913
Members
449,606
Latest member
jaybar0812

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

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