I am trying to modify the formula listed below to return the date of the closest Friday. So if the date falls on a wednesday, thursday or friday, it returns that friday. Then if a date falls on the tuesday or monday, it would return the previous friday.
=D175-WEEKDAY(D175,3)-IF(AND(WEEKDAY(D175,3)>=3,WEEKDAY(D175,2)<=5),5,3)
=D175-WEEKDAY(D175,3)-IF(AND(WEEKDAY(D175,3)>=3,WEEKDAY(D175,2)<=5),5,3)