Hi Sadhana ,
Try this :
=IFERROR(COUNTIF(OFFSET(Data_Range,0,MATCH(TODAY(),Dates_Row,0)-1,ROWS(Data_Range),1),"NA"),0)
where Data_Range is a defined named range referring to =!$D$2:$AH$33
Dates_Row is a defined named range referring to =!$D$1:$AH$1
In case you do not have Excel 2007 or later , you cannot use the IFERROR function ; instead you will have to use the following formula :
=IF(ISERROR(COUNTIF(OFFSET(Data_Range,0,MATCH(TODAY(),Dates_Row,0)-1,ROWS(Data_Range),1),"NA")),0,COUNTIF(OFFSET(Data_Range,0,MATCH(TODAY(),Dates_Row,0)-1,ROWS(Data_Range),1),"NA"))
Narayan