ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Last workday (https://www.excelbanter.com/excel-worksheet-functions/270835-last-workday.html)

Mortir

Last workday
 
How could i create a function that would aways show me last workday
before today? so for example:

1.today is wednesday 15 jun. So the function would show: tuesday 14
jun
2. today is monday 13 jun and the funtion would show: friday 10 jun

tnx for your help

Claus Busch

Last workday
 
Hello,

Am Wed, 15 Jun 2011 03:57:05 -0700 (PDT) schrieb Mortir:

1.today is wednesday 15 jun. So the function would show: tuesday 14
jun
2. today is monday 13 jun and the funtion would show: friday 10 jun


your date in A1. Then try:
=A1-CHOOSE(WEEKDAY(A1),2,3,1,1,1,1,1)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

Rick Rothstein

Last workday
 
How could i create a function that would aways show me last
workday before today? so for example:

1.today is wednesday 15 jun. So the function would show:
tuesday 14 jun
2. today is monday 13 jun and the funtion would show:
friday 10 jun


Try this formula...

=WORKDAY(A1,-1)

If you are using XL2003 or earlier, then you need to have the Analysis
ToolPak add-in selected (Tools/Add-Ins on the menu bar).

Rick Rothstein (MVP - Excel)



All times are GMT +1. The time now is 03:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com