ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   HELP WITH FORMULA (https://www.excelbanter.com/excel-discussion-misc-queries/183191-help-formula.html)

Leon

HELP WITH FORMULA
 
Is there a formula which I can use to strip out a particular character from a
text string? I have been sent a database with addresses in one of the
columns. The data has presumably been copied from a capture program and where
some fields were empty then an asterisk is reflected eg. 4 LINGFIELD
CLOSE,*,*,*,MILNERTON RIDGE,7441. I want the result 4 LINGFIELD
CLOSE,MILNERTON RIDGE,7441

Mike H

HELP WITH FORMULA
 
With your address in a1 try this

=SUBSTITUTE(A1,"*,","")

Mike

"Leon" wrote:

Is there a formula which I can use to strip out a particular character from a
text string? I have been sent a database with addresses in one of the
columns. The data has presumably been copied from a capture program and where
some fields were empty then an asterisk is reflected eg. 4 LINGFIELD
CLOSE,*,*,*,MILNERTON RIDGE,7441. I want the result 4 LINGFIELD
CLOSE,MILNERTON RIDGE,7441


thechilipino

HELP WITH FORMULA
 
Hello Leon -

If the text pattern you want to replace is consistent, i.e. always ",*",
you can use find and replace (ctrl-h), replacing ",*" with a blank space.

I hope that helps.

Cheers.

"Leon" wrote:

Is there a formula which I can use to strip out a particular character from a
text string? I have been sent a database with addresses in one of the
columns. The data has presumably been copied from a capture program and where
some fields were empty then an asterisk is reflected eg. 4 LINGFIELD
CLOSE,*,*,*,MILNERTON RIDGE,7441. I want the result 4 LINGFIELD
CLOSE,MILNERTON RIDGE,7441


Leon

HELP WITH FORMULA
 
Perfect, thanks Mike

"Mike H" wrote:

With your address in a1 try this

=SUBSTITUTE(A1,"*,","")

Mike

"Leon" wrote:

Is there a formula which I can use to strip out a particular character from a
text string? I have been sent a database with addresses in one of the
columns. The data has presumably been copied from a capture program and where
some fields were empty then an asterisk is reflected eg. 4 LINGFIELD
CLOSE,*,*,*,MILNERTON RIDGE,7441. I want the result 4 LINGFIELD
CLOSE,MILNERTON RIDGE,7441


Leon

HELP WITH FORMULA
 
Thanks,

"thechilipino" wrote:

Hello Leon -

If the text pattern you want to replace is consistent, i.e. always ",*",
you can use find and replace (ctrl-h), replacing ",*" with a blank space.

I hope that helps.

Cheers.

"Leon" wrote:

Is there a formula which I can use to strip out a particular character from a
text string? I have been sent a database with addresses in one of the
columns. The data has presumably been copied from a capture program and where
some fields were empty then an asterisk is reflected eg. 4 LINGFIELD
CLOSE,*,*,*,MILNERTON RIDGE,7441. I want the result 4 LINGFIELD
CLOSE,MILNERTON RIDGE,7441



All times are GMT +1. The time now is 07:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com