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

helpneeded2

Board Regular
Joined
Jun 25, 2021
Messages
70
Office Version
  1. 365
Platform
  1. Windows
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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

shift-del

Well-known Member
Joined
Aug 28, 2009
Messages
590
Office Version
  1. 365
Platform
  1. Windows
Hi

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

helpneeded2

Board Regular
Joined
Jun 25, 2021
Messages
70
Office Version
  1. 365
Platform
  1. Windows
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))
 

shift-del

Well-known Member
Joined
Aug 28, 2009
Messages
590
Office Version
  1. 365
Platform
  1. Windows
I'm confused. If the formula spills then there is no need to copy it down and everything is fine.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,297
Messages
5,853,131
Members
431,549
Latest member
NnAa

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
Top