dbwiz
Active Member
- Joined
- Nov 20, 2007
- Messages
- 275
I have a schedule of amounts in Column A12 to B21(basically a "From" and "To" range), and a BP amount in C12:C21. The number in E8 needs to be compared to see if it is >=A12<=B12 and if True, multiply the number in E8*C12*.001 and show that amount of compensation in E10. If false, it needs to be compared to see if it falls between A13 and B13, etc. etc.
Sheet1[TABLE="class: html-maker-worksheet"]
<THEAD>[TR]
[TH][/TH]
[TH]A[/TH]
[TH]B[/TH]
[TH]C[/TH]
[/TR]
</THEAD><TBODY>[TR]
[TH]12[/TH]
[TD="align: center"]$0[/TD]
[TD="align: center"]$2,500,000[/TD]
[TD="align: center"]70[/TD]
[/TR]
[TR]
[TH]13[/TH]
[TD="align: center"]$2,500,001[/TD]
[TD="align: center"]$5,000,000[/TD]
[TD="align: center"]65[/TD]
[/TR]
[TR]
[TH]14[/TH]
[TD="align: center"]$5,000,001[/TD]
[TD="align: center"]$7,500,000[/TD]
[TD="align: center"]55[/TD]
[/TR]
[TR]
[TH]15[/TH]
[TD="align: center"]$7,500,001[/TD]
[TD="align: center"]$10,000,000[/TD]
[TD="align: center"]50[/TD]
[/TR]
[TR]
[TH]16[/TH]
[TD="align: center"]$10,000,001[/TD]
[TD="align: center"]$15,000,000[/TD]
[TD="align: center"]40[/TD]
[/TR]
[TR]
[TH]17[/TH]
[TD="align: center"]$15,000,001[/TD]
[TD="align: center"]$20,000,000[/TD]
[TD="align: center"]35[/TD]
[/TR]
[TR]
[TH]18[/TH]
[TD="align: center"]$20,000,000[/TD]
[TD="align: center"]$25,000,000[/TD]
[TD="align: center"]32[/TD]
[/TR]
[TR]
[TH]19[/TH]
[TD="align: center"]$25,000,001[/TD]
[TD="align: center"]$30,000,000[/TD]
[TD="align: center"]30[/TD]
[/TR]
[TR]
[TH]20[/TH]
[TD="align: center"]$30,000,001[/TD]
[TD="align: center"]$35,000,000[/TD]
[TD="align: center"]27.5[/TD]
[/TR]
[TR]
[TH]21[/TH]
[TD="align: center"]$35,000,001[/TD]
[TD="align: center"]$40,000,000[/TD]
[TD="align: center"]25[/TD]
[/TR]
</TBODY>[/TABLE]
Excel 2007
I can get the first if no problem but always get an error trying to add more scenarios. Can someone help?
Sheet1[TABLE="class: html-maker-worksheet"]
<THEAD>[TR]
[TH][/TH]
[TH]A[/TH]
[TH]B[/TH]
[TH]C[/TH]
[/TR]
</THEAD><TBODY>[TR]
[TH]12[/TH]
[TD="align: center"]$0[/TD]
[TD="align: center"]$2,500,000[/TD]
[TD="align: center"]70[/TD]
[/TR]
[TR]
[TH]13[/TH]
[TD="align: center"]$2,500,001[/TD]
[TD="align: center"]$5,000,000[/TD]
[TD="align: center"]65[/TD]
[/TR]
[TR]
[TH]14[/TH]
[TD="align: center"]$5,000,001[/TD]
[TD="align: center"]$7,500,000[/TD]
[TD="align: center"]55[/TD]
[/TR]
[TR]
[TH]15[/TH]
[TD="align: center"]$7,500,001[/TD]
[TD="align: center"]$10,000,000[/TD]
[TD="align: center"]50[/TD]
[/TR]
[TR]
[TH]16[/TH]
[TD="align: center"]$10,000,001[/TD]
[TD="align: center"]$15,000,000[/TD]
[TD="align: center"]40[/TD]
[/TR]
[TR]
[TH]17[/TH]
[TD="align: center"]$15,000,001[/TD]
[TD="align: center"]$20,000,000[/TD]
[TD="align: center"]35[/TD]
[/TR]
[TR]
[TH]18[/TH]
[TD="align: center"]$20,000,000[/TD]
[TD="align: center"]$25,000,000[/TD]
[TD="align: center"]32[/TD]
[/TR]
[TR]
[TH]19[/TH]
[TD="align: center"]$25,000,001[/TD]
[TD="align: center"]$30,000,000[/TD]
[TD="align: center"]30[/TD]
[/TR]
[TR]
[TH]20[/TH]
[TD="align: center"]$30,000,001[/TD]
[TD="align: center"]$35,000,000[/TD]
[TD="align: center"]27.5[/TD]
[/TR]
[TR]
[TH]21[/TH]
[TD="align: center"]$35,000,001[/TD]
[TD="align: center"]$40,000,000[/TD]
[TD="align: center"]25[/TD]
[/TR]
</TBODY>[/TABLE]
Excel 2007
I can get the first if no problem but always get an error trying to add more scenarios. Can someone help?