Calculating month 1 based on a date

nengel

New Member
Joined
Mar 20, 2015
Messages
8
Hi all:

I am trying to calculate two things - Identify an persons Month 1 based on when they were hired in a month - up to and including the 15th and then after the 15th

For example if the start date is <= 15th day of the month (ie March 14th) your hire month is March, if your start date is >15 (March 16) then your hire month is April. My calculation works except for when the start date is in December December 25) and the hire month should be January of the following year. Here is my formula - =IF(DAY(A3)<=15, MONTH(A3), IF(DAY(A3)>15,MONTH(A3)+1))

Once I have the hiring month calculated I need a different formula to indicate Training status - For example if the person's hire month <=4 months then their status is "Training" and if their hire month >4 months they are "Trained". I am really struggling with this one. =IF(EDATE(B8,4),"Training", IF(EDATE(B8,5), "Trained"))

Appreciate any help you can provide. Hoping that I am clear with what I am trying to do.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Screenshots attached
 

Attachments

  • Hiring month.jpg
    Hiring month.jpg
    28.1 KB · Views: 5
  • Training Status.jpg
    Training Status.jpg
    30.5 KB · Views: 5
Upvote 0
Hi,

2 ways to show Hiring Month, B2 and C2

Book3.xlsx
ABCDE
1Start DateHire MonthHire MonthTrained?Using B Column
23/14/20223MarTrainingTraining
33/16/20224AprTrainingTraining
412/25/20211JanTrainingTrained
510/2/202110OctTrainedTrained
611/10/202111NovTrainingTraining
711/30/202112DecTrainingTraining
Sheet1065
Cell Formulas
RangeFormula
B2:B7B2=MONTH(EDATE(A2,IF(DAY(A2)>15,1,0)))
C2:C7C2=TEXT(EDATE(A2,IF(DAY(A2)>15,1,0)),"mmm")
D2:D7D2=IF(EDATE(EOMONTH(EDATE(A2,IF(DAY(A2)>15,1,0)),-1)+1,4)>=EOMONTH(TODAY(),-1)+1,"Training","Trained")
E2:E7E2=IF(EDATE(DATE(YEAR(A2),B2,1),4)>=EOMONTH(TODAY(),-1)+1,"Training","Trained")
 
Last edited:
Upvote 0
Solution
Ignore E Column formula in my Post #3 above.
Use D Column formula for "Trained?"
 
Upvote 0
Hi,

2 ways to show Hiring Month, B2 and C2

Book3.xlsx
ABCDE
1Start DateHire MonthHire MonthTrained?Using B Column
23/14/20223MarTrainingTraining
33/16/20224AprTrainingTraining
412/25/20211JanTrainingTrained
510/2/202110OctTrainedTrained
611/10/202111NovTrainingTraining
711/30/202112DecTrainingTraining
Sheet1065
Cell Formulas
RangeFormula
B2:B7B2=MONTH(EDATE(A2,IF(DAY(A2)>15,1,0)))
C2:C7C2=TEXT(EDATE(A2,IF(DAY(A2)>15,1,0)),"mmm")
D2:D7D2=IF(EDATE(EOMONTH(EDATE(A2,IF(DAY(A2)>15,1,0)),-1)+1,4)>=EOMONTH(TODAY(),-1)+1,"Training","Trained")
E2:E7E2=IF(EDATE(DATE(YEAR(A2),B2,1),4)>=EOMONTH(TODAY(),-1)+1,"Training","Trained")
Thank you so much! I used B2 for the hiring month. Still trying to make the Training, Trained calc work.
 
Upvote 0
Thank you so much! I used B2 for the hiring month. Still trying to make the Training, Trained calc work.

Use my D2 formula for Training, as I mentioned, ignore E2 formula.
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,742
Messages
6,126,611
Members
449,321
Latest member
syzer

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