I'm trying to nest multiple IF statements, along with IF(AND(OR) statements within one cell. The "Premium Table" I have to use is below, along with a sample of the the worksheet. The question is: What IF statement do I enter in cell D2 to obtain the correct premium?
Premium Table
Age Range - Coverage Type - Premium Amount
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 239"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Ages 18-39[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Employee Only
Employee + Spouse
Employee + Child(ren)
Employee + Family[/TD]
[TD]$76.05
$366.19
$366.19
$366.19[/TD]
[/TR]
[TR]
[TD]Ages 40-49[/TD]
[TD]Employee Only
Employee + Spouse
Employee + Child(ren)
Employee + Family[/TD]
[TD]$111.20
$418.94
$418.94
$418.94[/TD]
[/TR]
[TR]
[TD]Ages 50-59[/TD]
[TD]Employee Only
Employee + Spouse
Employee + Child(ren)
Employee + Family[/TD]
[TD]$234.32
$586.02
$586.02
$586.02[/TD]
[/TR]
[TR]
[TD]Ages 60+[/TD]
[TD]Employee Only
Employee + Spouse
Employee + Child(ren)
Employee + Family[/TD]
[TD]$329.20
$821.56
$821.56
$821.56[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]Employee Name[/TD]
[TD="align: center"]Age[/TD]
[TD="align: center"]Coverage[/TD]
[TD="align: center"]Premium[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]John Doe[/TD]
[TD]35[/TD]
[TD]Employee + Family[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]Jane Smith[/TD]
[TD]41[/TD]
[TD]Employee Only[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]Bob Johnson[/TD]
[TD]60[/TD]
[TD]Employee + Spouse[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Premium Table
Age Range - Coverage Type - Premium Amount
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 239"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Ages 18-39[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Employee Only
Employee + Spouse
Employee + Child(ren)
Employee + Family[/TD]
[TD]$76.05
$366.19
$366.19
$366.19[/TD]
[/TR]
[TR]
[TD]Ages 40-49[/TD]
[TD]Employee Only
Employee + Spouse
Employee + Child(ren)
Employee + Family[/TD]
[TD]$111.20
$418.94
$418.94
$418.94[/TD]
[/TR]
[TR]
[TD]Ages 50-59[/TD]
[TD]Employee Only
Employee + Spouse
Employee + Child(ren)
Employee + Family[/TD]
[TD]$234.32
$586.02
$586.02
$586.02[/TD]
[/TR]
[TR]
[TD]Ages 60+[/TD]
[TD]Employee Only
Employee + Spouse
Employee + Child(ren)
Employee + Family[/TD]
[TD]$329.20
$821.56
$821.56
$821.56[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]Employee Name[/TD]
[TD="align: center"]Age[/TD]
[TD="align: center"]Coverage[/TD]
[TD="align: center"]Premium[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]John Doe[/TD]
[TD]35[/TD]
[TD]Employee + Family[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]Jane Smith[/TD]
[TD]41[/TD]
[TD]Employee Only[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]Bob Johnson[/TD]
[TD]60[/TD]
[TD]Employee + Spouse[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]