Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-2008, 03:14 PM
=?Utf-8?B?U2l2YQ==?=
 
Posts: n/a
CONCATENATE - maximum argument

Hi

What is the maximum cells for an concatenate argument ?

I am trying to combine 300+ cells to one cell.
I have a if statement in the 300+ cells to show the data when the conditions
is met. So most of the 300+ cells are blank.

I am trying to put all the info from the 300+ cells that are populated into
1 cell.

Hope someone could help

Thanks

--
Siva
Reply With Quote
  #2 (permalink)  
Old 08-28-2008, 03:21 PM
Gord Dibben
 
Posts: n/a
Re: CONCATENATE - maximum argument

Maximum is 30.

This UDF will overcome that and ignore blank cells.

Function ConCatRange(CellBlock As Range) As String
Dim Cell As Range
Dim sbuf As String
For Each Cell In CellBlock
If Len(Cell.text) > 0 Then sbuf = sbuf & Cell.text & " "
Next
ConCatRange = Left(sbuf, Len(sbuf) - 1)
End Function


Gord Dibben MS Excel MVP

On Thu, 28 Aug 2008 07:14:01 -0700, Siva <Siva@discussions.microsoft.com>
wrote:

>Hi
>
>What is the maximum cells for an concatenate argument ?
>
>I am trying to combine 300+ cells to one cell.
>I have a if statement in the 300+ cells to show the data when the conditions
>is met. So most of the 300+ cells are blank.
>
>I am trying to put all the info from the 300+ cells that are populated into
>1 cell.
>
>Hope someone could help
>
>Thanks


Reply With Quote
  #3 (permalink)  
Old 08-28-2008, 03:38 PM
=?Utf-8?B?U2l2YQ==?=
 
Posts: n/a
Re: CONCATENATE - maximum argument

Hi Gord

Thanks for your quick responce

Even if I use UDF, I can only use up to 30.

IS there a way where I can do a search or lookup of 300+ cells and transfer
only the populate cells to another section of the worksheet. So if there are
10 populated cells(out of 300), it will transfer the data to 10 separate
cells to the other section of the worksheet.

Then I can use concatenate on the 10 cells into 1 cells.

Please advice.

Thanks
--
Siva


"Gord Dibben" wrote:

> Maximum is 30.
>
> This UDF will overcome that and ignore blank cells.
>
> Function ConCatRange(CellBlock As Range) As String
> Dim Cell As Range
> Dim sbuf As String
> For Each Cell In CellBlock
> If Len(Cell.text) > 0 Then sbuf = sbuf & Cell.text & " "
> Next
> ConCatRange = Left(sbuf, Len(sbuf) - 1)
> End Function
>
>
> Gord Dibben MS Excel MVP
>
> On Thu, 28 Aug 2008 07:14:01 -0700, Siva <Siva@discussions.microsoft.com>
> wrote:
>
> >Hi
> >
> >What is the maximum cells for an concatenate argument ?
> >
> >I am trying to combine 300+ cells to one cell.
> >I have a if statement in the 300+ cells to show the data when the conditions
> >is met. So most of the 300+ cells are blank.
> >
> >I am trying to put all the info from the 300+ cells that are populated into
> >1 cell.
> >
> >Hope someone could help
> >
> >Thanks

>
>

Reply With Quote
  #4 (permalink)  
Old 08-28-2008, 04:11 PM
Dave Peterson
 
Posts: n/a
Re: CONCATENATE - maximum argument

If your range is contiguous, you could use Gord's UDF like:

=ConCatRange(a1:x9999)



Siva wrote:
>
> Hi Gord
>
> Thanks for your quick responce
>
> Even if I use UDF, I can only use up to 30.
>
> IS there a way where I can do a search or lookup of 300+ cells and transfer
> only the populate cells to another section of the worksheet. So if there are
> 10 populated cells(out of 300), it will transfer the data to 10 separate
> cells to the other section of the worksheet.
>
> Then I can use concatenate on the 10 cells into 1 cells.
>
> Please advice.
>
> Thanks
> --
> Siva
>
> "Gord Dibben" wrote:
>
> > Maximum is 30.
> >
> > This UDF will overcome that and ignore blank cells.
> >
> > Function ConCatRange(CellBlock As Range) As String
> > Dim Cell As Range
> > Dim sbuf As String
> > For Each Cell In CellBlock
> > If Len(Cell.text) > 0 Then sbuf = sbuf & Cell.text & " "
> > Next
> > ConCatRange = Left(sbuf, Len(sbuf) - 1)
> > End Function
> >
> >
> > Gord Dibben MS Excel MVP
> >
> > On Thu, 28 Aug 2008 07:14:01 -0700, Siva <Siva@discussions.microsoft.com>
> > wrote:
> >
> > >Hi
> > >
> > >What is the maximum cells for an concatenate argument ?
> > >
> > >I am trying to combine 300+ cells to one cell.
> > >I have a if statement in the 300+ cells to show the data when the conditions
> > >is met. So most of the 300+ cells are blank.
> > >
> > >I am trying to put all the info from the 300+ cells that are populated into
> > >1 cell.
> > >
> > >Hope someone could help
> > >
> > >Thanks

> >
> >


--

Dave Peterson
Reply With Quote
  #5 (permalink)  
Old 08-28-2008, 04:12 PM
Gord Dibben
 
Posts: n/a
Re: CONCATENATE - maximum argument

Not true.

=concatrange(a1:a300) is what you need.


Gord

On Thu, 28 Aug 2008 07:38:01 -0700, Siva <Siva@discussions.microsoft.com>
wrote:

>Even if I use UDF, I can only use up to 30.


Reply With Quote
  #6 (permalink)  
Old 09-02-2008, 08:25 AM
Shane Devenshire
 
Posts: n/a
Re: CONCATENATE - maximum argument

Hi,

A little late but:

1. In 2007 CONCATENATE supports 255 arguments.
2. Instead of using the function you can use the operator &. I believe this
is limited by the maximum length of the formula which varies with version.

=A1&A2&A3...

Cheers,
Shane Devenshire

"Siva" <Siva@discussions.microsoft.com> wrote in message
news:F90144D8-734B-40F9-A056-DDA1B46E5BFE@microsoft.com...
> Hi
>
> What is the maximum cells for an concatenate argument ?
>
> I am trying to combine 300+ cells to one cell.
> I have a if statement in the 300+ cells to show the data when the
> conditions
> is met. So most of the 300+ cells are blank.
>
> I am trying to put all the info from the 300+ cells that are populated
> into
> 1 cell.
>
> Hope someone could help
>
> Thanks
>
> --
> Siva


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT. The time now is 04:20 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Car Loan | Myspace Proxy Directory | Deaf Topics | Personal Loans | Halifax



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114