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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,215,301
Messages
6,124,146
Members
449,145
Latest member
el_gazar

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