PDA

View Full Version : Solved: Excel 2007 If today is Monday show the previous Friday's date



Ike
01-05-2012, 11:40 AM
Hello All,

I would like a VBA that would do the following in cell I31.

I want the cell to populate the last working day's date.
Work days = Monday through Friday.

On Monday it would populate Friday's date. On Tuesday it would populate Monday's date, etc.

Thank you In Advance.

Ike

mancubus
01-06-2012, 02:09 AM
hi ike.
you dont need vba.

try
=WORKDAY(TODAY(),-1)
formula.

Ike
01-06-2012, 09:12 AM
Perfect. Thank you very much.