Working days

wildturkey

Board Regular
Joined
Feb 21, 2006
Messages
189
Office Version
  1. 365
Platform
  1. Windows
Have tried, have failed...

Cell F1 has todays date in it, Cells E1 to B1 should have the preceeding four days but if its a weekend the days are skipped. Ive then formatted to show the day only eg

Tue Wed Thur Fri Mon
Wed Thur Fri Mon Tue
Thur Fri Mon Tue Wed etc etc

Currently have the worlds longest nested IF that still doesnt work :(
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
have you tried workday()
so
WORKDAY(F1,-4)
i then copied that from E1 to D1 etc , so each cell has 4 days less than next cell and ignores weekends
you can also ad dholidays , so it will ignore those as well

Cell Formulas
RangeFormula
B1:E1B1=WORKDAY(C1,-4)
F1F1=TODAY()
 
Upvote 0
or to show the day =TEXT(WORKDAY(F1,-4),"dddd")
-4 = no.of day from date in this instance 4 dates prior to the date etc.
 
Upvote 0
Missed that
OR just format the cell as DDDD
it still has the date , if you need to work later on the actual date but displays the day

Cell Formulas
RangeFormula
B1:E1B1=WORKDAY(C1,-4)
F1F1=TODAY()
 
Upvote 0
or as etaf said formatting the cells works as well
:ROFLMAO: sometimes miss the east things
 
Upvote 0
I was missing Workday - had tried weekday and that's where I was having issues - many thanks all
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,488
Members
448,967
Latest member
visheshkotha

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