I have the following function : =TODAY()-1
The problem is that if we're monday it gives me sunday's date whereas
I only want weekdays so in this case friday.
Any idea on how to mod the function to do that?
thanks
Try this.
=WORKDAY(NOW(),-1)
If you get a #MAME error then
Tools|Addins and check the analysis toolpak.
Mike
--
If this helps, please click the Yes button.
Cheers,
Shane Devenshire
Mkie
This depends on what days you do this for, if you only use the file Monday
to Friday then
=TODAY()-(MOD(TODAY(),7)=2)-1
If on the otherhand you might open the file on Sunday then the above will
need to be modified.
--
If this helps, please click the Yes button.
Cheers,
Shane Devenshire
Hey,
Thanks, I think it works but was wondering how you constructed it,
especially regarding the use of MOD function. Thanks