Hi,
I have a spreadsheet with several named ranges:-
A2:A100 Trainer_Name
B2:B200 Start_Date
C2:C200 End_Date
D2200 Course_Name
I use the following formula on the worksheet to display a 1 value in the cell if a course is taking place by a trainer on a given date or a 2value if the dates are over a weekend:-
=SUMPRODUCT(($G5=Trainer_Name)*(Start_Date<=H$4)*(End_Date>=H$4))+IF(WEEKDA Y(H$4,2)>5,2,0)
I need a macro to look at all the cells in the worksheet that display a value 1 (e.g. a course is taking place) and insert a comment in the appropriate cell by looking up the appropriate course from the named range in cells D2200
Can this be done, and if so, can anyone please point me in the right direction? My VBA skills are very limited.
Many thanks for taking the time to look at this, and any help suggested is greatfully acknowledged.
Regards,
Gary