Hi guys,
I need your help.
I have different values in a column. For example
A
B
C
Now I want them in a row and with brackets and commas, so it can be used in a SQL-Statement like
(A, B, C)
Thanks for your help!
Indigo
Hi guys,
I need your help.
I have different values in a column. For example
A
B
C
Now I want them in a row and with brackets and commas, so it can be used in a SQL-Statement like
(A, B, C)
Thanks for your help!
Indigo
Try this.....
Press Ctrl + Shift + Enter as this is an array.Please Login or Register to view this content.
1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.
Tom
Maybe:
Please Login or Register to view this content.
Hi
@ Tom: this is an approach. But when I have a column with 500 numbers it is not possible.
@ John: That is almost the result i want to have. Perhaps it is possible that the whole result (A, B, C) is in one cell?
Regards
Indigo
Try:
Please Login or Register to view this content.
Try this
Please Login or Register to view this content.
< ----- Please click the little star * next to add reputation if my post helps you
Visit Forum : From Here
Hi
@ John. Nice. This works, But, as i see, i have to define all the cells which should be joined. This is again not possible for 500 cells.
@ Yasser. Really nice. This works really good. I only have to add the brackets manually, but that´s not the problem.
Thank you both!
Indigo
Gruß Gott Indigo
Modified version of John’s,
And my “Array” versionPlease Login or Register to view this content.
Please Login or Register to view this content.
..
Both take this
Using Excel 2007
Row\Col A 1A 2B 3C 4D 5E 6
ConcatenateRow
And return this
Using Excel 2007
Row\Col A B 1A (A, B, C, D, E) 2B 3C 4D 5E
ConcatenateRow
Alan
Hof,
Bayern
'_- Google first, like this _ site:ExcelForum.com Gamut
Use Code Tags: Highlight code; click on the # icon above,
Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
http://www.excelforum.com/the-water-...ml#post4109080
https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )
A little confused by your title. This modification should address your concerns.
Please Login or Register to view this content.
Hi John,
.. I ( think ) to get the OPs final wishes you need to also look at row 1,
Please Login or Register to view this content.
( I expect he may not be using a header, as you may have (sensibly) assumed
Alan
@ Alan - You're probably right! I always assume header. My default thinking.
Really really nice! It is quite impressive how different the approach can be from both of you.
And I finally have to say that the bavarian guys, beside soccer, can also write good vba codes
Indigo
Gruß aus Baden
Do you mean like this?
Please Login or Register to view this content.
. Hi,
. Thanks for that, I was not notified of your Post... just caught it coincidentally...
.....
.. And did you catch the response from jindon ? !! - Wow what a great “One Liner..” The sort that i wrack my brain to pull apart to see how it works, and learn from..
. Multiple response Threads are the best to learn from. ( Shame there seems to be a problem just now I think of notification of Replies not always working??)
Alan
@ jindon:
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks