Weekday Calculation (missing SAT & SUN)

Babylon5

New Member
Joined
Sep 5, 2018
Messages
10
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Good Evening, maybe its after a hard day and I am tired, but I can't fathom out how to create a list of days, that dont include Sat or Sun.

The Date to calculate the Days from is in $I$18

in cells $C61 onwards for th next 10 cells, $C70 I want to show the dates, missing out Saturdays and Sundays

So for example todays date in $I$18 is 15/11 (15th Nov), the sheet would show :-

$C61 would be 16th Nov
$C62 would be 17th Nov
$C63 would be 18th Nov
$C64 would be 19th Nov
$C65 would be 22nd Nov
$C66 would be 23rd Nov
$C67 would be 24th Nov
$C68 would be 25th Nov
$C69 would be 26th Nov
$C70 would be 29th Nov

I am currently using WEEKDAY, testing each cell to see if its a weekend then adding extra days, i.e. if its a Saturday add 2 days to make it a Monday, if its a Sunday add1 day ext, it works so far then becomes disruped into the second week, and also loses it if today is a Friday.

Can you help me out please ?

Many thanks

Rich
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
How about
Excel Formula:
=WORKDAY($I$18,ROWS(C$61:C61))
 
Upvote 0
Solution
Check that the value in I18 is a real date & not text.

Also what version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Check that the value in I18 is a real date & not text.

Also what version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Hi Fluff, MY MISTAKE, apologies !

I was referencing $I19 instead and now that I changed it, it works a treat, Many thanks

How does it work though ?, I understand the array counts up 1 to 10, but don't see why it misses out Sat & Sun - What Black Magic are you using ? :)

Many thanks, very much appreciated,

Rich
 
Upvote 0
What Black Magic are you using
Absolutely none, it's what the workday function (ie returns working days).

Please don't forget to update your account details to sow your version of Excel.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

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