+ Reply to Thread
Results 1 to 5 of 5

how to roundup and round down textbox value

  1. #1
    Spammer
    Join Date
    08-25-2016
    Location
    https://t.me/pump_upp
    MS-Off Ver
    office10
    Posts
    15

    how to roundup and round down textbox value

    Hi All,

    I have created userform and want to roundup and round down the entered values

    If i enter positive value with decimal value it should round down
    example if i enter 5.01 it should give 5.00 , or for 5.99 should give 5.00

    If i enter negative value with decimal value it should round up
    example if i enter 5.01 it should give 6.00 , or for 5.99 should give 6.00

    regards
    manish
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: how to roundup and round down textbox value

    try this:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-02-2017
    Location
    India
    MS-Off Ver
    2007
    Posts
    16

    Re: how to roundup and round down textbox value

    Which figure do you want to round? The sum or the individual entries?

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: how to roundup and round down textbox value

    Try:

    TextBox3.Value = Int(Val(TextBox1.Value) + Val(TextBox2.Value))

  5. #5
    Spammer
    Join Date
    08-25-2016
    Location
    https://t.me/pump_upp
    MS-Off Ver
    office10
    Posts
    15

    Re: how to roundup and round down textbox value

    individual entries

+ 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. Round Down a TextBox Value
    By aribobeto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2017, 02:58 PM
  2. ((Solved)) ROUND , ROUNDUP , ROUNDOF , IF mix formula help !!!
    By mihir777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2016, 06:20 AM
  3. Help! Roundup/round down depending on cell value
    By nicolam_83 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-17-2016, 02:37 PM
  4. [SOLVED] Round, Roundup, Rounddown or something else????
    By PERE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2013, 09:14 AM
  5. Using ROUNDUP and a Minimum value (that doesn't round) in the same function.
    By Stahlfeder in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-13-2012, 06:43 PM
  6. round numbers in the textbox
    By myfe in forum Excel General
    Replies: 4
    Last Post: 07-09-2012, 01:53 PM
  7. Replies: 18
    Last Post: 06-29-2006, 12:50 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