Thread: Offset 2nd ref.
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default Offset 2nd ref.

Try the below array formula which will lookup and return the 2nd matching value
=INDEX(B1:B10,SMALL(IF(A1:A10="One",ROW(A1:A10)),2 ))

With text 'One" in cell C1 and the instance number in cell D1
(array entered using Ctrl+Shift+Enter instead of Enter)
=INDEX(B1:B10,SMALL(IF(A1:A10=C1,ROW(A1:A10)),D1))

will return the last matching value in B if data is continuous (just works
for your sample).
=LOOKUP("one",A:A,B:B)
=VLOOKUP("one",A:B,2,1)

--
Jacob


"houAstros1989" wrote:

A B
ONE 1
TWO 2
THREE 3
ONE 4


Is there a way I can use the offset to look up a duplicate reference? To
where I ref ONE and come up with 4.