I cannot seem to get this to work and i am hoping one of the resident experts can shed some light on what i am doing wrong.
Essentially, I am trying to use a combination of Index and Match functions from within VBA to identify multiple criteria and then return a related value from another column in the identified row. I have attached a sample file with the following 2 simple scenarios:
On a Userform are 2 scenarios:
Single Criteria [WORKING] - Selecting a date from the top combobox triggers the macro to match the selection with a column on the "Raw Data" sheet. It if there is a match it puts the corresponding value from column C ("Flag") into the top label on the userform.
Multiple Criteria [NOT WORKING] - Selecting a date from the bottom combobox triggers the macro to match the selection with a column on the "Raw Data" sheet. It also attempts to match a string (stock symbol) from the "Main" worksheet in A2 to a column on the "Raw Data" worksheet. The bottom label on the userform should only show a value if both criteria are met.
After spending some time on this and learning about the behavior of the Match function in VBA i think i have gotten very close... but i am still missing something. Hopefully it is syntax related. Any help would be greatly appreciated!
Single Criteria Code[Working]:
Multiple Criteria Code [Not Working]:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Bookmarks