Twollaston
Board Regular
- Joined
- May 24, 2019
- Messages
- 241
I have a spreadsheet with 8 formulas. These formulas start from Columns I2:P2, and I want to copy these formulas down to I34201:P34201, when I copy the formulas down the sheet will lock up due to too many formula calculations needing to happen. I was wondering if someone has a macro that will paste the formulas in section by section and in each section perform the calculation, and then convert to values. Is this possible? or is there a better way? It's a company project, so I'm limited in the tools available.
Additional Info: It works fine if I do 1080 rows at a time. These formulas are basically dynamic lists, that populate based on a pivot table connected to power BI and then I set up like 4000 named ranges so that I can sumproduct multiple arrays of data. I'm running Excel Version 2010.
My Formulas:
Cell I2
=IFERROR(INDEX($E$1:$E$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(J$1,2))/($A$1:$A$32401=$H2&" - "&LEFT(J$1,2))*ROW($A$1:$A$32401)),$G2)),"")
Cell J2
=IFERROR(INDEX($D$1:$D$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(J$1,2))/($A$1:$A$32401=$H2&" - "&LEFT(J$1,2))*ROW($A$1:$A$32401)),$G2)),"")
Cell K2
=IFERROR(INDEX($E$1:$E$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(L$1,2))/($A$1:$A$32401=$H2&" - "&LEFT(L$1,2))*ROW($A$1:$A$32401)),$G2)),"")
Cell L2
=IFERROR(INDEX($D$1:$D$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(L$1,2))/($A$1:$A$32401=$H2&" - "&LEFT(L$1,2))*ROW($A$1:$A$32401)),G2)),"")
Cell M2
=IFERROR(INDEX($E$1:$E$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(N$1,3))/($A$1:$A$32401=$H2&" - "&LEFT(N$1,3))*ROW($A$1:$A$32401)),$G2)),"")
Cell N2
=IFERROR(INDEX($D$1:$D$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(N$1,3))/($A$1:$A$32401=$H2&" - "&LEFT(N$1,3))*ROW($A$1:$A$32401)),G2)),"")
Cell O2
=IFERROR(INDEX($E$1:$E$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(P$1,3))/($A$1:$A$32401=$H2&" - "&LEFT(P$1,3))*ROW($A$1:$A$32401)),$G2)),"")
Cell P2
=IFERROR(INDEX($D$1:$D$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(P$1,3))/($A$1:$A$32401=$H2&" - "&LEFT(P$1,3))*ROW($A$1:$A$32401)),G2)),"")
Additional Info: It works fine if I do 1080 rows at a time. These formulas are basically dynamic lists, that populate based on a pivot table connected to power BI and then I set up like 4000 named ranges so that I can sumproduct multiple arrays of data. I'm running Excel Version 2010.
My Formulas:
Cell I2
=IFERROR(INDEX($E$1:$E$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(J$1,2))/($A$1:$A$32401=$H2&" - "&LEFT(J$1,2))*ROW($A$1:$A$32401)),$G2)),"")
Cell J2
=IFERROR(INDEX($D$1:$D$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(J$1,2))/($A$1:$A$32401=$H2&" - "&LEFT(J$1,2))*ROW($A$1:$A$32401)),$G2)),"")
Cell K2
=IFERROR(INDEX($E$1:$E$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(L$1,2))/($A$1:$A$32401=$H2&" - "&LEFT(L$1,2))*ROW($A$1:$A$32401)),$G2)),"")
Cell L2
=IFERROR(INDEX($D$1:$D$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(L$1,2))/($A$1:$A$32401=$H2&" - "&LEFT(L$1,2))*ROW($A$1:$A$32401)),G2)),"")
Cell M2
=IFERROR(INDEX($E$1:$E$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(N$1,3))/($A$1:$A$32401=$H2&" - "&LEFT(N$1,3))*ROW($A$1:$A$32401)),$G2)),"")
Cell N2
=IFERROR(INDEX($D$1:$D$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(N$1,3))/($A$1:$A$32401=$H2&" - "&LEFT(N$1,3))*ROW($A$1:$A$32401)),G2)),"")
Cell O2
=IFERROR(INDEX($E$1:$E$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(P$1,3))/($A$1:$A$32401=$H2&" - "&LEFT(P$1,3))*ROW($A$1:$A$32401)),$G2)),"")
Cell P2
=IFERROR(INDEX($D$1:$D$32401,AGGREGATE(15,3,(($A$1:$A$32401=$H2&" - "&LEFT(P$1,3))/($A$1:$A$32401=$H2&" - "&LEFT(P$1,3))*ROW($A$1:$A$32401)),G2)),"")