RAJESH1960
Banned for repeated rules violations
- Joined
- Mar 26, 2020
- Messages
- 2,313
- Office Version
- 2019
- Platform
- Windows
Hello guys, This is a little complicated for me to write the code.
Raw Sheet is a formatted sheet received to be converted into XML. The expected result is the workings sheet. Workings is the sheet where there are columns more than the Raw sheet as it contains all the columns needed. Workings is the sheet where I want the data to be posted column wise from the Raw Sheet, with the help of a code. The headings of taxes have one thing in common "input" and the rates are all different. The CGST, SGST and IGST may be anywhere in the value of Input - beginning, middle or end. The code has to search for the rates of sheet Raw and Post them in sheet Workings.
Voucher No. must be posted as Supplier Invoice No. in the workings sheet. The others columns in Working are for the columns of Raw sheet with amounts in figures which are not in Workings sheet. In this case, they are courier charges @5% and Cartage. In other cases it can be different names. Check for columns with amount for others.
Raw Sheet is a formatted sheet received to be converted into XML. The expected result is the workings sheet. Workings is the sheet where there are columns more than the Raw sheet as it contains all the columns needed. Workings is the sheet where I want the data to be posted column wise from the Raw Sheet, with the help of a code. The headings of taxes have one thing in common "input" and the rates are all different. The CGST, SGST and IGST may be anywhere in the value of Input - beginning, middle or end. The code has to search for the rates of sheet Raw and Post them in sheet Workings.
Voucher No. must be posted as Supplier Invoice No. in the workings sheet. The others columns in Working are for the columns of Raw sheet with amounts in figures which are not in Workings sheet. In this case, they are courier charges @5% and Cartage. In other cases it can be different names. Check for columns with amount for others.
Query 1.xlsx | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | |||
1 | Rajesh | ||||||||||||||||||||||||||
2 | Kathriguppe | ||||||||||||||||||||||||||
3 | Bangalore - 560042 | ||||||||||||||||||||||||||
4 | Ph: 000000000 | ||||||||||||||||||||||||||
5 | Purchase R Register | ||||||||||||||||||||||||||
6 | 1-Dec-2021 to 31-Dec-2021 | ||||||||||||||||||||||||||
7 | Date | Particulars | Address | Voucher No. | Supplier Invoice No. | Supplier Invoice Date | GSTIN/UIN | Narration | Gross Total | Purchase GST Local | Input SGST @ 2.5% | Input CGST @ 2.5% | Round Off | Purchase IGST Interstate | Input IGST @ 5% | Input IGST @ 18% | Input CGST @ 9% | Input SGST @ 9% | Input IGST @ 12% | Input SGST @ 6% | Input CGST @ 6% | Courier Charges @ 5% | Cartage | Input CGST @ 14% | Input SGST @ 14% | ||
8 | 01-Dec-2021 | january | 440 | 338 | 01-12-2021 | abcde | 20.00 | 12345.00 | 93.33 | 93.33 | -0.02 | 5.00 | 5.00 | 10.00 | 10.00 | 20.00 | 176.08 | 176.08 | |||||||||
9 | 01-Dec-2021 | february | 441 | 3192 | 01-12-2021 | defg | 32.00 | 40.00 | 112.00 | 1234.00 | 10.00 | ||||||||||||||||
10 | 01-Dec-2021 | march | 442 | 47657 | 01-12-2021 | 72.00 | -0.48 | 36.00 | 246.48 | 30.00 | |||||||||||||||||
11 | 01-Dec-2021 | april | 443 | 3339 | 01-12-2021 | 53.00 | 80.00 | 544.00 | |||||||||||||||||||
12 | 02-Dec-2021 | may | 444 | 1839 | 02-12-2021 | hij | 68.00 | -0.28 | 665.00 | 3.78 | 40.00 | ||||||||||||||||
13 | 02-Dec-2021 | june | 445 | 10532 | 02-12-2021 | 45.00 | -0.40 | 478.00 | 20.40 | ||||||||||||||||||
14 | 02-Dec-2021 | july | 446 | 1562 | 02-12-2021 | 868.00 | -0.10 | 922.00 | 46.10 | 50.00 | |||||||||||||||||
15 | 03-Dec-2021 | august | 447 | 16502 | 03-12-2021 | klmn | 714.00 | 6789.00 | 170.10 | 170.10 | -0.20 | 5.00 | 5.00 | ||||||||||||||
16 | 03-Dec-2021 | september | 448 | 1913 | 03-12-2021 | 1685.00 | 1010.11 | 0.29 | 1226.80 | 1226.80 | 60.00 | ||||||||||||||||
17 | 03-Dec-2021 | october | 449 | 3852 | 03-12-2021 | 2632.00 | -0.31 | 215.00 | 125.00 | ||||||||||||||||||
18 | 03-Dec-2021 | november | 450 | 3853 | 03-12-2021 | 1790.00 | 160.00 | 1920.00 | 70.00 | ||||||||||||||||||
19 | 03-Dec-2021 | december | 451 | 577 | 03-12-2021 | rstu | 748.00 | 0.15 | 712.00 | 35.00 | |||||||||||||||||
20 | Grand Total | 5764634.00 | 3093454.56 | 76226.83 | 76226.83 | 5.49 | 2379855.78 | 113446.25 | 3516.48 | 2663.34 | 2663.34 | 11363.54 | 780.20 | 780.20 | 3300.00 | -1.00 | 176.08 | 176.08 | |||||||||
Raw |
Query 1.xlsx | ||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | AH | AI | AJ | AK | AL | AM | AN | AO | AP | AQ | AR | |||
1 | a | b | c | d | e | f | g | h | i | j | Date | Supplier Invoice Date | Narration | Supplier Invoice No. | Voucher No. | Particulars | Gross Total | k | l | m | n | o | p | q | r | CGST INPUT @ 2.5 % | SGST INPUT @ 2.5 % | CGST INPUT @ 6 % | SGST INPUT @ 6 % | CGST INPUT @ 9 % | SGST INPUT @ 9 % | CGST INPUT @ 14 % | SGST INPUT @ 14 % | IGST INPUT @ 5 % | IGST INPUT @ 12 % | IGST INPUT @ 18 % | IGST INPUT @ 28 % | Round Off | Purchase GST Local | Purchase IGST Interstate | Others 1 | Others 2 | Others 3 | Others 4 | ||
2 | ######### | 01-12-2021 | abcde | 338 | 338 | january | 20.00 | 93.33 | 93.33 | 10.00 | 10.00 | 5.00 | 5.00 | 176.08 | 176.08 | -0.02 | 12345.00 | 20.00 | ||||||||||||||||||||||||||||
3 | ######### | 01-12-2021 | defg | 3192 | 3192 | february | 32.00 | 112.00 | 1234.00 | 40.00 | 10.00 | |||||||||||||||||||||||||||||||||||
4 | ######### | 01-12-2021 | 47657 | 47657 | march | 72.00 | 246.48 | -0.48 | 36.00 | 30.00 | ||||||||||||||||||||||||||||||||||||
5 | ######### | 01-12-2021 | 3339 | 3339 | april | 53.00 | 544.00 | 80.00 | ||||||||||||||||||||||||||||||||||||||
6 | ######### | 02-12-2021 | hij | 1839 | 1839 | may | 68.00 | 3.78 | -0.28 | 665.00 | 40.00 | |||||||||||||||||||||||||||||||||||
7 | ######### | 02-12-2021 | 10532 | 10532 | june | 45.00 | 20.40 | -0.40 | 478.00 | |||||||||||||||||||||||||||||||||||||
8 | ######### | 02-12-2021 | 1562 | 1562 | july | 868.00 | 46.10 | -0.10 | 922.00 | 50.00 | ||||||||||||||||||||||||||||||||||||
9 | ######### | 03-12-2021 | klmn | 16502 | 16502 | august | 714.00 | 170.10 | 170.10 | 5.00 | 5.00 | -0.20 | 6789.00 | |||||||||||||||||||||||||||||||||
10 | ######### | 03-12-2021 | 1913 | 1913 | september | 1685.00 | 1226.80 | 1226.80 | 0.29 | 1010.11 | 60.00 | |||||||||||||||||||||||||||||||||||
11 | ######### | 03-12-2021 | 3852 | 3852 | october | 2632.00 | 125.00 | -0.31 | 215.00 | |||||||||||||||||||||||||||||||||||||
12 | ######### | 03-12-2021 | 3853 | 3853 | november | 1790.00 | 1920.00 | 160.00 | 70.00 | |||||||||||||||||||||||||||||||||||||
13 | ######### | 03-12-2021 | rstu | 577 | 577 | december | 748.00 | 35.00 | 0.15 | 712.00 | ||||||||||||||||||||||||||||||||||||
Workings |