Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() In the code, trying to assign the row number this formula returns to i. =LOOKUP(2,1/(A1:A20="abc"),ROW(A1:A20)) = 15 (on the sheet Array Enter) Errors out with "OneRng" in this line highlighted in blue (OneRng = "abc") Code compiles, but with "expanded" spaces?? Then errors when run. Sub SomeRangeA() Dim OneRng As Range Dim i As Long, ii As Long Set OneRng = Range("A1:A" & Cells(Rows.Count, "A").End(xlUp).Row) i = Application.WorksheetFunction.Lookup(2, 1 / (OneRng = "abc"), Row(OneRng)) End Sub Thanks, Howard |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
duplicate occurance, assigning an ordinal value | Excel Worksheet Functions | |||
Count occurance of largest duplicate number in a single column ran | New Users to Excel | |||
Occurance Number Within a String | Excel Discussion (Misc queries) | |||
How do I select the first occurance of a number in a column | Excel Programming | |||
Locating Cell Number of first occurance of data in Column | Excel Programming |