Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
BPB
 
Posts: n/a
Default How do I join a range of cells?

Im trying to combine the values of a range of cells in separate rows, but
cant get it to work. I can combine 2 rows, but nothing more than that. For
example: I have a spreadsheet with 5 rows made up of one cell each, a1-a5. It
looks like this:

Value1
Value2
Value3
Value4
Value5

I want to put the values of all 5 rows in 1 cell, so it looks like this:

Value1Value2Value3Value4Value5

Ive tried using =CONCATENATE(A1:A5) but it only results in Value1. Since
my actual spreadsheet has over 42,000 rows it would not be possible from a
sanity standpoint (and Excel wont allow it anyway) to put
=CONCATENATE(A1,A2,A3,A4,A5) etc.

Any ideas?

--
BPB
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default How do I join a range of cells?

I am not sure what you want to do, join 42000 cells or join 5 cells, then
the next 5 cells and so on

like

=CONCATENATE(A1,A2,A3,A4,A5)

then

=CONCATENATE(A6,A7,A8,A9,A10)

For obvious reasons number one is not possible (look in help for
specifications)

the latter is possible albeit ugly

=CONCATENATE(OFFSET($A$1,ROWS($A$1:A1)*5-5,),OFFSET($A$2,ROWS($A$1:A1)*5-5,),OFFSET($A$3,ROWS($A$1:A1)*5-5,),OFFSET($A$4,ROWS($A$1:A1)*5-5,),OFFSET($A$5,ROWS($A$1:A1)*5-5,))

copied down.

--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"BPB" wrote in message
...
I'm trying to combine the values of a range of cells in separate rows, but
can't get it to work. I can combine 2 rows, but nothing more than that.
For
example: I have a spreadsheet with 5 rows made up of one cell each, a1-a5.
It
looks like this:

Value1
Value2
Value3
Value4
Value5

I want to put the values of all 5 rows in 1 cell, so it looks like this:

Value1Value2Value3Value4Value5

I've tried using =CONCATENATE(A1:A5) but it only results in "Value1".
Since
my actual spreadsheet has over 42,000 rows it would not be possible from a
sanity standpoint (and Excel won't allow it anyway) to put
=CONCATENATE(A1,A2,A3,A4,A5) etc.

Any ideas?

--
BPB



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
Macro to hide blank cells in a range Dave Excel Discussion (Misc queries) 1 February 1st 06 11:55 PM
Display first, second, etc Nonblank Cells in a Range Jeremy N. Excel Worksheet Functions 12 September 25th 05 01:47 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 0 April 7th 05 12:47 AM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM


All times are GMT +1. The time now is 10:31 PM.

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

About Us

"It's about Microsoft Excel"