FormulaArray error

navb

New Member
Joined
Mar 5, 2011
Messages
31
Hi
I am trying to put a .FormulaArray but since the formula is of more than 225 characters, VBA is showing error. What is the way around for this? I have read a couple of posts describing the same problem where the solution is to use dummy formula and then replace in the original formula. I am new to VBA and haven't been able to make that way around work for me.

Selection.FormulaArray = _
"=INDEX('Estimated Sales Per Day'!R1C1:R[" & lastrow_ws_ESD & "]C[" & lastcol2_ws_ESD & "]),MATCH('Lost Sales Calculation'!RC[-3],'Estimated Sales Per Day'!R2C1:R" & lastrow_ws_ESD & "C1,0),MATCH(VALUE('Lost Sales Calculation'!RC[-4]),'Estimated Sales Per Day'!R1000C2:R1000C [" & lastcol2_ws_ESD & "],0))"
Thanks in advance
Your help will be greatly appreciated
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
its actually only 214 long

"=INDEX('Estimated Sales Per Day'!R1C1:R[" & lastrow_ws_ESD & "]C[" & lastcol2_ws_ESD & "]),MATCH('Lost Sales Calculation'!RC[-3],'Estimated Sales Per Day'!R2C1:R" & lastrow_ws_ESD & "C1,0),MATCH(VALUE('Lost Sales Calculation'!RC[-4]),'Estimated Sales Per Day'!R1000C2:R1000C [" & lastcol2_ws_ESD & "],0))"

But the bracket in bold ... is suspect

may need another look
 
Upvote 0

Forum statistics

Threads
1,224,516
Messages
6,179,231
Members
452,898
Latest member
Capolavoro009

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