Speeding up my process with Dynamic formula for Excel Online

Mooncake1

New Member
Joined
Sep 18, 2021
Messages
16
Office Version
  1. 365
Platform
  1. Windows
hi friends!

I currently am sorting my sheet like the attached page.

Basically I have a few unique numbers, want to add a comment next to it, then lookup the value against full columns where the number exists in the data table in col I&J. Then I want to add the comment to each replicate of the unique number. I have two priorities at the moment, col F is first priority, col E is second priority.

I am attaching this dynamic range to "Maxrows" which can be anywhere from 500 - 50000 rows. I'm finding my comments take a LONG time to compute via my method. Using singular reference formula rather than dynamic seemed quicker, but I don't understand why if I'm covering the same amount of rows? I would really want to use a dynamic formula for this as it saves DRASTICALLY on file size and allows for dynamic input.

It works right now, but it's slow as heck in Excel Online. Anyone got ideas on how I can speed this up? I'd love to try tackle this from a few different angles. If it helps, the data table also exists with a chronological index number next to it, so it would go 1,2,3,4,5,6,7 as it goes down if a XLOOKUP binary might help.

Please see below page.
Book1.xlsx
ABCDEFGHIJK
1Priority 2 ListPriority 1 ListCommentsLookup Priority 2Lookup Priority 1Combined by priorityData table List 2Data table list 1Maxrows:
221215332Hello!Hello!Hello!Hello!2121533239
3Hello!Hello!Hello!21215332
4Hello!Hello!Hello!21215332
5Hello!Hello!Hello!21215332
6Hello!Hello!Hello!21215332
7Hello!Hello!Hello!21215332
8Hello!Hello!Hello!21215332
9Hello!Hello!Hello!21215332
104461See ya!See ya!See ya!4461
11See ya!See ya!4461
12See ya!See ya!4461
13See ya!See ya!4461
14See ya!See ya!4461
15See ya!See ya!4461
16See ya!See ya!4461
17See ya!See ya!4461
18See ya!See ya!4461
1942186838Hi!Hi!Hi!Hi!42186838
20Hi!Hi!Hi!42186838
21Hi!Hi!Hi!42186838
22Hi!Hi!Hi!42186838
23Hi!Hi!Hi!42186838
24Hi!Hi!Hi!42186838
25Hi!Hi!Hi!42186838
26Hi!Hi!Hi!42186838
27Hi!Hi!Hi!42186838
28Hi!Hi!Hi!42186838
29Hi!Hi!Hi!42186838
30Hi!Hi!Hi!42186838
3189049901Hola!Hola!Hola!Hola!89049901
32Hola!Hola!Hola!89049901
33Hola!Hola!Hola!89049901
34Hola!Hola!Hola!89049901
35Hola!Hola!Hola!89049901
369999Goodbye!Goodbye!Goodbye!9999
37Goodbye!Goodbye!9999
38Goodbye!Goodbye!9999
39Goodbye!Goodbye!9999
Sheet1
Cell Formulas
RangeFormula
E2:E39E2=IFERROR(LET(ReturnP,XLOOKUP(I2:INDEX(I:I,Maxrows),$A2:INDEX(A:A,Maxrows),$C2:INDEX(C:C,Maxrows),,0),IF(ReturnP=0,"",ReturnP)),"")
F2:F39F2=IFERROR(LET(ReturnP,XLOOKUP(J2:INDEX(J:J,Maxrows),$B2:INDEX(B:B,Maxrows),$C2:INDEX(C:C,Maxrows),,0),IF(ReturnP=0,"",ReturnP)),"")
G2:G39G2=IF(F2:INDEX(F:F,Maxrows)="",E2:INDEX(E:E,Maxrows),F2:INDEX(F:F,Maxrows))
Dynamic array formulas.
Named Ranges
NameRefers ToCells
Maxrows=Sheet1!$K$2E2:G2




Thanks !!!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
just following up this:

its not slow at all! I just forgot that one reference was too big! :D
 
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,777
Members
449,187
Latest member
hermansoa

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