Concatenate range of cells

philip1127

New Member
Joined
Jul 29, 2002
Messages
2
Hi - I'm trying to concatenate a range of cells, (A1:A250). Is there any way to accomplish this without typing (A1&A2&A3...&A250)? Thanks so much.

-Philip
 
I've been playing with Ricks code from here Flexible Concatenation Function

but not been able to get it to work.

I am rying to populate Contents on the far right based on if there is more than 1 colour in the row then use the value in package type
otherwise
the single colour

here is my example Table1
PACKAGE TYPE
Black
Light Black
Light Light Black
Photo Black
Matte Black
Cyan
Light Cyan
Yellow
Light Yellow
Magenta
Light Magenta
Vivid Magenta
Vivid Light Magenta
Red
Orange
Blue
Green
White
Gloss Optimizer
Color
Metallic Silver
Contents
single
Black
1
Black
multi
Black
Cyan
Light Cyan
Yellow
Magenta
Light Magenta
multi

<tbody>
</tbody>

the code I have tried to use is

Code:
=IF(COUNTA(Table1[@[Black]:[Metallic Silver]])-COUNTBLANK(Table1[@[Black]:[Metallic Silver]])>1,
[@[PACKAGE TYPE]],
ConCat(Table1[@[Black]:[Metallic Silver]]))

1. Beware that all the cells, except the header row, are the results of the formula below
=IF(Worksheet!U2="","",Table1[[#Headers],[Light Black]])
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,216,095
Messages
6,128,794
Members
449,468
Latest member
AGreen17

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