How do I extract business day from a date?

mcmuney

Board Regular
Joined
Sep 11, 2015
Messages
101
Office Version
  1. 365
Example:

5/1/18 Sat
5/2/18 Sun
5/3/18 Mon (what formula can extract from 5/3/18 that it's business day 1?; just need "1")

Using the same series of dates from above, 5/10/18 would be "6".

Thanks in advance.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Those dates don't exist. May 3, 2018 is a Thursday.
 
Upvote 0
Hi,


Book1
ABC
15/1/20182
25/2/20183
35/3/20184
45/10/20184
59/3/20181
Sheet46
Cell Formulas
RangeFormula
C1=WEEKDAY(A1,2)


Formula copied down.
 
Upvote 0
Hi,

ABC

<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]5/1/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]5/2/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"]3[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]5/3/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"]4[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]5/10/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"]4[/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]9/3/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"]1[/TD]

</tbody>
Sheet46

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C1[/TH]
[TD="align: left"]=WEEKDAY(A1,2)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

Formula copied down.

Column C cannot repeat until the next month. Here's how it should be for May:

[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]#[/TD]
[TD="align: center"]Date[/TD]
[TD="align: center"]Business Day[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]5/1/2018[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]5/2/2018[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]5/3/2018[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]5/4/2018[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]5/7/2018[/TD]
[TD="align: center"]5[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Your sample and description wasn't clear and didn't match up.

This will give you business day count (Monday thru Friday), you'll need an Empty or Header row between months, and it does Not account for holidays:


Book1
ABF
1DateBusiness Day
25/1/20181
35/2/20182
45/3/20183
55/4/20184
65/5/2018
75/6/2018
85/7/20185
95/8/20186
105/9/20187
115/10/20188
125/11/20189
135/12/2018
Sheet46
Cell Formulas
RangeFormula
F2=IF(OR(WEEKDAY(A2,2)={6,7}),"",IFERROR(LOOKUP(9.99999999999999E+307,F$1:F1),0)+1)


Formula copied down.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top