Multi Criteria Search from XLAM Table

paulicus

New Member
Joined
Oct 10, 2014
Messages
1
So here is the basic problem, I have a table "vwSVC_RegTool" that is stored in an xlam. I am trying to create a macro that will check 2 ranges, Yearlk and Svclk and find the resulting value.
Basically how this work is, it uses an index match along with the evaluate function to get the information. If i run it as a macro not in an xlam it works fine. Once i put it in an xlam it cannot find the tables. I am thinking the only thing i need to do is change how i reference the xlam tables. However, i cannot find this information anywhere.

Dim Exists as Variant


Exists = Evaluate("=INDEX(vwSVC_RegTool[service_code_id],MATCH(1,(vwSVC_RegTool[term_year]=yearlk)*(vwSVC_RegTool[service_code_id]=svclk),0))")

If Exists = Range("svclk").Value Then
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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