Hi all,
I am absolutely stumped on how to solve this challenge with a macro.
I have software providing me with multiple rows of data, with all the data relating to a particular job placed in a single cell, separated by a semi-colon.
An example is below.
I basically need to develop a macro that will count the quantities of each product, relating to that particular job. Often the same product is listed with a different quantity multiple times within the same cell. This is because the same product was installed in a different room in that job.
Products that are possible are as follows.
The job data cells start at P2 of the spreadsheet and the rows are dependent on the number of jobs listed within the spreadsheet.
Any help or guidance will be greatly appreciated.
Thank you
I am absolutely stumped on how to solve this challenge with a macro.
I have software providing me with multiple rows of data, with all the data relating to a particular job placed in a single cell, separated by a semi-colon.
An example is below.
[TABLE="width: 5698"]
<tbody>[TR]
[TD="width: 5698"]1 x Primsal 7w B22WWB (outdoor);3 x Ecobulb 12w Outdoor Reflector (outdoor);2 x Primsal 7w E27WWB (outdoor);3 x Ecobulb 8w Indoor Reflector (allbr);2 x Ecomatters E14 Candle (allbr);6 x Primsal 7w E27WWB (lounge);5 x Primsal 7w B22WWB (lounge);4 x Primsal 7w B22WWB (allbr);3 x Primsal 7w E27WWB (allbr);2 x Ecobulb 8w Indoor Reflector (lounge);1 x Primsal 7w B22WWB (laundry);[/TD]
[/TR]
</tbody>[/TABLE]
I basically need to develop a macro that will count the quantities of each product, relating to that particular job. Often the same product is listed with a different quantity multiple times within the same cell. This is because the same product was installed in a different room in that job.
Products that are possible are as follows.
[TABLE="width: 203"]
<tbody>[TR]
[TD]Primsal 7w B22WWB[/TD]
[/TR]
[TR]
[TD]Primsal 7w E27WWB[/TD]
[/TR]
[TR]
[TD]Primsal 7w B22CWB[/TD]
[/TR]
[TR]
[TD]Primsal 7w E27CWB[/TD]
[/TR]
[TR]
[TD]Ecomatters E14 Candle[/TD]
[/TR]
[TR]
[TD]Ecomatters B15 Candle[/TD]
[/TR]
[TR]
[TD]Ecobulb 8w Indoor Reflector[/TD]
[/TR]
[TR]
[TD]Ecobulb 12w Outdoor Reflector[/TD]
[/TR]
[TR]
[TD]Ecomatters-90E2[/TD]
[/TR]
[TR]
[TD]Ecomatters 5w GU10[/TD]
[/TR]
</tbody>[/TABLE]
The job data cells start at P2 of the spreadsheet and the rows are dependent on the number of jobs listed within the spreadsheet.
Any help or guidance will be greatly appreciated.
Thank you