+ Reply to Thread
Results 1 to 3 of 3

Formula to remove part of text from cell

  1. #1
    Registered User
    Join Date
    12-08-2020
    Location
    California
    MS-Off Ver
    2007
    Posts
    1

    Formula to remove part of text from cell

    Hi,

    The cell content is CPPK-$1*25

    We want to be able to change it to: CPPK-$1

    So remove *25 from any cells that have it on a column.

    Looking for function or formula for that.

    Thanks,

    David

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    12,442

    Re: Formula to remove part of text from cell

    Hi & welcome to the board.
    How about
    =REPLACE(I2,FIND("*",I2&"*"),LEN(I2),"")

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    22,784

    Re: Formula to remove part of text from cell

    If that string is in A1, you could use this:

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

    or another way:

    =IF(ISNUMBER(FIND("*25",A1)),LEFT(A1,LEN(A1)-3),A1)

    Hope this helps.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to remove part of Cell Text if partial text of that Cell is unique
    By robmbaker in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2019, 09:40 AM
  2. [SOLVED] Formula to remove 0's from part of a text string
    By The_Snook in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-15-2017, 09:27 AM
  3. [SOLVED] Can I remove the first part of a string of text and keep the second part?
    By Whoop92 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 02-12-2014, 07:44 PM
  4. Remove part of text in cell
    By JohnnyWalker in forum Excel General
    Replies: 3
    Last Post: 11-17-2012, 07:46 PM
  5. Excel 2007 : Remove part of text in cell.
    By GaidenFocus in forum Excel General
    Replies: 3
    Last Post: 09-17-2012, 12:16 PM
  6. Replies: 13
    Last Post: 11-05-2011, 03:00 PM
  7. Replies: 2
    Last Post: 01-11-2011, 07:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1