Concatenate several record to one string separated by ;

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
with emails in A1, B1 & C1, try

=A1&"; "&B1&"; "&C1
 
Upvote 0
with emails in A1, B1 & C1, try

=A1&"; "&B1&"; "&C1
Alan, this is an Access question, not an Excel one. If you were using the "Zero Reply Posts" listing when you came across this question, note that over on the right side of the screen, it shows what Forum the question is from.

Gerrit,
Are all these emails addresses in a single field, so you have multiple records with one field, or is it multiple fields within a single record?
If it is multiple records, do you want ALL the email addresses combined together, or will there be "groupings" based on another field?
 
Upvote 0
Joe4,

Every email address is one record, so when I have 4 records I just need one string with 4 email address separated by a semicolon.
No other fields are necessary for my purpose.

Alan, this is an Access question, not an Excel one. If you were using the "Zero Reply Posts" listing when you came across this question, note that over on the right side of the screen, it shows what Forum the question is from.

Gerrit,
Are all these emails addresses in a single field, so you have multiple records with one field, or is it multiple fields within a single record?
If it is multiple records, do you want ALL the email addresses combined together, or will there be "groupings" based on another field?
 
Upvote 0
Joe4,

Every email address is one record, so when I have 4 records I just need one string with 4 email address separated by a semicolon.
....

that's still confusing
4 records means 4 rows

so the question is "how many columns are in each row" --- or "how many fields are in each record"

but let's say you meant one record has 4 fields

the next question is
is it GUARANTEED that each field ALWAYS contains an email address ?

or is it possible that a field is blank or NULL ?

if its guaranteed then try


Code:
select 
  tbl.field_1 & '; ' & tbl.field_2 & '; ' & tbl.field_3 & '; ' & tbl.field_4 
from 
  tbl 
order by 
  tbl.field_1 & '; ' & tbl.field_2 & '; ' & tbl.field_3 & '; ' & tbl.field_4
 
Last edited:
Upvote 0
Last edited:
Upvote 0

Forum statistics

Threads
1,221,814
Messages
6,162,135
Members
451,744
Latest member
outis_

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top