![]() |
|
#1
|
|||
|
|||
![]()
Dear Forum
I am trying to concatenate some text values with semi colons in between, ignoring cells with no entry I used with initial great success the string concat function by Pearson, by placing code in to my sheet and using the =StringConcat function BUT, All worked well but then it seemed to stop working and my formula gave #NAME? errors everywhere I used it. Its almost like something just stopped working Any ideas why? is it some setting on my Excel? Should I go about the concentration differently? Appreciate any help at all Thank you |
#2
|
|||
|
|||
![]()
The Name? error usually means that your formula is looking for a named range rather than a reference. Double check your formula to ensure quotes are in the right place. I would use this formula =if(a3="","",a1&";"&a2&";"&a3) etc.
If this dosnt solve the issue, go ahead and post your workbook. |
#3
|
|||
|
|||
![]()
Thank you.
I have attached a stripped down version of the file with formula and code I got the code from the following site - which was really helpful. But I can't seem to get the formula to work anymore. It seemed to stop - perhaps I am using the wrong file type - or I inadvertently changed something important hhttp://www.cpearson.com/excel/stringconcatenation.aspx Again, appreciate any help thanks. |
#4
|
|||
|
|||
![]()
Thanks for posting this. All I did was take your code and place it in a module rather than in the worksheet code. This is exactly how Microsoft suggests to write functions. After I did that it worked no problem. The only thing I can think of as to why it worked before could be your worksheets weren't arranged the way they are now. Don't worry too much about as to why since putting it in it's own module works. Give that a shot and let us know.
|
#5
|
|||
|
|||
![]() Quote:
|
#6
|
|||
|
|||
![]()
Thank you very much for your help a few days ago now. it was much appreciated
|
#7
|
|||
|
|||
![]()
You are very welcome. hopefully you got it working ok.
|
![]() |
Tags |
concatenate, string |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Excel stopped working. | nodsirrah | Excel | 9 | 07-01-2017 04:58 AM |
Outlook stopped working | CarolVee | Outlook | 0 | 07-21-2013 10:47 AM |
![]() |
judyn | Word | 5 | 10-18-2012 03:09 PM |
![]() |
jgriffin | Word | 2 | 06-24-2009 04:05 PM |
Excell stopped working | TomC | Excel | 4 | 05-26-2006 11:40 PM |