if multiple conditions

Dexir

New Member
Joined
Oct 27, 2018
Messages
38
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Working.xlsx
ABCDEFGH
1
2Town StatusDeal SlabTotal SalesEligibility
3SecondarySlab 112Yes
4SecondarySlab 110Yes
5SecondarySlab 329Yes
6SecondarySlab 215YesSecondary
7SecondarySlab 113Yesslab 110
8SecondarySlab 112Yesslab 215
9SecondarySlab 7700Yesslab 325
10SecondarySlab 325Yesslab 450
11SecondarySlab 325Yesslab 5100
12SecondarySlab 221Yesslab 6200
13SecondarySlab 339Yesslab 7700
14SecondarySlab 110Yes
15SecondarySlab 114Yes
16SecondarySlab 112Yes
17
Sheet1
Cell Formulas
RangeFormula
D3:D16D3=IF(AND($A3=$F$6,$B3=$F$7,C3>=$G$7),"Yes",IF(AND($A3=$F$6,$B3=$F$9,C3>=$G$9),"Yes",IF(AND($A3=$F$6,$B3=$F$10,C3>=$G$10),"Yes",IF(AND($A3=$F$6,$B3=$F$11,C3>=$G$11),"Yes",IF(AND($A3=$F$6,$B3=$F$12,C3>=$G$12),"Yes",IF(AND($A3=$F$6,$B3=$F$13,C3>=$G$13),"Yes",IF(AND($A3=$F$6,$B3=$F$8,C3>=$G$8),"Yes","No")))))))


is there any easy formula for this sheet ?
Thanks in advance!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi,

This may work for you:
Excel Formula:
=IF(AND($A3=F$6,COUNTIFS($F$7:$F$13,$B3,$G$7:$G$13,"<="&$C3)>0),"Yes","No")
 
Upvote 0
Thank you Flashbond, it is working good. But i have some other conditions. would you please look into this, if there is an easy way.
Thanks.
Working.xlsx
ABCDEFGHIJKL
1
2Town StatusDeal SlabTotal SalesEligibilityFOC Boxes
3PrimarySlab 2205Yes150
4SecondarySlab 210No0
5SecondarySlab 329Yes28
6SecondarySlab 212No0
7SecondarySlab 113Yes10
8PrimarySlab 325No0
9SecondarySlab 325Yes28
10SecondarySlab 325Yes28
11SecondarySlab 221Yes16SecondaryPrimary
12PrimarySlab 339Yes0slab 1101010060
13SecondarySlab 110Yes10slab 21516200150
14SecondarySlab 114Yes10slab 32528
15PrimarySlab 112No0slab 45060
16SecondarySlab 114Yes10slab 5100130
17SecondarySlab 110Yes10slab 6200280
18SecondarySlab 216Yes16slab 7700Bike1056
19SecondarySlab 111Yes10
20
Sheet1
Cell Formulas
RangeFormula
E3:E19E3=IF($D3="NO",0,IF($C3<$H$12,0,IF(AND($B3=$G$12,$A3=$H$11,$C3>=$H$12),$I$12,IF(AND($B3=$G$13,$A3=$H$11,$C3>=$H$13),$I$13,IF(AND($B3=$G$14,$A3=$H$11,$C3>=$H$14),$I$14,IF(AND($B3=$G$15,$A3=$H$11,$C3>=$H$15),$I$15,IF(AND($B3=$G$16,$A3=$H$11,$C3>=$H$16),$I$16,IF(AND($B3=$G$17,$A3=$H$11,$C3>=$H$17),$I$17,IF(AND($B3=$G$18,$A3=$H$11,$C3>=$H$18),$J$18,IF(AND($B3=$G$12,$A3=$J$11,$C3>=$J$12),$K$12,IF(AND($B3=$G$13,$A3=$J$11,$C3>=$J$13),$K$13,0)))))))))))
 
Upvote 0
Could you please explain why the 8th row is "No" and the 12th row is "Yes"?
 
Upvote 0
Could you please explain why the 8th row is "No" and the 12th row is "Yes"?
Pardon me, this is also "No" as per the conditions, actually the D column's formula is ok, that's why i didnt post it here.
 
Upvote 0
D3:
Excel Formula:
=IF(AND(INDEX($H$12:$K$18,MATCH($B3,$G$12:$G$18,0),MATCH($A3,$H$11:$K$11,0))>0,INDEX($H$12:$K$18,MATCH($B3,$G$12:$G$18,0),MATCH($A3,$H$11:$K$11,0))<=$C3),"Yes","No")
E3:
Excel Formula:
=IF($D3="No",0,INDEX($H$12:$K$18,MATCH($B3,$G$12:$G$18,0),MATCH($A3,$H$11:$K$11,0)+1))
 
Upvote 0
Solution
Thank you so much! this is working perfectly.
 
Upvote 0

Forum statistics

Threads
1,215,088
Messages
6,123,057
Members
449,091
Latest member
ikke

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