I have a excel sheet with around 5lakh rows and i want to reduce number of rows by cumilating the data so that i can add more.
below is the sample data (Couldn't share original data due to privacy reasons). Data should be combined based on Columns B,D,E,G.
If data present in B,D,E,F columns is same the code has to sum the values in G column and make it in to single row of data as shown in the next table.
Out put expected is below.
below is the sample data (Couldn't share original data due to privacy reasons). Data should be combined based on Columns B,D,E,G.
If data present in B,D,E,F columns is same the code has to sum the values in G column and make it in to single row of data as shown in the next table.
A | B | C | D | E | F | G |
---|---|---|---|---|---|---|
City Code | City Name | Pincode | Date | Type | Description | Total |
1 | NewYork | 32 | 1-Jan-20 | SA | on | 40 |
1 | NewYork | 32 | 1-Jan-20 | SA | on | 40 |
1 | NewYork | 32 | 1-Jan-20 | NA | off | 20 |
2 | Sydney | 44 | 20-Jan-20 | NA | off | 40 |
2 | Sydney | 44 | 20-Jan-20 | NA | off | 40 |
3 | Delhi | 94 | 20-Jan-20 | SA | on | 20 |
3 | Delhi | 94 | 20-Jan-20 | SA | on | 20 |
3 | Delhi | 94 | 20-Jan-20 | SA | on | 40 |
Out put expected is below.
City Code | City Name | Pincode | Date | Type | Description | Total |
1 | NewYork | 32 | 1-Jan-20 | SA | on | 80 |
1 | NewYork | 32 | 1-Jan-20 | NA | off | 20 |
2 | Sydney | 44 | 20-Jan-20 | NA | off | 80 |
3 | Delhi | 94 | 20-Jan-20 | SA | on | 80 |