get the 12th date

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
741
Office Version
  1. 365
  2. 2010
not sure if this is possible, but I'm trying to get the 12th day ..but if the 12th day falls on a weekend , I want the tuesday following

e.g., this month (July)...July 12th is fine because it falls on a Friday


but, for May....the 12th was on a Sunday, so I want the formula to pick up May 14, Tuesday.

another example is January....12th was on a Saturday, so I want formula to pick up January 15 , Tuesday


What's the reference point? It doesn't matter to me (e.g., absed on today's date, end of month date, working end of month date, etc.)....whatever is easiest I guess!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
WORKDAY is the function to go with, or at least start with.
Are you also excluding Mondays?
 
Upvote 0
Aug 12 is a Monday. It is not a Weekend. So you want Monday, August 12th?
 
Upvote 0
Hi, Assuming from @SpillerBD's post #6 that if for Aug 12 you want Monday only, then below can be 1 option:

Book1
ABC
17/1/20197/12/2019Friday
28/1/20198/12/2019Monday
39/1/20199/12/2019Thursday
410/1/201910/15/2019Tuesday
511/1/201911/12/2019Tuesday
612/1/201912/12/2019Thursday
71/1/20201/12/2020Sunday
Sheet3
Cell Formulas
RangeFormula
B1=IF(WEEKDAY(A1+11,2)={6,7},A1+11+3,A1+11)
 
Last edited:
Upvote 0
Try the following

Excel 2010
AC
101-Jul-19Fri 12-Jul-19
201-Aug-19Tue 13-Aug-19
301-Sep-19Thu 12-Sep-19
401-Oct-19Tue 15-Oct-19
501-Nov-19Tue 12-Nov-19
601-Dec-19Thu 12-Dec-19
701-Jan-20Tue 14-Jan-20
8
1c
Cell Formulas
RangeFormula
C1=WORKDAY.INTL(A1+10,1,"1000011")
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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