Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How do I convert a text array to a concatenated text cell? Excel.

I'm trying to concatenate different cell values into one single cell in a
dynamic table. Usually one could use =concatenate(), or do something like
=A1&" ,"&A2 and so on. What I want to try to do is concatenate an array of
values into a single cell. For example, =concatenate(B1:B5), but in this case
the result is an array equivalent to {=B1:B5}, which I find most disturbing.
Is there any way to do this I need to do?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default How do I convert a text array to a concatenated text cell? Excel.

If you don't mind VBA, then:

Function multicat(r As Range) As String
multicat = ""
For Each rr In r
multicat = multicat & rr.Value
Next
End Function
--
Gary's Student


"Vargasjc" wrote:

I'm trying to concatenate different cell values into one single cell in a
dynamic table. Usually one could use =concatenate(), or do something like
=A1&" ,"&A2 and so on. What I want to try to do is concatenate an array of
values into a single cell. For example, =concatenate(B1:B5), but in this case
the result is an array equivalent to {=B1:B5}, which I find most disturbing.
Is there any way to do this I need to do?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How do I convert a text array to a concatenated text cell? Exc

At this point I guess I'm gonna bear it. Although I'd like to make that a
user defined fucntion, UDF. How the heck do I do that?

"Gary''s Student" wrote:

If you don't mind VBA, then:

Function multicat(r As Range) As String
multicat = ""
For Each rr In r
multicat = multicat & rr.Value
Next
End Function
--
Gary's Student


"Vargasjc" wrote:

I'm trying to concatenate different cell values into one single cell in a
dynamic table. Usually one could use =concatenate(), or do something like
=A1&" ,"&A2 and so on. What I want to try to do is concatenate an array of
values into a single cell. For example, =concatenate(B1:B5), but in this case
the result is an array equivalent to {=B1:B5}, which I find most disturbing.
Is there any way to do this I need to do?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default How do I convert a text array to a concatenated text cell? Exc

If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".


http://www.mvps.org/dmcritchie/excel/getstarted.htm


It is my opinion that anyone clever enough to use Excel can work with VBA.

No one has proved me wrong.
--
Gary''s Student


"Vargasjc" wrote:

At this point I guess I'm gonna bear it. Although I'd like to make that a
user defined fucntion, UDF. How the heck do I do that?

"Gary''s Student" wrote:

If you don't mind VBA, then:

Function multicat(r As Range) As String
multicat = ""
For Each rr In r
multicat = multicat & rr.Value
Next
End Function
--
Gary's Student


"Vargasjc" wrote:

I'm trying to concatenate different cell values into one single cell in a
dynamic table. Usually one could use =concatenate(), or do something like
=A1&" ,"&A2 and so on. What I want to try to do is concatenate an array of
values into a single cell. For example, =concatenate(B1:B5), but in this case
the result is an array equivalent to {=B1:B5}, which I find most disturbing.
Is there any way to do this I need to do?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default How do I convert a text array to a concatenated text cell? Exc

That's an interesting theory. And likely correct.
--
Brevity is the soul of wit.


"Gary''s Student" wrote:

If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".


http://www.mvps.org/dmcritchie/excel/getstarted.htm


It is my opinion that anyone clever enough to use Excel can work with VBA.

No one has proved me wrong.
--
Gary''s Student


"Vargasjc" wrote:

At this point I guess I'm gonna bear it. Although I'd like to make that a
user defined fucntion, UDF. How the heck do I do that?

"Gary''s Student" wrote:

If you don't mind VBA, then:

Function multicat(r As Range) As String
multicat = ""
For Each rr In r
multicat = multicat & rr.Value
Next
End Function
--
Gary's Student


"Vargasjc" wrote:

I'm trying to concatenate different cell values into one single cell in a
dynamic table. Usually one could use =concatenate(), or do something like
=A1&" ,"&A2 and so on. What I want to try to do is concatenate an array of
values into a single cell. For example, =concatenate(B1:B5), but in this case
the result is an array equivalent to {=B1:B5}, which I find most disturbing.
Is there any way to do this I need to do?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How do I convert a text array to a concatenated text cell? Exc

Ok, I got the function working. Now I do something like =concat(B1:B10) and
it puts it all together. That's great. Thx.

Now I need also to do that with conditions, for example

=concat(IF(Alfa!E1137=Tables,Locations,0))

In which I'm conditionating the concatenation depending on a Cell value.
This works niceley as long as both Alfa and Locations have the same number of
rows. This is so because of the way seems to handle arrays. I haven't found a
solution to handle arrays by reference. Particularly using ifs. For example,
my problems would end if I could do something like:

=concat({IF(Alfa!E1137=Tables,Locations,0)})

Any help?

"Dave F" wrote:

That's an interesting theory. And likely correct.
--
Brevity is the soul of wit.


"Gary''s Student" wrote:

If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".


http://www.mvps.org/dmcritchie/excel/getstarted.htm


It is my opinion that anyone clever enough to use Excel can work with VBA.

No one has proved me wrong.
--
Gary''s Student


"Vargasjc" wrote:

At this point I guess I'm gonna bear it. Although I'd like to make that a
user defined fucntion, UDF. How the heck do I do that?

"Gary''s Student" wrote:

If you don't mind VBA, then:

Function multicat(r As Range) As String
multicat = ""
For Each rr In r
multicat = multicat & rr.Value
Next
End Function
--
Gary's Student


"Vargasjc" wrote:

I'm trying to concatenate different cell values into one single cell in a
dynamic table. Usually one could use =concatenate(), or do something like
=A1&" ,"&A2 and so on. What I want to try to do is concatenate an array of
values into a single cell. For example, =concatenate(B1:B5), but in this case
the result is an array equivalent to {=B1:B5}, which I find most disturbing.
Is there any way to do this I need to do?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 02:12 PM
Copy from a Cell to a text box. AJL Excel Worksheet Functions 9 November 7th 06 04:58 PM
Text disappears when word wrap is used Mark_GS1CA Excel Discussion (Misc queries) 12 October 17th 05 12:44 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 12:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"