Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have a list of SKU numbers and descriptions like the following:
567 - MICROWAVE 6 1/2 C
How would I extract everything after the hyphen?
Thanks!
Isabel
Hi
subfield(SKU, '-',2)
eduardo
Use subfield funcion
Subfield(ltrim(Right(Replace(SKU),'-',' '),3))
Hello,
Thanks!
What if I were to have something like
4576 - Flower Pot - Misc
and want everything after the first hyphen?
Isabel
This should work
=right(SKU,index(SKU,' - ',-1))
Eduardo
Hmm..that doesn't work in every case. It usually only gives me everything after the last hyphen.
everything after first hyphen
=right(SKU, len(SKU - index(SKU, '-', 1))
everything after last hyphen
=right(SKU, len(SKU - index(SKU, '-', -1))
Or a little shorter using mid() function:
=mid(SKU, index(SKU, '-', 1)+1)