I am trying to write an IF condition, first criteria is Column D,
If Column D Value is 3, then Result value should be 99006661001
If Column D Value is 9, then Result Value should be 52006881570
If Column D Value is 6 or 5, then second criteria is based on Column C (First 2 digits),
If first two digits of C is 11, then Result Value should be 010066743
If first two digits of C is 12, then Result Value should be 020066743
If first two digits of C is 13, then Result Value should be 030066743
If first two digits of C is 14, then Result Value should be 520066743
If first two digits of C is 15, then Result Value should be 050066743
If first two digits of C is 16, then Result Value should be 050066743
Now the problem i am facing is, with Column D value 5, why is it giving me False?
<tbody>
</tbody>
Here's my formula, typed in Range G2:
Will appreciate if my mistake is rectified.
Thanks in advance.
If Column D Value is 3, then Result value should be 99006661001
If Column D Value is 9, then Result Value should be 52006881570
If Column D Value is 6 or 5, then second criteria is based on Column C (First 2 digits),
If first two digits of C is 11, then Result Value should be 010066743
If first two digits of C is 12, then Result Value should be 020066743
If first two digits of C is 13, then Result Value should be 030066743
If first two digits of C is 14, then Result Value should be 520066743
If first two digits of C is 15, then Result Value should be 050066743
If first two digits of C is 16, then Result Value should be 050066743
Now the problem i am facing is, with Column D value 5, why is it giving me False?
# | A | B | C | D | E | F | G |
1 | 11858594 | 5 | FALSE | ||||
2 | 11858275 | 6 | 010066743 | ||||
3 | 11857038 | 3 | 99006661001 | ||||
4 | 11858479 | 9 | 52006881570 | ||||
5 | 61674304 | 6 | FALSE | ||||
6 | 11854352 | 5 | FALSE | ||||
7 | 11858622 | 6 | 010066743 | ||||
8 | 11858520 | 5 | FALSE | ||||
9 | 11858132 | 5 | FALSE | ||||
10 | 11858124 | 6 | 010066743 | ||||
11 | 62367347 | 6 | FALSE | ||||
12 | 11858488 | 5 | FALSE | ||||
13 | 11858698 | 6 | 010066743 | ||||
14 | 63158920 | 6 | FALSE | ||||
15 | 11858655 | 6 | 010066743 | ||||
16 | 11858534 | 5 | FALSE |
<tbody>
</tbody>
Here's my formula, typed in Range G2:
=IF(D2=3;"99006661001";(IF(D2=9;"52006881570";
(IF(D2=6;(IF(LEFT(C2;2)="11";"010066743";IF(LEFT(C2;2)="12";"020066743";
IF(LEFT(C2;2)="13";"030066743";IF(LEFT(C2;2)="14";"520066743";
IF(LEFT(C2;2)="15";"050066743";IF(LEFT(C2;2)="16";"050066743";
(IF(D2=5;(IF(LEFT(C2;2)="11";"010066743";IF(LEFT(C2;2)="12";
"020066743";IF(LEFT(C2;2)="13";"030066743";IF(LEFT(C2;2)="14";
"520066743";IF(LEFT(C2;2)="15";"050066743";IF(LEFT(C2;2)="16";
"050066743")))))))))))))))))))))
Will appreciate if my mistake is rectified.
Thanks in advance.