ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Delete Formula (https://www.excelbanter.com/excel-worksheet-functions/54188-delete-formula.html)

azazel

Delete Formula
 

Cell A1 = Betty Smith
Cell B1 = Smith

I need a formula that will delete Smith from cell A1, using cell B1 as
the reference...

Column A ____ ; B ; Formula
1 Betty Smith ; Smith ; =Betty
2 Jim Jones ; Jones ; =Jim
3 Sam Stone ; Stone ; =Sam


--
azazel
------------------------------------------------------------------------
azazel's Profile: http://www.excelforum.com/member.php...o&userid=28250
View this thread: http://www.excelforum.com/showthread...hreadid=482914


Don Guillett

Delete Formula
 
try using replace "smith" with ""

--
Don Guillett
SalesAid Software

"azazel" wrote in
message ...

Cell A1 = Betty Smith
Cell B1 = Smith

I need a formula that will delete Smith from cell A1, using cell B1 as
the reference...

Column A ____ ; B ; Formula
1 Betty Smith ; Smith ; =Betty
2 Jim Jones ; Jones ; =Jim
3 Sam Stone ; Stone ; =Sam


--
azazel
------------------------------------------------------------------------
azazel's Profile:

http://www.excelforum.com/member.php...o&userid=28250
View this thread: http://www.excelforum.com/showthread...hreadid=482914




Per Erik Midtrød

Delete Formula
 
I think you could use this formula:
=REPLACE(A1;FIND(B1;A1);LEN(B1);"")

It works like this:
replace the value in A1 with "" starting at the position where it
finds B1. It might be easier to understand if you just try it.

Per Erik



On Mon, 7 Nov 2005 13:57:28 -0600, azazel
wrote:


Cell A1 = Betty Smith
Cell B1 = Smith

I need a formula that will delete Smith from cell A1, using cell B1 as
the reference...

Column A ____ ; B ; Formula
1 Betty Smith ; Smith ; =Betty
2 Jim Jones ; Jones ; =Jim
3 Sam Stone ; Stone ; =Sam



All times are GMT +1. The time now is 02:35 AM.

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