on 09-26-2015 9:43 PM
Hi
I have to created calculated column where the condition is below:
If field A is null, then compare AMT1 = AMT2= AMT3 then say EQ else NE
if field A is not null then compare AMT1 = AMT2= AMT3= AMT4.
How to write the formula ?
I tried by splitting in two columns as test 1= if(AMT1 = AMT2,"AMT1",'NE')
test 2 =if(if(AMT3 = AMT4,"AMT3",'NE')
then CA= IF( Is NULL("A") = 1,if(test 1 = amt3,'E',IF( test 1 = test 2,'EQ','NE'). but getting error. Is it a good practice to split up?
i tried like
IF( Is NULL("A") = 1,if(AMT1 = AMT2 and AMT3,'EQ',ifAMT1 = AMT2 and AMT3 and AMT4,'EQ','NE
both ways i am getting error.
Hi Ash,
You can write in both ways, either split or as a single formula. For your logic, this should work.
if(isnull("A"), if(("AMT1" = "AMT2") and ("AMT2" = "AMT3"), 'EQ', 'NE'),
if(("AMT1" = "AMT2") and ("AMT2" = "AMT3") and ("AMT3" = "AMT4"), 'EQ', 'NE'))
Regards,
Chandra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.