You say you have column for the month and column for the day.
If the month has been input in the format Aug-06 and day is the full
weekday, e.g. "Wednesday" then assuming date in A2 and weekday in B2
=SUMPRODUCT(--(TEXT(ROW(INDIRECT(A2&":"&A2+31-(DAY(A2+31)))),"dddd")=B2))
--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile:
http://www.excelforum.com/member.php...o&userid=30486
View this thread:
http://www.excelforum.com/showthread...hreadid=568898