vba formula problem

rjmdc

Well-known Member
Joined
Apr 29, 2020
Messages
672
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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,215,129
Messages
6,123,216
Members
449,091
Latest member
jeremy_bp001

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