+ Reply to Thread
Results 1 to 3 of 3

How to remove characters in a cell

  1. #1
    Registered User
    Join Date
    03-27-2020
    Location
    Abudhabi,UAE
    MS-Off Ver
    MS office
    Posts
    1

    How to remove characters in a cell

    I am extracting data entitled " Days of Admission " into a column
    The data is being extracted as a combination of numbers and characters such as " 12 days"
    I tried to remove the letters (days) , but it requires me to create a new column and use the formula =LEFT(cell,LEN(cell)-n)
    This means i have to create an extra column

    My question is How can i create a formula to automatically remove "days" in the same column that the data was extracted into, without need to create a second column

    thanks

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: How to remove characters in a cell

    If cell A1 has your value, e.g. "12 days", then in B1 you could use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to remove characters in a cell

    You can't use a formula. Formulas, by definition, are doing calculations on other cells in a new cell for a new result. So formulas mean more columns.

    Why is this a problem?

    1) Data in first column.
    2) Formula that gives you the result you want in a second column.

    Now you can:
    1) Hide the first column so you still only see one column.
    2) Copy the second column and PASTE > VALUES back over the first column to change the first column, then delete the second column.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. How to remove first 12 characters of each cell
    By King Mustard in forum Excel General
    Replies: 9
    Last Post: 04-07-2017, 03:05 AM
  2. [SOLVED] Remove first 5 characters from a cell
    By PeterR in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-05-2014, 06:31 AM
  3. [SOLVED] Remove certain characters from a cell
    By M8R-l3mfmi in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-03-2013, 05:15 PM
  4. remove everything but the last three characters at the end of the cell?
    By Rabbitstew in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-21-2012, 09:24 AM
  5. [SOLVED] Remove Characters from a cell
    By Kim in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-01-2006, 12:21 PM
  6. [SOLVED] How to remove characters from a cell
    By Jonathan Dunne in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2005, 07:05 AM
  7. remove last three characters of cell
    By mira in forum Excel General
    Replies: 8
    Last Post: 07-27-2005, 08:05 PM

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