![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 1
|
I need help I have created a spreadsheet for address, but now i need to put all the data into one cell. So it would appear like a normal address. Can I concatenate more than two cell and have the text wrap around.
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: May 2002
Posts: 91
|
try this ...
=concatenate(a1," ",a2," ",a3) first time posting a solution [ This Message was edited by: jkpd2000 on 2002-05-21 08:52 ] |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
|
If you've got Word, you can easily try mailmerging to labels.
http://www.thewordexpert.com/word.htm#MailMerge
__________________
~Anne Troy |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Location: Minnesota
Posts: 821
|
Can you export data to Access? Mailing label wizard can do this for you without blinking an eye.
__________________
Curiosity may have killed the cat but... satisfaction brought it back. >^;^< |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Apr 2002
Location: Oregon
Posts: 77
|
I deal with address stuff like that every day. Put this in a module and run it as a macro.
"a1" fill in "a1" in the sub with the first cell to the right of the first four separate address cells I.E. "E1" if your first row has the first address parts on it. I have some cool ones for stripping zip codes out of longer strings of numbers if you ever need them too. [ This Message was edited by: cornbread on 2002-05-16 13:18 ] |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Apr 2002
Location: Oregon
Posts: 77
|
There it's all on one line now. Thanks to NateO
[ This Message was edited by: cornbread on 2002-05-16 13:16 ] |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Apr 2002
Location: Minnesota
Posts: 821
|
But how do you get the text to wrap so it looks like a mailing address like Grayphantom asked?
__________________
Curiosity may have killed the cat but... satisfaction brought it back. >^;^< |
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
|
Or
You could even try this one =A1 & A2 & A3 & A4 |
|
|
|
|
|
#9 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Quote:
Following on Cornbread response, you can use Chr(10) to insert a carriage return in the cell. Code:
Sub test()
Dim x, msg
With ActiveCell
For x = -4 To -2
msg = msg & .Offset(0, x) & Chr(10)
Next x
msg = msg & .Offset(0, -1)
.Value = msg
End With
End Sub
Bye, Jay [ This Message was edited by: Jay Petrulis on 2002-05-17 05:25 ] |
|
|
|
|
|
|
#10 |
|
Board Regular
Join Date: Apr 2002
Location: Minnesota
Posts: 821
|
Thank you Jay
From a satisfied cat>^;^< |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|