+ Reply to Thread
Results 1 to 2 of 2

Pulling out decimal places

  1. #1
    Forum Contributor
    Join Date
    02-24-2010
    Location
    BC, Canada
    MS-Off Ver
    Excel 2010
    Posts
    174

    Pulling out decimal places

    Hi,

    I would like to be able to pull out different parts of a number. So for example I have the number 0.4675 (they will always be decimal places) and I want to have different cells that show:
    0.4
    0.06
    0.007
    0.0005
    or even just:
    4
    6
    7
    5

    What formula allows me to taget a specific digit to the right of the decimal point? (It's possible that the decimal may be infinity). I know I could use something like "=right(left(a1,3),1)" but I thought there may be a better formula for this.

    Thanks

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Pulling out decimal places

    Here's one; with your number in A1, Starting in B2 with B1 blank
    =INT($A$1*10^ROW(A1))/10^ROW(A1)-SUM($B$1:B1) dragged down

    Another option, if you just want the digits
    =MID($A$1,ROW(A3),1)+0 dragged down
    Last edited by ChemistB; 07-27-2011 at 03:48 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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