Hi there,
I've exhausted my options and really need some help with this.
I'm dealing with a fixed payroll table where the column headers duplicate across (but the data is different). Given a bi-weekly income, I want to calculate what the CPP amount is. For example, if income was $2,011.45, then CPP should be $92.90 since it falls between $2,011.28-2,011.47. Obviously if it were just the 3 columns it would be easy, but that's not how the payroll table is.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Bi-weekly income[/TD]
[TD][/TD]
[TD][/TD]
[TD]Bi-weekly income[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]From[/TD]
[TD]To[/TD]
[TD]CPP[/TD]
[TD]From[/TD]
[TD]To[/TD]
[TD]CPP[/TD]
[/TR]
[TR]
[TD]$1,996.33[/TD]
[TD]$1,996.52[/TD]
[TD]$92.16[/TD]
[TD]$2,010.88[/TD]
[TD]$2,011.07[/TD]
[TD]$92.88[/TD]
[/TR]
[TR]
[TD]1,996.53[/TD]
[TD]1,996.73[/TD]
[TD]92.17[/TD]
[TD]2,011.08[/TD]
[TD]2,011.27[/TD]
[TD]92.89[/TD]
[/TR]
[TR]
[TD]1,996.74[/TD]
[TD]1,996.93[/TD]
[TD]92.18[/TD]
[TD]2,011.28[/TD]
[TD]2,011.47[/TD]
[TD]92.90[/TD]
[/TR]
[TR]
[TD]1,996.94[/TD]
[TD]1,997.13[/TD]
[TD]92.19[/TD]
[TD]2,011.48[/TD]
[TD]2,011.68[/TD]
[TD]92.91[/TD]
[/TR]
</tbody>[/TABLE]
I've tried some INDEX/SUMPRODUCT/MIN/IF/ROW arrays but no luck so far.
Please help!
James
I've exhausted my options and really need some help with this.
I'm dealing with a fixed payroll table where the column headers duplicate across (but the data is different). Given a bi-weekly income, I want to calculate what the CPP amount is. For example, if income was $2,011.45, then CPP should be $92.90 since it falls between $2,011.28-2,011.47. Obviously if it were just the 3 columns it would be easy, but that's not how the payroll table is.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Bi-weekly income[/TD]
[TD][/TD]
[TD][/TD]
[TD]Bi-weekly income[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]From[/TD]
[TD]To[/TD]
[TD]CPP[/TD]
[TD]From[/TD]
[TD]To[/TD]
[TD]CPP[/TD]
[/TR]
[TR]
[TD]$1,996.33[/TD]
[TD]$1,996.52[/TD]
[TD]$92.16[/TD]
[TD]$2,010.88[/TD]
[TD]$2,011.07[/TD]
[TD]$92.88[/TD]
[/TR]
[TR]
[TD]1,996.53[/TD]
[TD]1,996.73[/TD]
[TD]92.17[/TD]
[TD]2,011.08[/TD]
[TD]2,011.27[/TD]
[TD]92.89[/TD]
[/TR]
[TR]
[TD]1,996.74[/TD]
[TD]1,996.93[/TD]
[TD]92.18[/TD]
[TD]2,011.28[/TD]
[TD]2,011.47[/TD]
[TD]92.90[/TD]
[/TR]
[TR]
[TD]1,996.94[/TD]
[TD]1,997.13[/TD]
[TD]92.19[/TD]
[TD]2,011.48[/TD]
[TD]2,011.68[/TD]
[TD]92.91[/TD]
[/TR]
</tbody>[/TABLE]
I've tried some INDEX/SUMPRODUCT/MIN/IF/ROW arrays but no luck so far.
Please help!
James