Formula too long

dshafique

Board Regular
Joined
Jun 19, 2017
Messages
171
Hi Guys! I am having an issue where my array formula is to long for the vba. I know that the limit is 255, but mine is 284+. I dont know how I can shrink it or parse it. Any help would be greatly appreciated.

the formula is

Code:
{=IFERROR(INDEX(pTable,MATCH(1,(pTable[[EMPLOYEE]:[EMPLOYEE]]=[@EMPLOYEE])*(pTable[[APPLICATION_NAME]:[APPLICATION_NAME]] = [@[APPLICATION_NAME]])*(pTable[[ACCESS LEVEL]:[ACCESS LEVEL]]=[@[ACCESS LEVEL]])*(pTable[[ENTITLEMENT NAME]:[ENTITLEMENT NAME]] = [@[ENTITLEMENT NAME]]),0),4),"")}

Thanks!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Try writing the formula with standard range notation like A1:A100, instead of the table notation
 
Upvote 0
Also, the quotes at the end of the formula will be a problem when entering the formula with VBA.

You have to double those up..

change "" to """"
 
Upvote 0
That's actually not a bad idea @njimack

the macros is dynamic, so cant say the range will be the same for each one @Jonmo1

thanks guys!
 
Upvote 0
You can make it so that the formula is Not an array formula to begin with..

This is the part that requires it to be an array

MATCH(1,(range=criteria)*(range=criteria)*(range=criteria),0)

You can change that to

MATCH(1,INDEX((range=criteria)*(range=criteria)*(range=criteria),0),0)


This will no longer require the formula to be entered as an array, therefore not limited to 255.
 
Upvote 0

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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