gordonpsmith
New Member
- Joined
- Sep 4, 2019
- Messages
- 9
- Office Version
- 365
- Platform
- Windows
Quirky one, this...
I have a string of characters that can be a variety of values, such as:
I want counts of characters in order, such as:
x5X3x2X2x6X2G2.....
If I could wire FIND to tell me the first character that is not, say "x", I could set up a series of substrings that pulls that out.
LEFT(String,1) gives me the first character
FIND(<>LEFT(String,1)), if it worked, would tell me how many characters are in line
RIGHT(String,LEN(String)-FIND(<>LEFT(String,1))) gives me what's left and I rinse and repeat.
It's getting Excel to find me the location of when a character changes from the first value in a string that's stymieing me
Thanks!
I have a string of characters that can be a variety of values, such as:
xxxxxXXXxxXXxxxxxxXXGGXXXXXXXXWWWXXXXXXxxxxxxxxxxxxxxxxxxxxxXXWWWWXXXGGGGXxxXXxXXxxxxxxxxxxxxxxx |
I want counts of characters in order, such as:
x5X3x2X2x6X2G2.....
If I could wire FIND to tell me the first character that is not, say "x", I could set up a series of substrings that pulls that out.
LEFT(String,1) gives me the first character
FIND(<>LEFT(String,1)), if it worked, would tell me how many characters are in line
RIGHT(String,LEN(String)-FIND(<>LEFT(String,1))) gives me what's left and I rinse and repeat.
It's getting Excel to find me the location of when a character changes from the first value in a string that's stymieing me
Thanks!