How To pass a range of cells to CONCATENATE?

Paladin

New Member
Joined
Sep 15, 2005
Messages
10
I have a string of text broken up in a range of contiguous cells. I'd like to use the concatenate function, but pass it a range parameter "=concatenate(A1:An)" instead of a list of "n" cell parameters "=concatenate(A1, A2, A3, A4, ...An)"

Anyone know a way to work around that? If you pass it a range as a parameter, it only takes the string from the first cell in the range, so in my example above, the output is the string that was in A1.

The problem is, the size of the range will vary from case to case, so it's a case where i need to pass a dynamically determined relative range reference, as opposed to a known number of parameters. :unsure:
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
thanks!
Ok, downloaded the addin and finally got it attached...dumb MS security :P

Now I'm not quite sure how to get the syntax right for my needs, I keep getting a #Value! error...

here is my "testing" line direct from help... before tackling the big one...
=MCONCAT("Stream population for ",A2:A3," is ",A7,"/mile")

I can get a single multiple range to work (a2:a6), but when I try an creat a more complex string or multiple range effect.. I get the #value.
 
Upvote 0
Does this work?

="Stream population for " & MCONCAT(A2:A3) & " is " & A7 & "/mile"
 
Upvote 0
Very kewl!

I love this forum.. you guys rock!

Thanks for the fast help... I'm gonna give you all props when I deliver the product :LOL:
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,241
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top