RAJESH1960
Banned for repeated rules violations
- Joined
- Mar 26, 2020
- Messages
- 2,313
- Office Version
- 2019
- Platform
- Windows
Hello experts
I am trying to combine 2 formulas and trying to apply to get the same result I used to get by using 2 different formulas. But I am getting an error.
=IF(COUNTIFS(C$2:C2,C2,E$2:E2,E2)=1,SUMIFS(K:K,C:C,C2,E:E,E2),"") to get the combined local tax
=IF(COUNTIFS(C$2:C10,C10,E$2:E10,E10)=1,SUMIFS(I:I,C:C,C10,E:E,E10),"") to get the combined interstate tax
As in every new data the range changes, I need to change the range every time. So, I tried to combine both the formulas with this formula
=IF(12=0,COUNTIFS(C$2:C2,C2,E$2:E2,E2)=1,SUMIFS(K:K,C:C,C2,E:E,E2),COUNTIFS(C$2:C2,C2,E$2:E2,E2)=1,SUMIFS(I:I,C:C,C2,E:E,E2)))
But I am not able to get the formula right.
I am trying to combine 2 formulas and trying to apply to get the same result I used to get by using 2 different formulas. But I am getting an error.
=IF(COUNTIFS(C$2:C2,C2,E$2:E2,E2)=1,SUMIFS(K:K,C:C,C2,E:E,E2),"") to get the combined local tax
=IF(COUNTIFS(C$2:C10,C10,E$2:E10,E10)=1,SUMIFS(I:I,C:C,C10,E:E,E10),"") to get the combined interstate tax
As in every new data the range changes, I need to change the range every time. So, I tried to combine both the formulas with this formula
=IF(12=0,COUNTIFS(C$2:C2,C2,E$2:E2,E2)=1,SUMIFS(K:K,C:C,C2,E:E,E2),COUNTIFS(C$2:C2,C2,E$2:E2,E2)=1,SUMIFS(I:I,C:C,C2,E:E,E2)))
But I am not able to get the formula right.
query to combine tax IGST + CGST in one formula.xlsx | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | a | b | c | d | e | f | g | h | Interstate | Combine Tax | Local | ||
2 | 1 | 24AAHCS4768D4Z7 | TAX/0488/21-22 | 473.88 | 0 | 0 | |||||||
3 | 2 | 24AAHCS4768D4Z7 | TAX/0699/21-22 | 1269.9 | 0 | 0 | |||||||
4 | 3 | 24AAHCS4768D4Z7 | TAX/0699/21-22 | 1401.83 | FALSE | 0 | |||||||
5 | 4 | 24AAHCS4768D4Z7 | TAX/0715/21-22 | 338.64 | 0 | 0 | |||||||
6 | 5 | 24AAHCS4768D4Z7 | TAX/0730/21-22 | 348.1 | 0 | 0 | |||||||
7 | 6 | 24AAHCS4768D4Z7 | TAX/0789/21-22 | 1553.64 | 0 | 0 | |||||||
8 | 7 | 24AAHCS4768D4Z7 | TAX/0789/21-22 | 437.52 | FALSE | 0 | |||||||
9 | 8 | 24AAHCS4768D4Z7 | TAX/0798/21-22 | 480.27 | 0 | 0 | |||||||
10 | 9 | 24AAHCS4768D4Z7 | TAX/0813/21-22 | 1058.25 | 0 | 0 | |||||||
11 | 10 | 24AAHCS4768D4Z7 | TAX/0834/21-22 | 634.95 | 0 | 0 | |||||||
12 | 11 | 24AAHCS4768D4Z7 | TAX/0834/21-22 | 527.63 | FALSE | 0 | |||||||
13 | 12 | 24AAHCS4768D4Z7 | TAX/0900/21-22 | 479.19 | 0 | 0 | |||||||
14 | 13 | 24AAHCS4768D4Z7 | TAX/0918/21-22 | 2716.8 | 0 | 0 | |||||||
15 | 14 | 24AAHCS4768D4Z7 | TAX/0918/21-22 | 859.78 | FALSE | 0 | |||||||
16 | 15 | 29AAACT9430G1Z7 | BLR7-981 | 0 | 6.55 | 6.55 | |||||||
17 | 16 | 29AAAFI7960D1ZB | RBR22E000721 | 0 | 6230 | 4.18 | |||||||
18 | 17 | 29AAAFI7960D1ZB | RBR22E000721 | 0 | FALSE | 4461.73 | |||||||
19 | 18 | 29AAAFI7960D1ZB | RBR22E000721 | 0 | FALSE | 1764.09 | |||||||
20 | 19 | 29AABFI4434R1ZU | KA01000321000306 | 0 | 726.38 | 336.64 | |||||||
21 | 20 | 29AABFI4434R1ZU | KA01000321000306 | 0 | FALSE | 389.74 | |||||||
22 | 21 | 29ABHPC1918R1Z8 | ICHABE2122000044 | 0 | 155.71 | 0.24 | |||||||
23 | 22 | 29ABHPC1918R1Z8 | ICHABE2122000044 | 0 | FALSE | 37.41 | |||||||
24 | 23 | 29ABHPC1918R1Z8 | ICHABE2122000044 | 0 | FALSE | 118.06 | |||||||
25 | 24 | 29ADDFS6267R1Z1 | 0114/2021-22 | 0 | 74.17 | 74.17 | |||||||
26 | 25 | 29ADDFS6267R1Z1 | 0236/2021-22 | 0 | 389.65 | 9 | |||||||
27 | 26 | 29ADDFS6267R1Z1 | 0236/2021-22 | 0 | FALSE | 380.65 | |||||||
28 | 27 | 29ADDFS6267R1Z1 | 0244/2021-22 | 0 | 735.11 | 20.25 | |||||||
29 | 28 | 29ADDFS6267R1Z1 | 0244/2021-22 | 0 | FALSE | 714.86 | |||||||
30 | 29 | 29AGHPY0797M1ZB | 107 | 0 | 2700 | 2700 | |||||||
31 | 30 | 29AGHPY0797M1ZB | 118 | 0 | 2685.6 | 2685.6 | |||||||
32 | 31 | 29FZBPS6969D1ZO | 277 | 0 | 2858.4 | 2858.4 | |||||||
33 | 32 | 29FZBPS6969D1ZO | 281 | 0 | 2997 | 2997 | |||||||
34 | 33 | 29FZBPS6969D1ZO | 284 | 0 | 3330 | 3330 | |||||||
35 | 34 | 29FZBPS6969D1ZO | 285 | 0 | 2394 | 2394 | |||||||
36 | 35 | 06AXFPA2657R1Z5 | 8 | 3030 | 0 | 0 | |||||||
37 | 36 | 06BOVPG2947E1ZQ | 08-2021-2022 | 1555.2 | 0 | 0 | |||||||
38 | 37 | 06BOVPG2947E1ZQ | 08-2021-2022 | 2118 | FALSE | 0 | |||||||
39 | 38 | 09AAACI5853L2Z5 | 1812494132 | 2924.09 | 0 | 0 | |||||||
40 | 39 | 09AAACI5853L2Z5 | 1812603555 | 762.71 | 0 | 0 | |||||||
41 | 40 | 09AJHPM4274A1ZB | 507 | 2100 | 0 | 0 | |||||||
42 | 41 | 09AJHPM4274A1ZB | 508 | 1136 | 0 | 0 | |||||||
43 | 42 | 09AJHPM4274A1ZB | 510 | 300 | 0 | 0 | |||||||
44 | 43 | 19AAACT9430G1Z8 | SCCH-3083 | 13.1 | 0 | 0 | |||||||
Combine Tax |
Cell Formulas | ||
---|---|---|
Range | Formula | |
J2:J44 | J2 | =IF(COUNTIFS(C$2:C2,C2,E$2:E2,E2)=1,SUMIFS(K:K,C:C,C2,E:E,E2),IF(12=0,IF(COUNTIFS(C$2:C2,C2,E$2:E2,E2)=1,SUMIFS(I:I,C:C,C2,E:E,E2)))) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
E2:E44 | Expression | =COUNTIFS(C$2:C$19991,C2,E$2:E$19991,E2)>1 | text | NO |
Last edited: