Hi there,
Take a look at the attached version of your workbook and see if it gets you moving in the right direction.
A few points:
I'm operating with Excel 2013, and therefore don't have access to the XLOOKUP function, so I've used the old-fashioned INDEX and MATCH approach;
you are applying the XLOOKUP and COUNTIF functions to entire rows (16,384 cells) and columns (1,048,576 cells) - i.e. HUGE numbers of cells, so you can certainly expect performance to take a fairly sizeable hit in such cases;
I've applied my formulas to 26 columns (A:Z) and 500 rows (1:500) for demonstration purposes. You will probably need to increase the number or columns to suit your eventual requirements, but the number of rows might be sufficient;
the array formulas which you use in column M appear slightly complicated, so I did not bother trying to convert them, and just copied the cell VALUES from your original workbook. Obviously you will need to replace these values with appropriate formulas.
Typical formula conversions are as follows:
Reps Adjustment Sheet, Cell C4:
=_xlfn.XLOOKUP(C$2,'Reps (Per Week)'!$1:$1,'Reps (Per Week)'!8:8)
was replaced with:
=INDEX('Reps (Per Week)'!A8:Z8, MATCH(C$2, 'Reps (Per Week)'!A$1:Z$1, 0))
Reps Adjustment Sheet, Cell G4:
=IF(E4="NONE",0,COUNTIF(I:I,E4))
was replaced with:
=IF(E4 = "NONE", 0, COUNTIF(I$1:I$500, E4))
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks