ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula to calculate business day (https://www.excelbanter.com/excel-discussion-misc-queries/211713-formula-calculate-business-day.html)

fsfiligoi

Formula to calculate business day
 
Which formula could I use to calculate the business day (or working day) of a
particular date. In my example, Jan 2 would be the first business day of the
month, Jan 5 would be the second business day of the month and so on. Could
it say weekend or something else for the non business days?
Example
Date Business day
1-Jan-09
2-Jan-09 1
3-Jan-09
4-Jan-09
5-Jan-09 2
6-Jan-09 3
7-Jan-09 4


porter444

Formula to calculate business day
 
Formula in Weekday column:
=WEEKDAY(A2)

Forumla in Business Day column:
=IF(B2=1,"Weekend",IF(B2=7,"Weekend","Business Day"))

Date weekday business day?
1/1/2009 5 Business Day
1/2/2009 6 Business Day
1/3/2009 7 Weekend
1/4/2009 1 Weekend
1/5/2009 2 Business Day
1/6/2009 3 Business Day
1/7/2009 4 Business Day
1/8/2009 5 Business Day
1/9/2009 6 Business Day
1/10/2009 7 Weekend
1/11/2009 1 Weekend
1/12/2009 2 Business Day
1/13/2009 3 Business Day

--
If my posting was helpful, please click the "Yes" button.

ROCK ON!,

Scott


"fsfiligoi" wrote:

Which formula could I use to calculate the business day (or working day) of a
particular date. In my example, Jan 2 would be the first business day of the
month, Jan 5 would be the second business day of the month and so on. Could
it say weekend or something else for the non business days?
Example
Date Business day
1-Jan-09
2-Jan-09 1
3-Jan-09
4-Jan-09
5-Jan-09 2
6-Jan-09 3
7-Jan-09 4


fsfiligoi

Formula to calculate business day
 
Thanks Scott but that wouldn't always work.. In fact 1/1/09 is not a
business day. I'm also trying to find out which business day a particular
day would be: 1st, 2nd, etc. But I can try to figure something out with the
info you sent me. Thanks again!


"porter444" wrote:

Formula in Weekday column:
=WEEKDAY(A2)

Forumla in Business Day column:
=IF(B2=1,"Weekend",IF(B2=7,"Weekend","Business Day"))

Date weekday business day?
1/1/2009 5 Business Day
1/2/2009 6 Business Day
1/3/2009 7 Weekend
1/4/2009 1 Weekend
1/5/2009 2 Business Day
1/6/2009 3 Business Day
1/7/2009 4 Business Day
1/8/2009 5 Business Day
1/9/2009 6 Business Day
1/10/2009 7 Weekend
1/11/2009 1 Weekend
1/12/2009 2 Business Day
1/13/2009 3 Business Day

--
If my posting was helpful, please click the "Yes" button.

ROCK ON!,

Scott


"fsfiligoi" wrote:

Which formula could I use to calculate the business day (or working day) of a
particular date. In my example, Jan 2 would be the first business day of the
month, Jan 5 would be the second business day of the month and so on. Could
it say weekend or something else for the non business days?
Example
Date Business day
1-Jan-09
2-Jan-09 1
3-Jan-09
4-Jan-09
5-Jan-09 2
6-Jan-09 3
7-Jan-09 4


Shane Devenshire[_2_]

Formula to calculate business day
 
Hi,

Try this

=IF(NETWORKDAYS(A2,A2,E$1:E$5)=0,"",NETWORKDAYS($A $2,A2,E$1:E$5))

Where A2 is the first date of the year and the range E1:E5 contains any
holidays in your business year.

Cheers,
Shane Devenshire

"fsfiligoi" wrote:

Which formula could I use to calculate the business day (or working day) of a
particular date. In my example, Jan 2 would be the first business day of the
month, Jan 5 would be the second business day of the month and so on. Could
it say weekend or something else for the non business days?
Example
Date Business day
1-Jan-09
2-Jan-09 1
3-Jan-09
4-Jan-09
5-Jan-09 2
6-Jan-09 3
7-Jan-09 4


fsfiligoi

Formula to calculate business day
 
Thank you Shane. I actually see all blanks. Do you think I should change
something?

"Shane Devenshire" wrote:

Hi,

Try this

=IF(NETWORKDAYS(A2,A2,E$1:E$5)=0,"",NETWORKDAYS($A $2,A2,E$1:E$5))

Where A2 is the first date of the year and the range E1:E5 contains any
holidays in your business year.

Cheers,
Shane Devenshire

"fsfiligoi" wrote:

Which formula could I use to calculate the business day (or working day) of a
particular date. In my example, Jan 2 would be the first business day of the
month, Jan 5 would be the second business day of the month and so on. Could
it say weekend or something else for the non business days?
Example
Date Business day
1-Jan-09
2-Jan-09 1
3-Jan-09
4-Jan-09
5-Jan-09 2
6-Jan-09 3
7-Jan-09 4



All times are GMT +1. The time now is 07:30 PM.

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