Hi everyone,
I use a combination of Index and match to do a Vlookup on 2 criteria.
Return_Range = the range the Values are in
Find1 = the First Criteria
Find2 = The Second Criteria
Range1 = where the first Criteria is
Range2 = where the second Criteria is
with CTRL+SHIFT+ENTER
however it gets very tedious to enter this in several times a day.
i'm hoping to do something similar in Excel VBA as a UDF.
but i'm not sure how to write UDF's
i was thinking along the lines of
Dbl_Vlook(Return_Range,Find1,Find2,Range1,Range2)
Can anyone help?
Thanks
I use a combination of Index and match to do a Vlookup on 2 criteria.
Return_Range = the range the Values are in
Find1 = the First Criteria
Find2 = The Second Criteria
Range1 = where the first Criteria is
Range2 = where the second Criteria is
with CTRL+SHIFT+ENTER
Code:
=INDEX(Return_Range,MATCH(Find1,IF(Range2=Find2,Range1),0))
however it gets very tedious to enter this in several times a day.
i'm hoping to do something similar in Excel VBA as a UDF.
but i'm not sure how to write UDF's
i was thinking along the lines of
Dbl_Vlook(Return_Range,Find1,Find2,Range1,Range2)
Can anyone help?
Thanks