H 
		
								
				
				
			
		Huggy
I have a spreadsheet with column A being list of dates (from 1/1/08 - 31/12/10)
in order and column B a list of codes. Each codes periodically is repeasted
in no fixed order. Column C and D have data that relate to the code in column
B.
What I would like to do is based on todays date show the last time the code
was used before today along with the data in column B & C, then show the next
time the code is used from today onwards along with the data in column B & C.
Thanks for the help.
				
			in order and column B a list of codes. Each codes periodically is repeasted
in no fixed order. Column C and D have data that relate to the code in column
B.
What I would like to do is based on todays date show the last time the code
was used before today along with the data in column B & C, then show the next
time the code is used from today onwards along with the data in column B & C.
Thanks for the help.
	
,SMALL(IF($B$1:$B$65535=$F2,ROW($B$1:$B$65535)),COUNTIF(OFFSET($B$1,0,0,MATCH(TODAY(),$A:$A,1),1),$F2)+1))