Issue with changing a condition based on a date

nengel

New Member
Joined
Mar 20, 2015
Messages
8
Hello:

I am having an issue with a formula that was built to address the following scenario:

When an employee is hired, if they are hired between the 1-15th of the month, that month is the month of hire. If an employee is hired after the 15th then the month of hire is the following month.

If an employee is in month 1-4, the are considered a ramping employee, if they are in month 5 they are considered a ramped employee. I am having an issue with the status changing to ramped once the hit month 5. Here is what I have. You can see that for hires that have a ramped date of May, the status hasn't changed to ramped.

I'd appreciate any insight into how to resolve.

Calculating hire month.xlsx
ABCDE
1Start Date mm/dd/yearHiring MonthHire MonthJob StatusRamped Date
23/14/20223MarRampingJul/2022
33/16/20224AprRampingAug/2022
412/25/20211JanRampingMay/2022
510/2/202110OctRampedFeb/2022
610/11/202110OctRampedFeb/2022
74/14/20224AprRampingAug/2022
812/15/202112DecRampedApr/2022
911/16/202112DecRampedApr/2022
101/8/20221JanRampingMay/2022
114/4/20224AprRampingAug/2022
Sheet1
Cell Formulas
RangeFormula
B2:B11B2=MONTH(EDATE(A2,IF(DAY(A2)>15,1,0)))
C2:C11C2=TEXT(EDATE(A2,IF(DAY(A2)>15,1,0)),"mmm")
D2:D11D2=IF(EDATE(EOMONTH(EDATE(A2,IF(DAY(A2)>15,1,0)),-1)+1,4)>=EOMONTH(TODAY(),-1)+1,"Ramping","Ramped")
E2:E11E2=EDATE(EOMONTH(EDATE(A2,IF(DAY(A2)>15,1,0)),-1)+1,4)
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Do you need the Hiring Month or can you revise your formulas and format as needed?
scratchbook excel testing.xlsm
ABCDE
14Start Date mm/dd/yearHiring MonthHire MonthJob StatusRamped Date
153/14/20223/1/2022MarRamping8/1/2022
163/16/20224/1/2022AprRamping9/1/2022
1712/25/20211/1/2022JanRamping6/1/2022
1810/2/202110/1/2021OctRamped3/1/2022
1910/11/202110/1/2021OctRamped3/1/2022
204/14/20224/1/2022AprRamping9/1/2022
2112/15/202112/1/2021DecRamped5/1/2022
2211/16/202112/1/2021DecRamped5/1/2022
231/8/20221/1/2022JanRamping6/1/2022
244/4/20224/1/2022AprRamping9/1/2022
Sheet22
Cell Formulas
RangeFormula
B15:B24B15=EOMONTH(EDATE(A15,IF(DAY(A15)>15,1,0)),-1)+1
C15:C24C15=TEXT(B15,"mmm")
D15:D24D15=IF(TODAY()>=E15,"Ramped","Ramping")
E15:E24E15=EDATE(B15,5)
 
Upvote 0
Do you need the Hiring Month or can you revise your formulas and format as needed?
scratchbook excel testing.xlsm
ABCDE
14Start Date mm/dd/yearHiring MonthHire MonthJob StatusRamped Date
153/14/20223/1/2022MarRamping8/1/2022
163/16/20224/1/2022AprRamping9/1/2022
1712/25/20211/1/2022JanRamping6/1/2022
1810/2/202110/1/2021OctRamped3/1/2022
1910/11/202110/1/2021OctRamped3/1/2022
204/14/20224/1/2022AprRamping9/1/2022
2112/15/202112/1/2021DecRamped5/1/2022
2211/16/202112/1/2021DecRamped5/1/2022
231/8/20221/1/2022JanRamping6/1/2022
244/4/20224/1/2022AprRamping9/1/2022
Sheet22
Cell Formulas
RangeFormula
B15:B24B15=EOMONTH(EDATE(A15,IF(DAY(A15)>15,1,0)),-1)+1
C15:C24C15=TEXT(B15,"mmm")
D15:D24D15=IF(TODAY()>=E15,"Ramped","Ramping")
E15:E24E15=EDATE(B15,5)
I need the hiring month mostly to define what month 1 is (based if they are hired in the first 15 days or last 15ish days), so I can project the month they will be ramped (which is month 5) + change their Job status from ramping to ramped when they hit the ramped month.
 
Upvote 0
So my solution of the effective hire date for ramping works as shown?
 
Upvote 0
Hello, no the hiring month is dependant on this condition:

Example: If employee was hired May 5th, then hiring month is May and the month that they would be considered ramped in September (4 month ramping period is completed). If employee is hired May 16th then hiring month is June and they would be considered ramped in October.

The original formulas are working with the exception of the Job Status column. The status should change to Ramped once they reach the ramped date has been met. So in your table, row 17th - the hiring month is correct but the Ramped Date should be May and the status should be ramped and in row 23 the ramped month should be May and the status should be Ramped.

I can't figure out why my original formulas are not working consistently because it works in row 5 and 6 but not in row 4 or 10.
 
Upvote 0
Remove the second equal sign in column D
 
Upvote 0
Solution

Forum statistics

Threads
1,214,631
Messages
6,120,640
Members
448,974
Latest member
DumbFinanceBro

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