lesliewheeler
New Member
- Joined
- Dec 1, 2016
- Messages
- 32
- Office Version
- 2013
- Platform
- Windows
Hi Friends,
I am trying to build a formula with multiple if conditions, in isolation they work perfectly but when joined results are not achieved.
I need your help to join and make the below into 1 formula
Condition 1: =IF(F4=0,-2000)
Condition 2: =IF(AND(C4="B",D4="W"),IF(COUNTIF($S$3:$S$14, F4),500,IF(COUNTIF($T$3:$T$14, F4),500,800
Condition 3: =IF(AND(C4="R",D4="W"),IF(COUNTIF($S$3:$S$14, F4),500,IF(COUNTIF($U$3:$U$14, F4),500,800
Condition 4: =IF(AND(D4="L",B4="R"),IF(COUNTIF($S$3:$S$14,F4),-500,IF(COUNTIF($T$3:$T$14, F4),-500,IF(OR(F4=30,F4=21),-2000,800
Condition 5: =IF(AND(D4="L",B4="B"),IF(COUNTIF($S$3:$S$14, F4),-500,IF(COUNTIF($U$3:$U$14, F4),-500,IF(OR(F4=29, F4=2),-2000,800
The flow:-
It will check condition 1 first if false then check condition 2 and return results as above if true, else condition 3 and so on so forth.
Will be really glad if someone can help me.
Thanks in advance
Leslie
VBA Or Formula any will work
I am trying to build a formula with multiple if conditions, in isolation they work perfectly but when joined results are not achieved.
I need your help to join and make the below into 1 formula
Condition 1: =IF(F4=0,-2000)
Condition 2: =IF(AND(C4="B",D4="W"),IF(COUNTIF($S$3:$S$14, F4),500,IF(COUNTIF($T$3:$T$14, F4),500,800
Condition 3: =IF(AND(C4="R",D4="W"),IF(COUNTIF($S$3:$S$14, F4),500,IF(COUNTIF($U$3:$U$14, F4),500,800
Condition 4: =IF(AND(D4="L",B4="R"),IF(COUNTIF($S$3:$S$14,F4),-500,IF(COUNTIF($T$3:$T$14, F4),-500,IF(OR(F4=30,F4=21),-2000,800
Condition 5: =IF(AND(D4="L",B4="B"),IF(COUNTIF($S$3:$S$14, F4),-500,IF(COUNTIF($U$3:$U$14, F4),-500,IF(OR(F4=29, F4=2),-2000,800
The flow:-
It will check condition 1 first if false then check condition 2 and return results as above if true, else condition 3 and so on so forth.
Will be really glad if someone can help me.
Thanks in advance
Leslie
VBA Or Formula any will work
Last edited by a moderator: