Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
i have alphanumeric values in a column like this ,
5. very satisfied
4. satisfied
5. very satisfied
4. satisfied
3. neutral
2. dissatisfied
1. very dissatisfied
3. neutral
2. dissatisfied
how to separate numeric and char part in two different columns using 'left' and 'index' function ?
Thanks.
a small improvement. If you add the space in the delimiter, you can omit trim :
subfield('5. very satisfied','. ',1)
subfield('5. very satisfied','. ',2)
=subfield(5. very satisfied,'.',1) !
=subfield('5. very satisfied','.',1)
Or use the subfield() function.
=trim(subfield('5. very satisfied',.,1))
=trim(subfield('5. very satisfied',.,2))
a small improvement. If you add the space in the delimiter, you can omit trim :
subfield('5. very satisfied','. ',1)
subfield('5. very satisfied','. ',2)
ya,subfield() is the right function here!
hi
try like this
for numeric part
=left(fieldname,1)
for string
=SubField(fieldname,' ',2)
Thanks All
Hey Ajinkya,
Just another way using Left() and Right() functions.
Number: = Left(StatusName, 3)
Text: = Right(Status, Len(Status) - Len(Left(Status,3)))
Thanks,
V.
The use of index is then also possible :
Number: = Left(StatusName, INDEX(StatusName, '.') - 1)
But subfield is a better solution!