Forum Discussion
SSNU1312
Jul 31, 2019Copper Contributor
Breach or not breach result using IF Function
Hi,
Can anyone help to get result breach or not breach for the below condition
Trader A limit = 600 for USD/AED and 800 for Other CCY
Trader B limit = 700 for USD/AED and 600 for Other CCY
Trader C limit = 500 for USD/AED and 900 for Other CCY
Type of contract = USD/AED or Other CCY
Column A trader name
Column B amount
Column C Type of contract
Condition
Line no 1 for Trader A
If column C is USD/AED and amount >=600 then Breach
If column C is Other CCY and amount >= 800 then Breach, if not then Not Breach
Line 2, Line 3 and so on apply the limit condition as per Trader B and C
Please advice, I tried apply Nested if(and and result arrived successfully but few are incorrect not sure why? even though it match with other successful rows.
Can anyone help to get result breach or not breach for the below condition
Trader A limit = 600 for USD/AED and 800 for Other CCY
Trader B limit = 700 for USD/AED and 600 for Other CCY
Trader C limit = 500 for USD/AED and 900 for Other CCY
Type of contract = USD/AED or Other CCY
Column A trader name
Column B amount
Column C Type of contract
Condition
Line no 1 for Trader A
If column C is USD/AED and amount >=600 then Breach
If column C is Other CCY and amount >= 800 then Breach, if not then Not Breach
Line 2, Line 3 and so on apply the limit condition as per Trader B and C
Please advice, I tried apply Nested if(and and result arrived successfully but few are incorrect not sure why? even though it match with other successful rows.
2 Replies
- TwifooSilver Contributor
Perhaps, you are looking for something like that in the attached file. There are drop-down lists in Columns F and H for TraderName and ContractType, respectively. The formula in I2, copied down rows, is:
=VLOOKUP(F2,
A$2:D$4,
MATCH(H2,A$1:D$1,0),0)Conversly, the formula in J2, copied down rows, is:
=IF(G2>=I2,
"Yes",
"No") - KodipadyIron Contributor
It would greatly help if you upload a sample file with realistic data, the solution will be close to what you are looking for. please provide expected results too for few rows so that formula can be tested. thank you !!