Error in VBA for formula array - IF ISNA MATCH

jwoo89

New Member
Joined
Jan 5, 2021
Messages
32
Office Version
  1. 2016
Platform
  1. Windows
Hi All -

I am getting an error when i post this into my VBA maco as a formula array.

=IF(ISNA(MATCH(LEFT(AJ3,3)&" * ",Indexes!$A$1:$A$100,0)),AM3,AM3*100)

But when i post it to excel as a regular formula it works.

Can someone please provide some help?

Thank you!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Why don't you turn on your Macro Recorder, and record yourself entering the formula into the worksheet.
Then, if you stop the Macro Recoder and view your code, you should have the VBA code you require.
 
Upvote 0
Did you double the quote marks ?

Rich (BB code):
ActiveCell.Formula = "=IF(ISNA(MATCH(LEFT(AJ3,3)&"" * "",Indexes!$A$1:$A$100,0)),AM3,AM3*100)"
 
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

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