+ Reply to Thread
Results 1 to 9 of 9

How to paste a number with only 2 digital places

  1. #1
    Registered User
    Join Date
    12-17-2009
    Location
    Kirkcaldy, Scotland
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2201) 64-bit
    Posts
    75

    How to paste a number with only 2 digital places

    I have a spreadsheet where I want to run a formula but need to avoid any 'penny differences' caused by rounding up numbers.

    Eg. I have a number in cell A1 showing 20.41 (but when I click on the cell it is really 20.41487). How do I copy this number and paste it into cell A2 to show only 20.41?
    Last edited by grim72; 12-16-2011 at 06:05 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to paste a number with only 2 digital places

    Hi grim72

    In A2, type the formula:

    =ROUNDDOWN(A1;2)

    Hope to helps you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to paste a number with only 2 digital places

    Hello,

    you cannot do that with copy and paste. Instead, you can use a formula like

    =round(A1,2)

    Then, if you only need the values, you can copy the result and use Paste Special > Values. Be aware, though, that depending on what you're calculating based on what source cells, the results of calculations may differ by a few pips.

    cheers,

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to paste a number with only 2 digital places

    @Fotis,

    rounddown() may not be the best function. If A1 = 5.429, then rounddown will deliver 5.42, but round() will deliver 5.43.

    Rounding should be used with caution, and rounddown() or roundup() only in cases where you really, really understand why you want to round up or down, instead of rounding according to the defaults.

    cheers,

  5. #5
    Registered User
    Join Date
    12-17-2009
    Location
    Kirkcaldy, Scotland
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2201) 64-bit
    Posts
    75

    Re: How to paste a number with only 2 digital places

    Thanks tetlyn, seems to have done the job.

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to paste a number with only 2 digital places

    Thanks. Is it really that hard to spell my name?

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to paste a number with only 2 digital places

    Hi teylyn.

    Even for me is not so hard!!

    Thank you too!

  8. #8
    Registered User
    Join Date
    12-17-2009
    Location
    Kirkcaldy, Scotland
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2201) 64-bit
    Posts
    75

    Re: How to paste a number with only 2 digital places

    Whoops, apologies teylyn, I blame my fat fingers and my alcahol damaged brain cells. Thanks again though.

  9. #9
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to paste a number with only 2 digital places

    LOL! thanks, both of you!

    @grim: Alcohol should only be a factor if it's after 6pm, which seeing your location is unlikely, unless it's permanent, long-term damage from some stuff in the Spey valley or buried in old oak casks below sea level on some remote island.

    Oh, all the wee drams I was privileged to sample on my trips to Scotland half a lifetime ago.
    Last edited by teylyn; 12-16-2011 at 06:41 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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