I am having a problem getting this formula to work, i have 3 cells of text that at the beginning has a date in the same cell as the text.
eg;
A1: 9/26/2009 this is test A, B1: 10/10/09 This is test B, C1: 9/4/09 This is test C.
i am trying to find a way to fill a cell with the contents of the cell that has the latest date
i would like D1 to say "10/10/09 This is test B"
the formula i am using is
{=ADDRESS(1,MATCH(TEXT(MAX(DATEVALUE(TEXT(LEFT(A1:C1&"1/1/2009 ",SEARCH(" ",A1:C1&"1/1/2009 ")-1),"mm/dd/yyyy"))),"mm/dd/yy")&"*",TEXT(LEFT(A1:C1&"1/1/2009 ",SEARCH(" ",A1:C1&"1/1/2009 ")-1),"mm/dd/yy")&"*",0),4)}
the formula works fine and returns the address of the cell with the latest date.
if i then put in cell E1 the formula
=OFFSET(INDIRECT((D1)),ROW(E1)-1,0)
it gives me the result i want.
however if i try to combine the formula to find the cell with the latest date, within the offset/indirect formula, i receive an error "the formula you typed contains an error".
does anyone have any idea why this is, and how to fix it?
thank you
eg;
A1: 9/26/2009 this is test A, B1: 10/10/09 This is test B, C1: 9/4/09 This is test C.
i am trying to find a way to fill a cell with the contents of the cell that has the latest date
i would like D1 to say "10/10/09 This is test B"
the formula i am using is
{=ADDRESS(1,MATCH(TEXT(MAX(DATEVALUE(TEXT(LEFT(A1:C1&"1/1/2009 ",SEARCH(" ",A1:C1&"1/1/2009 ")-1),"mm/dd/yyyy"))),"mm/dd/yy")&"*",TEXT(LEFT(A1:C1&"1/1/2009 ",SEARCH(" ",A1:C1&"1/1/2009 ")-1),"mm/dd/yy")&"*",0),4)}
the formula works fine and returns the address of the cell with the latest date.
if i then put in cell E1 the formula
=OFFSET(INDIRECT((D1)),ROW(E1)-1,0)
it gives me the result i want.
however if i try to combine the formula to find the cell with the latest date, within the offset/indirect formula, i receive an error "the formula you typed contains an error".
does anyone have any idea why this is, and how to fix it?
thank you