Sincerely,
Michelle
"Peo Sjoblom" wrote:
> You can't, you can concatenate 2 cells into one by using a formula and
> ampersand
>
> =A1&" "&B1
>
>
> however stay away from merging cells, always cause more problems than what
> it's worth and layout wise you can get very close without using it. I have
> never seen a power user using merging
>
> Regards,
>
> Peo Sjoblom
>
> "Batmans_Wife" wrote:
>
> > I'm highlighting two cells in the same row, hitting format cells, alignment,
> > merge cells and I'm getting the error message, "The selection contains
> > multiple data values. Merging into one cell will keep the upper-left most
> > data only." I want to be able to make the two seperate cells one without
> > deleting anything and without having to cut and paste.
http://www.mcgimpsey.com/excel/mergedata.html
In article <960DC31C-EDD3-4871...@microsoft.com>,
Sincerely,
Michelle
Thanks
Sandra
You could copy that range to the other program.
Or you could convert that new column E to values and delete columns C:D (or just
column D???).
--
Dave Peterson
--
Dave Peterson
Gord
On Mon, 28 Apr 2008 05:52:01 -0700, Angie <An...@discussions.microsoft.com>
wrote:
Sincerely,
roshni
--
Dave Peterson
Function ConCatRange(CellBlock As Range) As String
Dim Cell As Range
Dim sbuf As String
For Each Cell In CellBlock
If Len(Cell.text) > 0 Then sbuf = sbuf & Cell.text & " "
' for comma-delimited change above " " to ","
Next
ConCatRange = Left(sbuf, Len(sbuf) - 1)
End Function
Usage is: =concatrange(A1:Z1)
Nore: blank cells will be ignored.
For similar methods with code see this search result from google
Gord Dibben MS Excel MVP
When I try to search help for concatrange, nothing comes up, only
concatenate.
Could you clarify more for me please? Thank you.
"anthony561fl" <anthon...@discussions.microsoft.com> wrote in message
news:C511EEEC-CD18-498A...@microsoft.com...
Either =CONCATENATE(K2,L2,M2) etc. or =K2&L2&M2 etc.
or a User Defined Function
Function ConCatRange(CellBlock As Range) As String
Dim Cell As Range
Dim sbuf As String
For Each Cell In CellBlock
If Len(Cell.text) > 0 Then sbuf = sbuf & Cell.text & " "
' the " " returns space-delimited text
Next
ConCatRange = Left(sbuf, Len(sbuf) - 1)
End Function
Usage is: =ConCatRange(K2:KZ2)
If you're not familiar with VBA and macros/functions, see David McRitchie's
site for more on "getting started".
http://www.mvps.org/dmcritchie/excel/getstarted.htm
or Ron de De Bruin's site on where to store macros.
http://www.rondebruin.nl/code.htm
In the meantime..........
First...create a backup copy of your original workbook.
To create a General Module, hit ALT + F11 to open the Visual Basic Editor.
Hit CRTL + r to open Project Explorer.
Find your workbook/project and select it.
Right-click and Insert>Module. Paste the code in there. Save the
workbook and hit ALT + Q to return to your workbook.
In a cell enter the formula as shown above in Usage is:
Gord Dibben MS Excel MVP
"Peo Sjoblom" wrote:
> You can't, you can concatenate 2 cells into one by using a formula and
> ampersand
>
> =A1&" "&B1
>
>
> however stay away from merging cells, always cause more problems than what
> it's worth and layout wise you can get very close without using it. I have
> never seen a power user using merging
>
> Regards,
>
> Peo Sjoblom
>
Gord Dibben MS Excel MVP
Ray D
You could copy/paste it into a general module in a new workbook, save that
workbook as an Add-in which you would load through Tools>Add-ins.
I prefer the Add-in method so's I don't have to preface the Function with
the workbook name.
i.e. if saved in Personal.xls you must enter
=Personal.xls!ConCatRange(range)
If stored in the add-in =ConCatRange(range) is sufficient.
Gord
On Wed, 5 Nov 2008 06:22:00 -0800, rapid1 <rap...@discussions.microsoft.com>
wrote:
Can anyone help plz?
Thanks in advance
Oli
BTW.............this operation would not be "merging" the columns, it would
be "combining" them.
Gord Dibben MS Excel MVP
On Fri, 7 Nov 2008 02:42:00 -0800, Oli <O...@discussions.microsoft.com>
wrote:
Thank you!
Make sure that your calculation mode is set to automatic so's you don't get
same results all the way down.
Gord Dibben MS Excel MVP
the "$" makes it absolute and fill wont change the valu immediatly preceded
by the "$" so "A" and "B" will never change but "1" in both cases will
Good luck on the rest.
That's a great formula!
-Jim
Only the Middle field does not already have an empty character at the end of
the cell so they don't need a blank space in between. I want my results to
be: To the ________ Family
Problem: I haven't tried this since upgrading to Office 2007 and I get the
formula in the cell but not the results? What am I doing wrong?
Thanks
"bonnie" <bon...@discussions.microsoft.com> wrote in message
news:CC86DE1A-2A1B-4D68...@microsoft.com...
I like to insert a new helper column (Maybe column C in this case, so it's close
to the data), then use the cells in that new column.
--
Dave Peterson
"Peo Sjoblom" wrote:
> You can't, you can concatenate 2 cells into one by using a formula and
> ampersand
>
> =A1&" "&B1
>
>
> however stay away from merging cells, always cause more problems than what
> it's worth and layout wise you can get very close without using it. I have
> never seen a power user using merging
>
> Regards,
>
> Peo Sjoblom
>
=A1&CHAR(10)&B1
Be sure to format the cell as having wrapped text, otherwise you'll
just see a small symbol between the values from A1 and B1.
--
Paul
- Paul
------------------------------------------------------------------------
Paul's Profile: 1697
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=192711
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
dgui...@gmail.com
"Stephie" <Ste...@discussions.microsoft.com> wrote in message
news:AA47D297-9932-4280...@microsoft.com...
=A1&", "&B1
If all you have is the cell with the result, you could use:
=substitute(a1," ",", ")
Stephie wrote:
--
Dave Peterson
=A1&B1
Thanks,
If Len(Cell.Text) > 0 Then sbuf = sbuf & Cell.Text & Chr(10)
1. The function cannot copy anything to anywhere.
Functions return results to the cell in which they are written.
You can manually Copy and paste special>values to next door cell.
Gord
"Gord Dibben" wrote:
> .
>