Hello Experts.
I have a question which I thought would be straight forward, but is proving quite difficult to solve. I have a monthly spreadsheet prepared by a 3rd party software package that I cannot alter. It returns in col A employee name, followed by product categories. In col. B it returns the value of sales for each of the product categories. As the end of each employee in col. B there is a subtotal. The trouble is col. A product categories vary, only categories with sales are shown. Therefore if an employee does not make a sale in one category it will not be displayed.
I need to be able to extract the employee name and total sale. I have tried various lookups/offset and index but have been unable to come to a workable solution. Would be more than happy for a formula or VBA solution. Any assistance would be greatly appreciated.
Thanks
Carolyn
Original Data Format
[TABLE="class: t1"]
<tbody>[TR]
[TD="class: td1"]Data
[/TD]
[TD="class: td1"]Amount
[/TD]
[/TR]
[TR]
[TD="class: td1"]M. Smith
[/TD]
[TD="class: td1"]
[/TD]
[/TR]
[TR]
[TD="class: td1"]Apple
[/TD]
[TD="class: td1"]20
[/TD]
[/TR]
[TR]
[TD="class: td1"]Pear
[/TD]
[TD="class: td1"]20
[/TD]
[/TR]
[TR]
[TD="class: td1"]Banana
[/TD]
[TD="class: td1"]40
[/TD]
[/TR]
[TR]
[TD="class: td1"]
[/TD]
[TD="class: td1"]80
[/TD]
[/TR]
[TR]
[TD="class: td1"]
[/TD]
[TD="class: td1"]
[/TD]
[/TR]
[TR]
[TD="class: td1"]P. Noone
[/TD]
[TD="class: td1"]
[/TD]
[/TR]
[TR]
[TD="class: td1"]Apple
[/TD]
[TD="class: td1"]10
[/TD]
[/TR]
[TR]
[TD="class: td1"]Pear
[/TD]
[TD="class: td1"]10
[/TD]
[/TR]
[TR]
[TD="class: td1"]Banana
[/TD]
[TD="class: td1"]10
[/TD]
[/TR]
[TR]
[TD="class: td1"]Orange
[/TD]
[TD="class: td1"]20
[/TD]
[/TR]
[TR]
[TD="class: td1"]
[/TD]
[TD="class: td1"]50
[/TD]
[/TR]
[TR]
[TD="class: td1"]
[/TD]
[TD="class: td1"]
[/TD]
[/TR]
[TR]
[TD="class: td1"]C. Someone
[/TD]
[TD="class: td1"]
[/TD]
[/TR]
[TR]
[TD="class: td1"]Apple
[/TD]
[TD="class: td1"]20
[/TD]
[/TR]
[TR]
[TD="class: td1"]Pear
[/TD]
[TD="class: td1"]20
[/TD]
[/TR]
[TR]
[TD="class: td1"]Banana
[/TD]
[TD="class: td1"]20
[/TD]
[/TR]
[TR]
[TD="class: td1"]
[/TD]
[TD="class: td1"]60
[/TD]
[/TR]
</tbody>[/TABLE]
I have a question which I thought would be straight forward, but is proving quite difficult to solve. I have a monthly spreadsheet prepared by a 3rd party software package that I cannot alter. It returns in col A employee name, followed by product categories. In col. B it returns the value of sales for each of the product categories. As the end of each employee in col. B there is a subtotal. The trouble is col. A product categories vary, only categories with sales are shown. Therefore if an employee does not make a sale in one category it will not be displayed.
I need to be able to extract the employee name and total sale. I have tried various lookups/offset and index but have been unable to come to a workable solution. Would be more than happy for a formula or VBA solution. Any assistance would be greatly appreciated.
Thanks
Carolyn
Original Data Format
[TABLE="class: t1"]
<tbody>[TR]
[TD="class: td1"]Data
[/TD]
[TD="class: td1"]Amount
[/TD]
[/TR]
[TR]
[TD="class: td1"]M. Smith
[/TD]
[TD="class: td1"]
[/TD]
[/TR]
[TR]
[TD="class: td1"]Apple
[/TD]
[TD="class: td1"]20
[/TD]
[/TR]
[TR]
[TD="class: td1"]Pear
[/TD]
[TD="class: td1"]20
[/TD]
[/TR]
[TR]
[TD="class: td1"]Banana
[/TD]
[TD="class: td1"]40
[/TD]
[/TR]
[TR]
[TD="class: td1"]
[/TD]
[TD="class: td1"]80
[/TD]
[/TR]
[TR]
[TD="class: td1"]
[/TD]
[TD="class: td1"]
[/TD]
[/TR]
[TR]
[TD="class: td1"]P. Noone
[/TD]
[TD="class: td1"]
[/TD]
[/TR]
[TR]
[TD="class: td1"]Apple
[/TD]
[TD="class: td1"]10
[/TD]
[/TR]
[TR]
[TD="class: td1"]Pear
[/TD]
[TD="class: td1"]10
[/TD]
[/TR]
[TR]
[TD="class: td1"]Banana
[/TD]
[TD="class: td1"]10
[/TD]
[/TR]
[TR]
[TD="class: td1"]Orange
[/TD]
[TD="class: td1"]20
[/TD]
[/TR]
[TR]
[TD="class: td1"]
[/TD]
[TD="class: td1"]50
[/TD]
[/TR]
[TR]
[TD="class: td1"]
[/TD]
[TD="class: td1"]
[/TD]
[/TR]
[TR]
[TD="class: td1"]C. Someone
[/TD]
[TD="class: td1"]
[/TD]
[/TR]
[TR]
[TD="class: td1"]Apple
[/TD]
[TD="class: td1"]20
[/TD]
[/TR]
[TR]
[TD="class: td1"]Pear
[/TD]
[TD="class: td1"]20
[/TD]
[/TR]
[TR]
[TD="class: td1"]Banana
[/TD]
[TD="class: td1"]20
[/TD]
[/TR]
[TR]
[TD="class: td1"]
[/TD]
[TD="class: td1"]60
[/TD]
[/TR]
</tbody>[/TABLE]