+ Reply to Thread
Results 1 to 7 of 7

PasteSpecial Format to two decmo only

  1. #1
    Registered User
    Join Date
    07-08-2010
    Location
    atlanta
    MS-Off Ver
    Excel 2003
    Posts
    26

    PasteSpecial Format to two decmo only

    I'm trying to format the numbers that get copied/pasted to two decmo-places only

    For example I want to get $1,272.69 but instead, I get 1272.69345238095


    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 12-27-2015 at 01:02 AM.

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

    Re: PasteSpecial Format to two decmo only

    Maybe something like this instead:

    Please Login or Register  to view this content.
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    07-08-2010
    Location
    atlanta
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: PasteSpecial Format to two decmo only

    Thanks for the effort. For some reason the values won't get pasted over. In other words, I get a blank column.

  4. #4
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: PasteSpecial Format to two decmo only

    Maybe format the cell for 2 decimal places:
    Please Login or Register  to view this content.
    PS - Do this before pasting any value into it.
    Last edited by StuCram; 12-27-2015 at 01:04 PM.
    If this has been helpful, please click on the star at the left.

  5. #5
    Registered User
    Join Date
    07-08-2010
    Location
    atlanta
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: PasteSpecial Format to two decmo only

    Thank you both, I added each of your codes as additional line and it works.

    Despite the two decmo places and rounding , when I try to edit or use F2 I still see numbers as the following 1272.69345238095

    Not a big deal but irritating.

  6. #6
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: PasteSpecial Format to two decmo only

    You may also want to set to check off this Excel preference: Calculation ----> Set Precision As Displayed.

  7. #7
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: PasteSpecial Format to two decmo only

    try JB's suggestion..

    Please Login or Register  to view this content.
    *** adjust ranges as required..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

+ 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] PasteSpecial
    By Phixer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-06-2014, 03:47 PM
  2. pastespecial
    By Halid in forum Excel General
    Replies: 2
    Last Post: 04-15-2014, 02:06 AM
  3. [SOLVED] I would like to Copy Row 6 and PasteSpecial Format a unique row
    By akwishestofish in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2012, 10:13 AM
  4. PasteSpecial in VBA
    By RBI in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2008, 02:38 PM
  5. PasteSpecial Help
    By jgupte in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2008, 10:32 PM
  6. [SOLVED] PasteSpecial
    By John Austin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2005, 11:35 AM

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