+ Reply to Thread
Results 1 to 5 of 5

Rounding Numbers

  1. #1
    Registered User
    Join Date
    11-12-2015
    Location
    Chelsea, Mass
    MS-Off Ver
    Excel 2013
    Posts
    36

    Rounding Numbers

    Hello VBA Forum,

    Does anyone know how to display this number rounded to 1 decimal place?


    Please Login or Register  to view this content.

    I know how to display a "rounded" single variable, but not the above where there are 2 variables added then divided by 2.

    Thanks for any help that can be given.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Rounding Numbers

    Please try

    MsgBox "The Total For This Game Should Be " & round((TopPitcherAveTotalNum + BottomPitcherAveTotalNum) / 2, 1)

  3. #3
    Registered User
    Join Date
    11-12-2015
    Location
    Chelsea, Mass
    MS-Off Ver
    Excel 2013
    Posts
    36

    Re: Rounding Numbers

    Thank You, Bo_Ry. That was it.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Rounding Numbers

    You should be very careful about vba Round function, so better use WorkSheetFunction.Round.

    VBA Round is a Banking round and you see the difference.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-12-2015
    Location
    Chelsea, Mass
    MS-Off Ver
    Excel 2013
    Posts
    36

    Re: Rounding Numbers

    Thank You, Jindon.
    Last edited by AliGW; 10-20-2018 at 10:28 AM. Reason: No need to quote the post just before your own - it's unnecessary clutter.

+ 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. Replies: 4
    Last Post: 12-17-2015, 12:33 AM
  2. Rounding Numbers after a cancatenation of two numbers with a hyphen
    By daszlosek in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-24-2015, 12:30 PM
  3. [SOLVED] Rounding numbers
    By patstickets in forum Excel General
    Replies: 3
    Last Post: 08-09-2012, 01:23 PM
  4. Excel 2007 : rounding numbers
    By joemoran in forum Excel General
    Replies: 5
    Last Post: 03-26-2009, 02:24 PM
  5. [SOLVED] Rounding numbers
    By Phil in forum Excel General
    Replies: 3
    Last Post: 03-08-2006, 05:42 PM
  6. I need help rounding numbers, please.
    By Wind54Surfer in forum Excel General
    Replies: 5
    Last Post: 02-21-2005, 04:06 PM
  7. [SOLVED] Rounding Numbers
    By JaneC in forum Excel General
    Replies: 2
    Last Post: 02-02-2005, 11:06 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