Hi everyone,
Still a newbie trying to figure things out.... how can I transform multiple rows of data into one and also add new columns to the single row with data from the multiple rows?
Original data:
EmpID | Name | Project ID | Month | Hours |
111 | John Doe | A | June | 14 |
111 | John Doe | A | July | 16 |
111 | John Doe | B | June | 12 |
111 | John Doe | B | July | 13 |
222 | Jane Smith | A | June | 15 |
222 | Jane Smith | A | July | 14 |
222 | Jane Smith | B | June | 13 |
222 | Jane Smith | B | July | 14 |
Desired output:
EmpID | Name | Project ID | June Hours | July Hours | 2 Month Total Hours | 2 Month Avg Hours |
111 | John Doe | A | 14 | 16 | 30 | 15 |
111 | John Doe | B | 12 | 13 | 25 | 12.5 |
222 | Jane Smith | A | 15 | 14 | 29 | 14.5 |
222 | Jane Smith | B | 13 | 14 | 27 | 13.5 |
Thanks in advance for any help or suggestions!
Sonny