ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   combining rows of data into one row (https://www.excelbanter.com/excel-discussion-misc-queries/212194-combining-rows-data-into-one-row.html)

Miskacee

combining rows of data into one row
 
I have an employee ID and a field for Goals. CUrrently there are 2-20 goals
per employee ID. I am trying to combine the 2-20 goals into only one field
per employee id.

I know I concatinate it but can't figure out how to get say for example 2
rows of goals into one row.

Employee ID Goal
1111 Learn Excel
1111 Learn Access

I'd like to create the above to look like this:
Employee ID Goal
1111 Learn Excel; Learn Access

Thanks for any help you can provide.

Gary''s Student

combining rows of data into one row
 
A tiny trick. Say your real data starts in A2. In C2 enter:
=B2
In C3 enter:
=IF(A2=A1,C2 & ";" & B3,B3) and copy down
--
Gary''s Student - gsnu200817


"Miskacee" wrote:

I have an employee ID and a field for Goals. CUrrently there are 2-20 goals
per employee ID. I am trying to combine the 2-20 goals into only one field
per employee id.

I know I concatinate it but can't figure out how to get say for example 2
rows of goals into one row.

Employee ID Goal
1111 Learn Excel
1111 Learn Access

I'd like to create the above to look like this:
Employee ID Goal
1111 Learn Excel; Learn Access

Thanks for any help you can provide.



All times are GMT +1. The time now is 07:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com