Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Rick:
Thanks for the tip about being able to use more than one character as a separator. -- Gary''s Student - gsnu200770 "Rick Rothstein (MVP - VB)" wrote: Sub dural() s = "a, b, c, d, e" s2 = Split(Replace(s, " ", ""), ",") End Sub You do not have to use the replace function to pare down the delimiter to a single character like that... the delimiter can contain multiple characters... s2 = Split(s, ", ") where the characters between the quote marks are a comma followed by a space. Now, with that said, doing what you posted will protect against a improperly formed string of text where the number of spaces following the comma are not consistent throughout the text. Rick |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sort data separated by commas | Excel Worksheet Functions | |||
How do I de-concatenate items separated by commas! | Excel Discussion (Misc queries) | |||
Help! I need a formula to add numbers separated by commas within | Excel Worksheet Functions | |||
Save .csv file. Decimals separated by commas | Excel Programming | |||
parsing words in a cell separated by commas | Excel Programming |