Hi,
I have an excel sheet having data in the below format.
City ID Product 1 Product 2 Product 3
MUM 1234 45
MUM 2345 65 12
MUM 3456 12 24 48
MUM 4567 12
MUM 5678 12 24
DEL 6789 48 36
DEL 7900 12 24 36
DEL 9011 36
DEL 10122 48
DEL 11233 60
The columns City & ID will remain. Product 1 , Product 2 & Product 3 are the columns which are to be moved as rows.
Please see the format below. The data should be in the format given below.
I there a formula/script by which I can get the data in the below format. I have above 12 files with around 3-4 lacs records in each file. I have attached the file for your reference.
City ID Products Qty
MUM 1234 Product 1 45
MUM 3456 Product 1 12
MUM 5678 Product 1 12
DEL 7900 Product 1 12
DEL 9011 Product 1 36
MUM 2345 Product 2 65
MUM 3456 Product 2 24
MUM 5678 Product 2 24
DEL 6789 Product 2 48
DEL 7900 Product 2 24
DEL 10122 Product 2 48
MUM 2345 Product 3 12
MUM 3456 Product 3 48
MUM 4567 Product 3 12
DEL 6789 Product 3 36
DEL 7900 Product 3 36
DEL 11233 Product 3 60
TIA,
Raj
I have an excel sheet having data in the below format.
City ID Product 1 Product 2 Product 3
MUM 1234 45
MUM 2345 65 12
MUM 3456 12 24 48
MUM 4567 12
MUM 5678 12 24
DEL 6789 48 36
DEL 7900 12 24 36
DEL 9011 36
DEL 10122 48
DEL 11233 60
The columns City & ID will remain. Product 1 , Product 2 & Product 3 are the columns which are to be moved as rows.
Please see the format below. The data should be in the format given below.
I there a formula/script by which I can get the data in the below format. I have above 12 files with around 3-4 lacs records in each file. I have attached the file for your reference.
City ID Products Qty
MUM 1234 Product 1 45
MUM 3456 Product 1 12
MUM 5678 Product 1 12
DEL 7900 Product 1 12
DEL 9011 Product 1 36
MUM 2345 Product 2 65
MUM 3456 Product 2 24
MUM 5678 Product 2 24
DEL 6789 Product 2 48
DEL 7900 Product 2 24
DEL 10122 Product 2 48
MUM 2345 Product 3 12
MUM 3456 Product 3 48
MUM 4567 Product 3 12
DEL 6789 Product 3 36
DEL 7900 Product 3 36
DEL 11233 Product 3 60
TIA,
Raj