+ Reply to Thread
Results 1 to 4 of 4

Formula to return first two digits but skips decimal point

  1. #1
    Registered User
    Join Date
    09-29-2015
    Location
    Rochester NY
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Formula to return first two digits but skips decimal point

    I need to be able to find the first two digits of a large set of numbers. The problem is when I use the LEFT formula it gives me the first number and then the decimal point instead of the second numeral.

    The current formula I am using is =LEFT(B2,2). B2 = 3.5. I need the formula to result in 35.

    How can I accomplish this?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to return first two digits but skips decimal point

    Show us several examples of the numbers you're dealing with along with your expected results.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Formula to return first two digits but skips decimal point

    Hi, welcome to the forum

    Try this...
    E
    F
    3
    3.45678
    34
    4
    0.345678
    03
    5
    34.5678
    34
    6
    345.678
    34
    F3=LEFT(SUBSTITUTE(E3,".",""),2)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    09-29-2015
    Location
    Rochester NY
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Re: Formula to return first two digits but skips decimal point

    That works perfectly.

    Thank you very much.

+ 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] Last 2 digits to treat as the decimal point
    By lemuel in forum Excel General
    Replies: 4
    Last Post: 03-26-2012, 10:59 AM
  2. [SOLVED] Displaying only digits after the decimal point
    By Tat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-01-2005, 02: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