1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Generating a formula in a cell re-iteratively?

Our take

Generating a formula in Excel that iteratively processes data can be complex, especially for those accustomed to traditional methods. However, with the introduction of functions like LET and SEQUENCE, you can streamline your formulas into a more concise format. By leveraging these new functions, it's possible to minimize repetitive patterns and enhance clarity. This approach not only simplifies your formula but also empowers you to manage data more efficiently.

Is there anyway using the newish functions (sorry I am an old version excel guy)
to trim this down into one line using LET/SEQUENCE/ etc

=VSTACK(
IF(BA2-(BA2-1)>BA2,HSTACK("","","","","","","",""),VSTACK(HSTACK("","","","",INDEX(AZ:AZ,BA2-(BA2-1)),INDEX(AY:AY,BA2-(BA2-1)),"",""),FILTER(AP:AW,(AW:AW=INDEX(AY:AY,BA2-(BA2-1)))*(AW:AW<>"")))),
IF(BA2-(BA2-2)>BA2,HSTACK("","","","","","","",""),VSTACK(HSTACK("","","","",INDEX(AZ:AZ,BA2-(BA2-2)),INDEX(AY:AY,BA2-(BA2-2)),"",""),FILTER(AP:AW,(AW:AW=INDEX(AY:AY,BA2-(BA2-2)))*(AW:AW<>""))))
)

it actually repeats 20 times I have just trimmed it to 2 iterations here

I appreciate any insight

submitted by /u/FFootyFFacts
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles

Tagged with

#no-code spreadsheet solutions#Excel compatibility#Excel alternatives for data analysis#Excel alternatives#rows.com#AI formula generation techniques#formula generator#Excel#formula#VSTACK#HSTACK#INDEX#FILTER#BA2#LET#SEQUENCE#iteration#functions#AP:AW#AY:AY