PC Review


Reply
Thread Tools Rate Thread

Concatenate non-concurrent cells

 
 
shanewithers@gmail.com
Guest
Posts: n/a
 
      15th Aug 2007
I would like to know how I can take different cells (non concurrent)
and string them together in another cell with separators. The
CONCATENATE function can't do this. The end result that I am looking
for is to select a number of cells using a userform and listbox with
checkboxes, and have all of those values combine and be pasted into a
cell of my choosing. I have the userform, the listbox, and the
checkboxes (courtesy of John Walkenbach's book), I need to figure out
how to combine my selections into a single cell.

Thanks for your reponses in advance.


Shane

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      15th Aug 2007
Concatenate should do what you are asking. Can you give an example of the
data you are trying to concatenate and the results? Also show what incorrect
results you are getting.

"(E-Mail Removed)" wrote:

> I would like to know how I can take different cells (non concurrent)
> and string them together in another cell with separators. The
> CONCATENATE function can't do this. The end result that I am looking
> for is to select a number of cells using a userform and listbox with
> checkboxes, and have all of those values combine and be pasted into a
> cell of my choosing. I have the userform, the listbox, and the
> checkboxes (courtesy of John Walkenbach's book), I need to figure out
> how to combine my selections into a single cell.
>
> Thanks for your reponses in advance.
>
>
> Shane
>
>

 
Reply With Quote
 
Shane
Guest
Posts: n/a
 
      15th Aug 2007
I should have been more specific. I would like to have them divided by
commas. I have found a few functions where I can put commas in, but if
I choose cells that are non-concurrent I get a #VALUE error.

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      15th Aug 2007
=A1&","&B1&","&C1

etc.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Shane" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I should have been more specific. I would like to have them divided by
> commas. I have found a few functions where I can put commas in, but if
> I choose cells that are non-concurrent I get a #VALUE error.
>



 
Reply With Quote
 
Shane
Guest
Posts: n/a
 
      15th Aug 2007
I would like to add to vba code so I can string together cell
selections chosen using checkboxes from a listbox in a userform

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      15th Aug 2007
See one answer with a macro in excel.newusers

No listboxes, just select the cells from the worksheet.


Gord Dibben MS Excel MVP

On Wed, 15 Aug 2007 21:56:04 -0000, Shane <(E-Mail Removed)> wrote:

>I would like to add to vba code so I can string together cell
>selections chosen using checkboxes from a listbox in a userform


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      16th Aug 2007
So it is just

myVar = If Checkbox1.Value Then Range"A1").Value & ","
myVar = myVar & If Checkbox2.Value Then Range"B1").Value & ","
myVar = myVar & If Checkbox3.Value Then Range"C1").Value & ","
'etc.
myVar = Left$(myVar,Len$(myVar)-1)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Shane" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I would like to add to vba code so I can string together cell
> selections chosen using checkboxes from a listbox in a userform
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Concatenate cells from M9 to Last row in M BEEJAY Microsoft Excel Programming 2 25th Feb 2010 07:43 PM
Concatenate cells chinny03 Microsoft Excel Programming 1 10th Feb 2009 09:08 PM
Concatenate cells =?Utf-8?B?U25ha2VvaWRz?= Microsoft Excel Misc 6 28th Jul 2006 01:46 PM
Re: Concatenate cells susan hayes Microsoft Excel Worksheet Functions 2 20th Oct 2004 09:53 PM
concatenate 500 cells velvet Microsoft Excel Worksheet Functions 1 4th Sep 2003 09:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:24 AM.