Formula for calculate date for payday

Linda Nosalia

New Member
Joined
Aug 2, 2023
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
Hi everyone, need help for the formula. So i am trying to track employee who is resign soon and need to see the employee last pay cheque.
Example payday is every 15th (for cut off last month 16-30th/31st) and every 30th/31st (cut off from this month 1-15) , bonus is every 15th (from last month 1-30/31st). Employee John is resign effective by 20 Aug 2023, so what is the formula to calculate his pay day?? thank you.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hello,
You can try this, although I am not sure how you want to process the bonus (please explain).
Book1
ABC
1Last Work DayPay PeriodPay Date
22023-08-2016-30/312023-09-15
Sheet1
Cell Formulas
RangeFormula
B2B2=IF(DAY(A2)<=15,"1-15","16-30/31")
C2C2=IF(DAY(A2)<=15,EOMONTH(A2,0),DATE(YEAR(A2),MONTH(A2)+1,15))
 
Upvote 0
Hello,
You can try this, although I am not sure how you want to process the bonus (please explain).
Book1
ABC
1Last Work DayPay PeriodPay Date
22023-08-2016-30/312023-09-15
Sheet1
Cell Formulas
RangeFormula
B2B2=IF(DAY(A2)<=15,"1-15","16-30/31")
C2C2=IF(DAY(A2)<=15,EOMONTH(A2,0),DATE(YEAR(A2),MONTH(A2)+1,15))
Hello,
You can try this, although I am not sure how you want to process the bonus (please explain).
Book1
ABC
1Last Work DayPay PeriodPay Date
22023-08-2016-30/312023-09-15
Sheet1
Cell Formulas
RangeFormula
B2B2=IF(DAY(A2)<=15,"1-15","16-30/31")
C2C2=IF(DAY(A2)<=15,EOMONTH(A2,0),DATE(YEAR(A2),MONTH(A2)+1,15))
Thank you very much for your help. So for the bonus example payday on Aug 16th for bonus calculation from July 1-31. So let said John last day is Aug 5th, i want the column formula just show the date when he will get his bonus which is on Aug 16. Hope this is good explanation :) . Really appreciate your help. Cheers!
 
Upvote 0
OKay,
Try this:

Mr excel questions 54.xlsm
ABCD
1Last Work DayPay PeriodPay DateBonus Date
22023-08-2016-30/312023-09-152023-09-15
Linda Nosalia
Cell Formulas
RangeFormula
B2B2=IF(DAY(A2)<=15,"1-15","16-30/31")
C2C2=IF(DAY(A2)<=15,EOMONTH(A2,0),DATE(YEAR(A2),MONTH(A2)+1,15))
D2D2=DATE(YEAR(A2),MONTH(EDATE(A2,1)),15)
 
Upvote 0
Or these more compact alternatives for the regular payday and bonus payday:
Excel Formula:
=EOMONTH(A2,0)+15*(DAY(A2)>15)
=EOMONTH(A2,0)+16
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,256
Members
449,149
Latest member
mwdbActuary

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