Hi,
I have a problem, where my Jet values return I my cell C5 like this: |||||||||||||||A|||||||||||||F|C|T||||||||||||||G|L|||||O|P|H|||||||||||||||||||||||||||
But I would like it to filter the empty values from the list at only show this:
A|F|C|T|G|L|O|P|H
Any suggestions?
4 comments
-
Jet Reports Historic Posts I use the filter "<>''" to get rid of empty values.
-
Jet Reports Historic Posts Well.. I can not filter it with <>
I have tried.
It seems that even though there is no value between |||||| it will show up. So I am looking for some way to separate the ||||| from the rest and get A|F|C|T|G|L|O|P|H -
Jet Reports Historic Posts It makes me feel a little bit dirty but this seems to work for the example you give, assuming the text is in A1:
=SUBSTITUTE(TRIM(SUBSTITUTE(A1,"|"," "))," ","|")
It substitutes the "|" with spaces. The trim function removes spaces from the start and end of text, as well multiples between "words". By then substituting the "|" back in for the space you get the answer you want. -
Jet Reports Historic Posts It makes me feel a little bit dirty but this seems to work for the example you give, assuming the text is in A1:
=SUBSTITUTE(TRIM(SUBSTITUTE(A1,"|"," "))," ","|")
It substitutes the "|" with spaces. The trim function removes spaces from the start and end of text, as well multiples between "words". By then substituting the "|" back in for the space you get the answer you want.
I don't know if you got too dirty… :-)
But it sure did the trick.. Thank you so much!! :-)