Hi, I am getting some input data as below:
| Name 1 | Name 2 | Group 1 | Group 2 | ValueA 1 | ValueA 2 | ValueB 1 | ValueB 2 |
| XXX | | 1 | | 100 | | 200 | |
| | YYY | | 2 | | 100 | | 200 |
| | XXX | | 1 | | 300 | | 300 |
Note that if Name doesn't have a value than the respective columns afterwards will be null. (i.e. Name 1 is null then null in Group/ValueA/ValueB 1)
and I would like to combine columns based on the numbering while summing the values:
| Name | Group | ValueA | ValueB |
| XXX | 1 | 400 | 500 |
| YYY | 2 | 100 | 200 |
I've tried using Transpose and Cross Tab but run into trouble as the Value column will have both string and number formatted columns. So how can I group by combining several string columns and sum multiple columns?
Thanks in advanced for any help and please let me know if the question is unclear.