View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default FIND A VALUE FROM CROSPONDING COLUM AND MULTIPLE CROSSPENDING ROW

With the query date 03/01/2010 in cell C2 try the below array formula
whichwill lookup the corresponding value from ColA.

Please note that this is an array formula. You create array formulas in the
same way that you create other formulas, except you press CTRL+SHIFT+ENTER to
enter the formula. If successful in 'Formula Bar' you can notice the curly
braces at both ends like "{=<formula}"

=IF(ISNUMBER(MATCH(C2,B:B,0)),INDEX(A:A,MAX(IF(IND IRECT("A1:A" &
MATCH(C2,B:B,0))<"",ROW(INDIRECT("A1:A" & MATCH(C2,B:B,0)))))),"")


--
Jacob


"Zia Butt" wrote:

S.NO Name "Pay Date/Paid Date"
A B
1 Zia 01/01/2010
2 03/01/2010
3 amir 12/12/2009
4 01/01/2010

Find the value for Zia (A1) from crossponding column B but row no 2 (B2)
whch is " 03/01/2010"