Hi there - I am new to this forum so please forgive me if this has been discussed although I haven't found a solution on here yet.
I am working on an HR forecast in which I have a hire date and a term date for each employee. If the employee is currently active, their term date is input as 12/31/2016 (so they're active through the end of the year) but if they are termed at some point during the year, their term date would change to an actual date such as 5/13/2016.
When I am trying to calculate their wages per month, I want to take their hourly rate*hours in the month, (for example January has 21 working days at 8 hours each = 168 hours). I have all the months in columns BH through BS and I want the monthly amount to populate only if the hire date is less than the current month, and the term date is greater than the current month. If the hire date isn't until 4/15/16, I don't want any info showing in the Jan, Feb, Mar columns. If the term date is 10/15/16 I don't want any info showing in Nov and Dec columns.
I have a tried a couple things but I can't seem to get my formulas to work. Here is one that I have tried:
D147 = Hire date
BI145 = 2/1/2016
AX147 = rate
BH144 =hours in month
E147 = term date
BH145 = 1/1/2016
To show the monthly rate for January: =IF($D147<BI$145,$AX147*BH$144,IF($E147>BH145,0,$AX147*BH$144))
I've also tried some sumifs formulas and at this point I have just been looking at this way too long and I'm frustrated. Any help would be fantastic, thank you!
Bookmarks