View Full Version : Concatenating cells


trebor3900
08-13-2008, 04:08 AM
I have a table imported to a spreadsheet from Access containing a duty and a staff number

DUTY STAFFNO
Rest Day 123456
Rest Day 234567
Annual Leave 345678
Earlies 456789
Earlies 567891
Lates 678967

I need to concatenate the Staffno's for each Duty, delimited by a comma, into another worksheet cell dependant on the duty.

Any help would be gratefully recieved

shades
08-13-2008, 06:26 PM
Howdy. Assume duty is in Col A and StaffNo in Col B and each starts in row 2. In Col C2, put this formula:

=A2&","&B2

Copy down as appropriate.

Is that what you are wanting?

maxmangion
08-13-2008, 11:58 PM
you can also use the concatenate function i.e.

=Concatenate(A1, ", ", B1)

namliam
08-14-2008, 12:32 AM
I have a table imported to a spreadsheet from Access containing a duty and a staff number

...
I need to concatenate the Staffno's for each Duty, delimited by a comma, into another worksheet cell dependant on the duty.


Sounds to me like you need to export from the DB a comma seperated file instead of an excel sheet.

trebor3900
08-18-2008, 12:20 PM
Thanks guys worked a treat.

maxmangion
08-18-2008, 11:45 PM
you're welcome :)