Removing Numbers from a cell

nsaracco1

New Member
Joined
Mar 27, 2019
Messages
1
Hello, In cell E2 I have SESAME NJ 219211550. I am trying to leave the SESAME NJ in cell F2. Any suggestions?
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
SESAME NJ 219211550

<tbody>
</tbody>
</body>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
if this is representative example you can try PowerQuery(Get&Transform)

Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Extracted Text Before Delimiter" = Table.TransformColumns(Source, {{"raw", each Text.BeforeDelimiter(_, " ", {0, RelativePosition.FromEnd}), type text}})
in
    #"Extracted Text Before Delimiter"[/SIZE]

rawraw
SESAME NJ 219211550SESAME NJ
 
Upvote 0
Hello,

You can use an Array Formula

Code:
[FONT=inherit]=[/FONT][URL="https://exceljet.net/excel-functions/excel-textjoin-function"][FONT=inherit]TEXTJOIN[/FONT][/URL][FONT=inherit]([/FONT][FONT=inherit]""[/FONT][FONT=inherit],[/FONT][FONT=inherit]TRUE[/FONT][FONT=inherit],[/FONT][URL="https://exceljet.net/excel-functions/excel-if-function"][FONT=inherit]IF[/FONT][/URL][FONT=inherit]([/FONT][URL="https://exceljet.net/excel-functions/excel-iserr-function"][FONT=inherit]ISERR[/FONT][/URL][FONT=inherit]([/FONT][COLOR=#0062A0][FONT=inherit][URL="https://exceljet.net/excel-functions/excel-mid-function"]MID[/URL](E2[/FONT][/COLOR][FONT=inherit],[/FONT][URL="https://exceljet.net/excel-functions/excel-row-function"][FONT=inherit]ROW[/FONT][/URL][FONT=inherit]([/FONT][URL="https://exceljet.net/excel-functions/excel-indirect-function"][FONT=inherit]INDIRECT[/FONT][/URL][FONT=inherit]([/FONT][FONT=inherit]"1:100"[/FONT][FONT=inherit])),[/FONT][FONT=inherit]1[/FONT][FONT=inherit])[/FONT][FONT=inherit]+[/FONT][FONT=inherit]0[/FONT][FONT=inherit]),[/FONT][COLOR=#0062A0][FONT=inherit][URL="https://exceljet.net/excel-functions/excel-mid-function"]MID[/URL](E2[/FONT][/COLOR][FONT=inherit],[/FONT][URL="https://exceljet.net/excel-functions/excel-row-function"][FONT=inherit]ROW[/FONT][/URL][FONT=inherit]([/FONT][URL="https://exceljet.net/excel-functions/excel-indirect-function"][FONT=inherit]INDIRECT[/FONT][/URL][FONT=inherit]([/FONT][FONT=inherit]"1:100"[/FONT][FONT=inherit])),[/FONT][FONT=inherit]1[/FONT][FONT=inherit]),[/FONT][FONT=inherit]""[/FONT][FONT=inherit]))[/FONT]

Hope this will help
 
Upvote 0
Or this

Book1
EF
2SESAME NJ 219211550SESAME NJ
Sheet1
Cell Formulas
RangeFormula
F2=TRIM(LEFT(SUBSTITUTE(E2," ",REPT(" ",50)),100))
 
Upvote 0
Or this

Book1
EF
2SESAME NJ 219211550SESAME NJ
Sheet1
Cell Formulas
RangeFormula
F2=TRIM(LEFT(SUBSTITUTE(E2," ",REPT(" ",50)),100))
Your formula will work one and two name cities only... unfortunately, New Jersey has a few three-name cities in it (South Bound Brook, West New York, etc.).
 
Upvote 0
Hi,

A couple of Non-array formula options, normally entered:


Book1
EFG
2SESAME NJ 219211550SESAME NJSESAME NJ
3South Bound Brook NJ 219211551South Bound Brook NJSouth Bound Brook NJ
4West New York NJ 219211552West New York NJWest New York NJ
Sheet647
Cell Formulas
RangeFormula
F2=TRIM(SUBSTITUTE(E2,TRIM(RIGHT(SUBSTITUTE(E2," ",REPT(" ",99)),99)),""))
G2=LEFT(E2,MIN(FIND({0,1,2,3,4}+{0;5},E2&1/17))-2)
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top