Additionally, depending on the version of Excel, the Weekday function has several options that may can make things easier:
=IF(WEEKDAY(E3,16)<3,E3-WEEKDAY(E3,16),E3)
The Option of 16 for Weekday results in a 1 or 2 for the weekend, making only 1 logic statement and calculating the date easier.