Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have Ms Office 2003.
I am unable to use Match function in VBA. I tried both Application.worksheetfunction.match as well as Application.match. I have data in 118 rows from column "A" to Column "L". I want to find the row which matches three text criteria (D,K & L) and on numerical criteria ("A"). I was trying to capture the row number in cell "Q2" to check whether the formula is working in VBA and to develop the programme thereafter. I used "$" mark to array addresses but these were declared as invalid characters. I used "" to enclose the addresses. That also did not work. I code reads as under: ======= Sub matching_rows() Worksheets("sheet2").Activate Range("q2").Value = Application.Match(1, _ (L1:L118 = "Sep") * (K1:K118 = "Cricket") * _ (D1:D118 = "Off") * (A1:A118 < 1), 0) End Sub ======= Can any one help ? Thanks in advance. -- esbee |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
find the second match using the match function | Excel Worksheet Functions | |||
how can we get unique values in match function for same match key. | Excel Worksheet Functions | |||
index match array function-returning only first match, need last. | Excel Worksheet Functions | |||
Match as well as does not match array function | Excel Discussion (Misc queries) | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions |