Long array formulas in VBA...

Matty

Well-known Member
Joined
Feb 17, 2007
Messages
3,717
Hi,

I have tried the solution detailed in the attached link:

Daily Dose of Excel » Blog Archive » Entering Long Array Formulas in VBA

But I can't seem to adapt it to work for my situation.

The formula I am using is such that it can't be slimmed down sufficiently to fall inside of the 255 character limit.

My formula is in excess of 600 characters, so is there a way of doing utilising this solution with multiple replaces?

Thanks,

Matty
 
Hello pgc01,

Kindly could you advise on how to split the following formula with place holders.
I just can't get my head around it.

Code:
        "=IFERROR(INDEX('Sales Detailed'!G:G,SMALL(IF(('Sales Detailed'!$D$2:$D$" & salesCount & "=""TBR"")+('Sales Detailed'!$F$2:$F$" & salesCount & "=$A2)+('Sales Detailed'!$AG$2:$AG$" & salesCount & "<>""Export"")+('Sales Detailed'!$AG$2:$AG$" & salesCount & "<>""Demo"")+('Sales Detailed'!$AG$2:$AG$" & salesCount & "<>""Courtesy"")=5,ROW('Sales Detailed'!$G$2:$G$" & salesCount & ")),COUNTIF(A$2:A2,A2))),""No Model Found In Sales List"")"
Thanks,
Philip
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

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