You can find the column of the date in question by something like
Set rng = Sheets("yoursheet").Range("daterange").Find(date)
datecol = date.column
You need to define date as the date you are looking for, and obviousl
have the ranges defined
Then you can use datecol as the maximum column in your sum formul
--
duan
-----------------------------------------------------------------------
duane's Profile:
http://www.excelforum.com/member.php...fo&userid=1162
View this thread:
http://www.excelforum.com/showthread.php?threadid=27596