+ Reply to Thread
Results 1 to 8 of 8

Formula to remove an "R" and convert cell to number

  1. #1
    Registered User
    Join Date
    06-03-2011
    Location
    Florida, USA
    MS-Off Ver
    Excel 2013
    Posts
    46

    Formula to remove an "R" and convert cell to number

    I have a column that has R 154.10. I want to remove the "R" and convery the 154.10 to a number. Thanks.
    Last edited by maymano; 06-05-2011 at 01:59 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Formula to remove an "R" and convert cell to number

    Use a helper column, i.e. have an empty column next to the cells. Assuming Column A, in B1 & copy down

    =TRIM(RIGHT(A1,LEN(A1)-2))
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Formula to remove an "R" and convert cell to number

    a quick "heads up" Roy.
    The OP wanted a number as the result so maybe

    =--TRIM(RIGHT(A1,LEN(A1)-2))
    to force the conversion from text to numeric
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Formula to remove an "R" and convert cell to number

    To extract last number in a word:

    =LOOKUP(99^99, --RIGHT(A1, ROW($A$1:$A$10)))

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Formula to remove an "R" and convert cell to number

    Assuming the cell always has "R" then a space then a number....

    =MID(A1,3,9)+0
    Audere est facere

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula to remove an "R" and convert cell to number

    and another one
    =SUBSTITUTE(A1,"R","")+0
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Formula to remove an "R" and convert cell to number

    Why dont use 'Find & Replace'
    Select the Range
    Find- R
    Replace (Blank)

  8. #8
    Registered User
    Join Date
    06-03-2011
    Location
    Florida, USA
    MS-Off Ver
    Excel 2013
    Posts
    46

    Re: Formula to remove an "R" and convert cell to number

    Thanks all for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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