Custom Date Format needed

Jaffabfc

Board Regular
Joined
Jul 5, 2013
Messages
196
Office Version
  1. 365
Platform
  1. Windows
Hi Al,

Been trying to get this custom date format on a file i have but struggling to get it right.

So at the moment going left to right we have dates in the format of 1st Jan 2nd Jan etc
i want the format exactly like that with every date until the end of the year, without Weekends and Bank Holidays but struggling to get over the first hurdle.

Should be able to sort out the weekends/bank holidays with a networkdays() formula.

Can someone point in right direction, i have tried DD MMM but thats not working as it puts a dash in the middle.

THanks
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Probably this is what you need
 
Upvote 0
I think the following is included in the link posted by Zot

Step (5) below assumes you have holiday dates listed in A1:A10 of a separate sheet (“Sheet2”).
(1) Custom format A2 : d”th” mmm
(2) Conditional Format A2 with 3 formulas and number formats :
Formula =OR(DAY(A2)=1,DAY(A2)=21,DAY(A2)=31)
Format d”st” mmm
Formula =OR(DAY(A2)=2,DAY(A2)=22)
Format d”nd” mmm
Formula =OR(DAY(A2)=3,DAY(A2)=23)
Format d”rd” mmm
(3) Copy A2 and pastespecial/format to B2
(4) Enter the start date in A2
(5) Enter in B2 : =WORKDAY(A2,1,Sheet2!$A$1:$A$10)
(6) Drag B2 across as far as required)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,855
Members
449,096
Latest member
Erald

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