Hello all, first post.
I would like to calculate monthly gross pay from a lookup table which may contain one or more changes in pay during a given month. The formula should not assume a given number of changes, or the month during which they occur. Here is an example pay table I would like to use (with fictitious amounts):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Pay Effective Date[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]$1000.00[/TD]
[/TR]
[TR]
[TD]6/1/2013[/TD]
[TD]$1500.00[/TD]
[/TR]
[TR]
[TD]6/15/2013[/TD]
[TD]$2000.00[/TD]
[/TR]
[TR]
[TD]6/18/2013[/TD]
[TD]$2500.00[/TD]
[/TR]
</tbody>[/TABLE]
Pay changes may occur in the middle of the month as a result of years of service, promotion, cost of living adjustments, etc.
For this example, monthly gross pay for 2013 would be:
January 2013 through May 2013: $1000.00
June 2013: (14/30)*1500 + (3/30)*2000 + (13/30)*2500
July 2013 through December 2013: $2500.00
The above assumes a 30-day month. I am not sure if my payroll uses a 30 divisor for every month or if they calculate the number of days "correctly"--everywhere I can find such an example so far, it has occurred in June.
I am generally familiar with the vlookup command, but I am not sure how (or if) to apply it in this type of situation, one in which the month of concern is June 2013 and there are a non-predefined number of changes occurring during that month (i.e., there are years in which pay does not change on June 18, and I would prefer to have no entry for June 18 for those years).
In a subsequent step I am able to use vlookup to calculate the correct federal income tax withholding, as long as monthly gross income is calculated with the formulas above. But I cannot think of a formula that does this based solely on a month-year input and the sample "Pay Effective Date" table.
I appreciate any advice. Thanks!
I would like to calculate monthly gross pay from a lookup table which may contain one or more changes in pay during a given month. The formula should not assume a given number of changes, or the month during which they occur. Here is an example pay table I would like to use (with fictitious amounts):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Pay Effective Date[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]$1000.00[/TD]
[/TR]
[TR]
[TD]6/1/2013[/TD]
[TD]$1500.00[/TD]
[/TR]
[TR]
[TD]6/15/2013[/TD]
[TD]$2000.00[/TD]
[/TR]
[TR]
[TD]6/18/2013[/TD]
[TD]$2500.00[/TD]
[/TR]
</tbody>[/TABLE]
Pay changes may occur in the middle of the month as a result of years of service, promotion, cost of living adjustments, etc.
For this example, monthly gross pay for 2013 would be:
January 2013 through May 2013: $1000.00
June 2013: (14/30)*1500 + (3/30)*2000 + (13/30)*2500
July 2013 through December 2013: $2500.00
The above assumes a 30-day month. I am not sure if my payroll uses a 30 divisor for every month or if they calculate the number of days "correctly"--everywhere I can find such an example so far, it has occurred in June.
I am generally familiar with the vlookup command, but I am not sure how (or if) to apply it in this type of situation, one in which the month of concern is June 2013 and there are a non-predefined number of changes occurring during that month (i.e., there are years in which pay does not change on June 18, and I would prefer to have no entry for June 18 for those years).
In a subsequent step I am able to use vlookup to calculate the correct federal income tax withholding, as long as monthly gross income is calculated with the formulas above. But I cannot think of a formula that does this based solely on a month-year input and the sample "Pay Effective Date" table.
I appreciate any advice. Thanks!
Last edited: