Days in Month

Vijeshkv

New Member
Joined
Aug 7, 2018
Messages
12
Hey ,
I need to know whether we can put a formula for Calendar days in a month , by ignoring weekends
Eg
Date Day. Day count
01/04/2023 Sunday 1
02/04/2023 Monday 1
03/04/2023 Tuesday 2

Like this if saturday sunday comes not to be counted as a dayb
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
=NETWORKDAYS(start_date, end_date, [holidays])
only counts weekdays and not the weekend

you can also use EOMONTH() to get the last day of the month


but i dont fully understand the question , or example - sorry

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
Hello, i have added file , result column is the result im looking
 

Attachments

  • Test date .png
    Test date .png
    36.9 KB · Views: 7
Upvote 0
Result
4/1/2023​
Saturday
1​
4/2/2023​
Sunday
2​
4/3/2023​
Monday
3​
4/4/2023​
Tuesday
4​
4/5/2023​
Wednesday
5​
4/6/2023​
Thursday
6​
4/7/2023​
Friday
7​
4/8/2023​
Saturday
8​
4/9/2023​
Sunday
9​
4/10/2023​
Monday
10​
4/11/2023​
Tuesday
11​
4/12/2023​
Wednesday
12​
4/13/2023​
Thursday
13​
4/14/2023​
Friday
14​
4/15/2023​
Saturday
15​
4/16/2023​
Sunday
16​
4/17/2023​
Monday
17​
4/18/2023​
Tuesday
18​
4/19/2023​
Wednesday
19​
4/20/2023​
Thursday
20​
4/21/2023​
Friday
21​
4/22/2023​
Saturday
22​
4/23/2023​
Sunday
23​
4/24/2023​
Monday
24​
4/25/2023​
Tuesday
25​
4/26/2023​
Wednesday
26​
4/27/2023​
Thursday
27​
4/28/2023​
Friday
28​
4/29/2023​
Saturday
29​
 
Upvote 0
Your first 2 results in the post #3 image seem inconsistent with the rest since there are no non-weekend days before 3 April.
Otherwise @etaf's formula seems to do what you want?

23 04 15.xlsm
AC
21/04/20230
32/04/20230
43/04/20231
54/04/20232
65/04/20233
76/04/20234
87/04/20235
98/04/20235
109/04/20235
1110/04/20236
1211/04/20237
1312/04/20238
1413/04/20239
1514/04/202310
1615/04/202310
1716/04/202310
1817/04/202311
1918/04/202312
2019/04/202313
2120/04/202314
2221/04/202315
2322/04/202315
2423/04/202315
2524/04/202316
2625/04/202317
2726/04/202318
2827/04/202319
2928/04/202320
3029/04/202320
3130/04/202320
Week Days
Cell Formulas
RangeFormula
C2:C31C2=NETWORKDAYS(A$2,A2)
 
Upvote 1
Solution

Forum statistics

Threads
1,215,431
Messages
6,124,855
Members
449,194
Latest member
HellScout

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