Multiple conditional statements in one cell?

chanson329

New Member
Joined
Jul 29, 2013
Messages
5
I need one cell to be subject to the followingconditional statements and just can't get the formula correct. Basically I need the cell to calculate three different conditions
=if(l8<10,0,l8)<o:p></o:p>
=if(l8>=10,and(c8>15),l8,0)<o:p></o:p>
=if(l8>=20,and(c8<15),l8,0)<o:p></o:p>
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Maybe

=IF(L8>10,L8,IF(AND(L8>=10,C8>15),L8,IF(AND(L8>=20,C8<15),L8,0)))
 
Upvote 0
I reworked things a bit and actually the following twostatements work a bit better. I thinkhowever that the two conditions will conflict and I can’t seem to get thesyntax correct.<o:p></o:p>
If(c7>=15,and(l7>=10)*l7,0))<o:p></o:p>
If(c7<15,and(l7>=20)*l7,0))<o:p></o:p>
 
Upvote 0
Your syntax is indeed wrong, something like

=IF(AND(logical 1, logical 2),true,false
 
Upvote 0

Excel 2010
ABC
190
21111
3111611
4211421
Sheet3
Cell Formulas
RangeFormula
C1=IF(AND(A1>=10,B1>15),A1,IF(AND(A1>=20,B1<15),A1,IF(A1<10,0,A1)))
C2=IF(AND(A2>=10,B2>15),A2,IF(AND(A2>=20,B2<15),A2,IF(A2<10,0,A2)))
C3=IF(AND(A3>=10,B3>15),A3,IF(AND(A3>=20,B3<15),A3,IF(A3<10,0,A3)))
C4=IF(AND(A4>=10,B4>15),A4,IF(AND(A4>=20,B4<15),A4,IF(A4<10,0,A4)))
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top