vba formula problem

rjmdc

Well-known Member
Joined
Apr 29, 2020
Messages
708
Office Version
  1. 365
Platform
  1. Windows
Hi
Please see if you can easily fix
It is NOT choosing when column C says status “A” I think that’s missing form the formula but I don’t know how to add it
where its red its not working i am using the "A" incorrectly


Cells(target.Row, "Q").Formula2R1C1 = _
"=IF([@[Tabs ID]]="""","""",IFERROR(INDEX(Vendors_with_Addresses[Payee], MATCH(TEXT(INDEX('ClassesMemberships Names'!R1C3:R10000C3, MATCH(1, (""Y""='ClassesMemberships Names'!R1C4:R10000C4)*('ClassesMemberships Names'!R1C1:R10000C1=[@[Class/Membership Name]]),0), 0), 0),Vendors_with_Addresses[Vendor ID], 0), 0),IFERROR(INDEX('Vendors with Addresses'!C[-16], " & _
"MATCH(1,('Vendors with Addresses'!C[-4]=Value([@[Tabs ID]]))*('Vendors with Addresses'!C[-14]=" & Chr(34) & "A" & Chr(34) & "),0)), ""CHOOSE OVERRIDE PAYEE"")))" & _
""
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
After the formula is added to the sheet, outside of VBA, did you step through the formula using the Formula Auditing tool Evaluate Formula, to see if the test of column C being "A" works or not?
 
Upvote 0

Forum statistics

Threads
1,224,734
Messages
6,180,632
Members
452,991
Latest member
JM_000888

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