Hi all, I wonder if there's a really quick way of combining/merging cells into one that all contain data.
IE
:can:You:make:this:into:one:cell:
=
:canyoumakethisintoonecell:
I don't need spaces, just one long word.
Hi all, I wonder if there's a really quick way of combining/merging cells into one that all contain data.
IE
:can:You:make:this:into:one:cell:
=
:canyoumakethisintoonecell:
I don't need spaces, just one long word.
There's a function, Concatenate, which merges a list of cells, e.g.
=CONCATENATE(A1, B1, C1)
Or you can just list the cells with ampersands between them:
=A1 & B1 & C1
You can use the CONCATENATE function to append various cells in to 1, although each cell needs to be specified.
Otherwise you can use a user defined function to take a selection and return an appended string
You're my knight in shining armour AND teaching me to be an excel wizard like you!
Thank you!
This code will give you a worksheet function which will combine a range of cells. Adding error trapping and validation is left as an exercise for the reader
Please Login or Register to view this content.
If you need a UDF then this might be another way
Please Login or Register to view this content.
If you don't need separators use like this
=Conc(E5:J5)
otherwise
=Conc(E5:J5," * ")
The separator can be any string you might need.
The range can be any size or shape, the function will concatenate by Columns left to right, then by Rows, omitting any blank cells.
Hope this helps
Last edited by Marcol; 07-23-2010 at 07:31 AM. Reason: Added a bit more functionallity & Demo workbook
If you need any more information, please feel free to ask.
However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....
Also
اس کی مدد کرتا ہے اگر
شکریہ کہنے کے لئے سٹار کلک کریں
If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks