I have 4 =IF(AND(SUM formulas that all work individually, but I would like to get them all to work in one cell. Can this be done?
Here are the formulas:
=IF(AND(SUM(D3:L3)>9,(SUM(D3:L3)<14),SUM(D3:E3)>0,SUM(F3:G3)>0),"$50","$0")
=IF(AND(SUM(D3:L3)>14,SUM(D3:L3)>0,SUM(F3:G3)>0),"$75","$0")
=IF(AND(SUM(D3:L3)>9,SUM(D3:L3)<14,SUM(H3:L3)>0),"$75","$0")
=IF(AND(SUM(D3:L3)>14,SUM(H3:L3)>0),"$100","$0")
here's the sheet with all the cells so the columns and numbers make sense:
[TABLE="width: 914"]
<colgroup><col width="78" style="width: 58pt; mso-width-source: userset; mso-width-alt: 2759;"> <col width="68" style="width: 51pt; mso-width-source: userset; mso-width-alt: 2417;"> <col width="47" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1678;" span="2"> <col width="46" style="width: 34pt; mso-width-source: userset; mso-width-alt: 1621;" span="9"> <col width="90" style="width: 68pt; mso-width-source: userset; mso-width-alt: 3214;"> <col width="79" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2816;" span="3"> <col width="86" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3072;"> <col width="159" style="width: 119pt; mso-width-source: userset; mso-width-alt: 5660;"> <tbody>[TR]
[TD="width: 78, bgcolor: transparent"]Data 1[/TD]
[TD="width: 68, bgcolor: transparent"]Data 2[/TD]
[TD="width: 47, bgcolor: transparent"]Date[/TD]
[TD="width: 47, bgcolor: transparent"]Date[/TD]
[TD="width: 46, bgcolor: yellow"]Field 1[/TD]
[TD="width: 46, bgcolor: yellow"]Field 2[/TD]
[TD="width: 46, bgcolor: yellow"]Field 3[/TD]
[TD="width: 46, bgcolor: yellow"]Field 4[/TD]
[TD="width: 46, bgcolor: #92D050"]Field 5[/TD]
[TD="width: 46, bgcolor: #92D050"]Field 6[/TD]
[TD="width: 46, bgcolor: #92D050"]Field 7[/TD]
[TD="width: 46, bgcolor: #92D050"]Field 8[/TD]
[TD="width: 46, bgcolor: #92D050"]Field 9[/TD]
[TD="width: 90, bgcolor: transparent"] Commission [/TD]
[TD="width: 79, bgcolor: #92D050"] Bonus $50 [/TD]
[TD="width: 79, bgcolor: #92D050"] Bonus $75 [/TD]
[TD="width: 79, bgcolor: #92D050"] Bonus $75 [/TD]
[TD="width: 86, bgcolor: #92D050"] Bonus $100 [/TD]
[TD="width: 159, bgcolor: yellow"] Bonus Fields Combined [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: transparent"] $ - [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: yellow"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: transparent"] $ - [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: yellow"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: transparent"] $ - [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: yellow"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: transparent"] $ - [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: yellow"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: transparent"] $ - [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: yellow"] [/TD]
[/TR]
[TR]
[TD="bgcolor: black"]Grand Total[/TD]
[TD="bgcolor: black"]N/A[/TD]
[TD="bgcolor: black"]N/A[/TD]
[TD="bgcolor: black"]N/A[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"] $ - [/TD]
[TD="bgcolor: black"] $ - [/TD]
[TD="bgcolor: black"] $ - [/TD]
[TD="bgcolor: black"] $ - [/TD]
[TD="bgcolor: black"] $ - [/TD]
[TD="bgcolor: yellow"] [/TD]
[/TR]
</tbody>[/TABLE]
Thank you for the help!
JohnB
Here are the formulas:
=IF(AND(SUM(D3:L3)>9,(SUM(D3:L3)<14),SUM(D3:E3)>0,SUM(F3:G3)>0),"$50","$0")
=IF(AND(SUM(D3:L3)>14,SUM(D3:L3)>0,SUM(F3:G3)>0),"$75","$0")
=IF(AND(SUM(D3:L3)>9,SUM(D3:L3)<14,SUM(H3:L3)>0),"$75","$0")
=IF(AND(SUM(D3:L3)>14,SUM(H3:L3)>0),"$100","$0")
here's the sheet with all the cells so the columns and numbers make sense:
[TABLE="width: 914"]
<colgroup><col width="78" style="width: 58pt; mso-width-source: userset; mso-width-alt: 2759;"> <col width="68" style="width: 51pt; mso-width-source: userset; mso-width-alt: 2417;"> <col width="47" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1678;" span="2"> <col width="46" style="width: 34pt; mso-width-source: userset; mso-width-alt: 1621;" span="9"> <col width="90" style="width: 68pt; mso-width-source: userset; mso-width-alt: 3214;"> <col width="79" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2816;" span="3"> <col width="86" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3072;"> <col width="159" style="width: 119pt; mso-width-source: userset; mso-width-alt: 5660;"> <tbody>[TR]
[TD="width: 78, bgcolor: transparent"]Data 1[/TD]
[TD="width: 68, bgcolor: transparent"]Data 2[/TD]
[TD="width: 47, bgcolor: transparent"]Date[/TD]
[TD="width: 47, bgcolor: transparent"]Date[/TD]
[TD="width: 46, bgcolor: yellow"]Field 1[/TD]
[TD="width: 46, bgcolor: yellow"]Field 2[/TD]
[TD="width: 46, bgcolor: yellow"]Field 3[/TD]
[TD="width: 46, bgcolor: yellow"]Field 4[/TD]
[TD="width: 46, bgcolor: #92D050"]Field 5[/TD]
[TD="width: 46, bgcolor: #92D050"]Field 6[/TD]
[TD="width: 46, bgcolor: #92D050"]Field 7[/TD]
[TD="width: 46, bgcolor: #92D050"]Field 8[/TD]
[TD="width: 46, bgcolor: #92D050"]Field 9[/TD]
[TD="width: 90, bgcolor: transparent"] Commission [/TD]
[TD="width: 79, bgcolor: #92D050"] Bonus $50 [/TD]
[TD="width: 79, bgcolor: #92D050"] Bonus $75 [/TD]
[TD="width: 79, bgcolor: #92D050"] Bonus $75 [/TD]
[TD="width: 86, bgcolor: #92D050"] Bonus $100 [/TD]
[TD="width: 159, bgcolor: yellow"] Bonus Fields Combined [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: transparent"] $ - [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: yellow"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: transparent"] $ - [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: yellow"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: transparent"] $ - [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: yellow"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: transparent"] $ - [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: yellow"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: yellow"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: #92D050"]0[/TD]
[TD="bgcolor: transparent"] $ - [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: #92D050"] $0 [/TD]
[TD="bgcolor: yellow"] [/TD]
[/TR]
[TR]
[TD="bgcolor: black"]Grand Total[/TD]
[TD="bgcolor: black"]N/A[/TD]
[TD="bgcolor: black"]N/A[/TD]
[TD="bgcolor: black"]N/A[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"]0[/TD]
[TD="bgcolor: black"] $ - [/TD]
[TD="bgcolor: black"] $ - [/TD]
[TD="bgcolor: black"] $ - [/TD]
[TD="bgcolor: black"] $ - [/TD]
[TD="bgcolor: black"] $ - [/TD]
[TD="bgcolor: yellow"] [/TD]
[/TR]
</tbody>[/TABLE]
Thank you for the help!
JohnB