+ Reply to Thread
Results 1 to 2 of 2

ROUND - formatting

  1. #1
    Registered User
    Join Date
    05-06-2005
    Posts
    25

    ROUND - formatting

    A1 10.404

    B1 2

    A2 £10.40 =ROUND(A1,2)

    B2 £10.404

    C2 £10.40 =IF(B1=2,A2,if(b1=3,B2,""))



    In the above scenario I cannot get the right result in c2. With 2 decimal places I get 10.400 (because of the 3 decimal place formatting of c2). If I format c2 to 2 places I cannot display the result of 3 places when I need it.

    If I use TRUNC, the 0 always drops off 10.40.

    Any ideas please.

    I posted this before and thought I had the answer but it is not working and the problem is still between the chair and the keyboard.
    Last edited by VBA Noob; 03-04-2008 at 12:52 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Format C2 as General.

    And perhaps you could change the formula in C2 to =ROUND(A1, B2)
    Last edited by shg; 03-04-2008 at 01:06 PM.

+ 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