sydinstaller
New Member
- Joined
- Aug 26, 2010
- Messages
- 23
Hi,
I have a tricky one regarding count/len of text in a cell.
This excel sheet is used to upload data to our stock management system.
There is a limit of 30 characters per line but we can put more if each line is separated with a | .
E.G. of a cell content:
This is NOT OK
"This product description has more than 30 characters"
This is OK
"This product description|has more than 30 characters"
What I would like to do is have a formula (not a VB script) that could count if there are more than 30 characters before the "|" and even between two or more "|"
E.G. of an OK text line
"This product description|has more than 30 characters|and every 30 or less|characters is separated|with a pipe"
E.G. of NOT OK
"This product description|has more than 30 characters|and every 30 or less characters is separated|with a pipe"
The "and every 30 or less characters is separated" is more than 30 characters long so I should get a error of some kind.
Is this possible to do?
Note: I can't use VB as this sheet goes to 60+ people all with different security setting and versions etc so a formula is preferable.
Regards
Daniel
I have a tricky one regarding count/len of text in a cell.
This excel sheet is used to upload data to our stock management system.
There is a limit of 30 characters per line but we can put more if each line is separated with a | .
E.G. of a cell content:
This is NOT OK
"This product description has more than 30 characters"
This is OK
"This product description|has more than 30 characters"
What I would like to do is have a formula (not a VB script) that could count if there are more than 30 characters before the "|" and even between two or more "|"
E.G. of an OK text line
"This product description|has more than 30 characters|and every 30 or less|characters is separated|with a pipe"
E.G. of NOT OK
"This product description|has more than 30 characters|and every 30 or less characters is separated|with a pipe"
The "and every 30 or less characters is separated" is more than 30 characters long so I should get a error of some kind.
Is this possible to do?
Note: I can't use VB as this sheet goes to 60+ people all with different security setting and versions etc so a formula is preferable.
Regards
Daniel