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>
 

Some videos you may like

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
6,698
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
 

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,680
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
 

AlKey

Active Member
Joined
Oct 15, 2013
Messages
395
Or this
<b></b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>E</th><th>F</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style=";">SESAME NJ 219211550</td><td style="color: #FF0000;;">SESAME NJ</td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">F2</th><td style="text-align:left">=TRIM(<font color="Blue">LEFT(<font color="Red">SUBSTITUTE(<font color="Green">E2," ",REPT(<font color="Purple">" ",50</font>)</font>),100</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
36,307
Office Version
  1. 2010
Platform
  1. Windows
Or this
<b></b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>E</th><th>F</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style=";">SESAME NJ 219211550</td><td style="color: #FF0000;;">SESAME NJ</td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">F2</th><td style="text-align:left">=TRIM(<font color="Blue">LEFT(<font color="Red">SUBSTITUTE(<font color="Green">E2," ",REPT(<font color="Purple">" ",50</font>)</font>),100</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
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.).
 

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
5,146
Hi,

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

<b></b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>E</th><th>F</th><th>G</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style=";">SESAME NJ 219211550</td><td style=";">SESAME NJ</td><td style=";">SESAME NJ</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">3</td><td style=";">South Bound Brook NJ 219211551</td><td style=";">South Bound Brook NJ</td><td style=";">South Bound Brook NJ</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">4</td><td style=";">West New York NJ 219211552</td><td style=";">West New York NJ</td><td style=";">West New York NJ</td></tr></tbody></table><p style="width:6.4em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet647</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">F2</th><td style="text-align:left">=TRIM(<font color="Blue">SUBSTITUTE(<font color="Red">E2,TRIM(<font color="Green">RIGHT(<font color="Purple">SUBSTITUTE(<font color="Teal">E2," ",REPT(<font color="#FF00FF">" ",99</font>)</font>),99</font>)</font>),""</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G2</th><td style="text-align:left">=LEFT(<font color="Blue">E2,MIN(<font color="Red">FIND(<font color="Green">{0,1,2,3,4}+{0;5},E2&1/17</font>)</font>)-2</font>)</td></tr></tbody></table></td></tr></table><br />
 

Watch MrExcel Video

Forum statistics

Threads
1,108,709
Messages
5,524,433
Members
409,577
Latest member
Dwg

This Week's Hot Topics

Top