+ Reply to Thread
Results 1 to 4 of 4

Round up value through VBA Code

  1. #1
    Forum Contributor
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    427

    Round up value through VBA Code

    In the attached file in column C if string equal keshav then value of cell J8 copied to cell M8,
    I want that when copying value of cell J8 Round up that value if decimal value is equal or greater 50,
    it means if value in cell J8 is 48.57 then, when copying value should become 49
    you can see before after sheet.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-21-2009
    Location
    Belgium - Mechelen
    MS-Off Ver
    Office 365 - version 2310
    Posts
    278

    Re: Round up value through VBA Code

    You could use the ROUND function in your code like this :

    Please Login or Register  to view this content.
    Even a little help can be a big help !!
    1. A sample workbook says more then words. Add problem description and solution so we can understand the problem.
    2. Your appreciation is accepted by clicking the star "Add Reputation" at the lower left of the post.
    3. If your problem is solved, mark it as [SOLVED]: See "FAQ : " https://www.excelforum.com/faq.php
    4. Use [CODE] [/CODE] tags to illustrate your code: see here

  3. #3
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Round up value through VBA Code

    Please Login or Register  to view this content.
    Kind regards
    Leo

  4. #4
    Forum Contributor
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    427

    Re: Round up value through VBA Code

    thanks for solution, now my problem is solved

+ 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] Round up decimal value to one in VBA code
    By keshavtale in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2018, 07:07 AM
  2. [SOLVED] vba code to adjust round value at random
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2017, 07:52 AM
  3. Replies: 2
    Last Post: 12-06-2014, 01:58 PM
  4. [SOLVED] How to round to nearest .01 and round down if thousands place is .005
    By dredre609 in forum Excel General
    Replies: 5
    Last Post: 09-29-2014, 11:47 AM
  5. [SOLVED] VBA Code to optimize and clean data - Round III
    By JoaoVr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2012, 07:03 PM
  6. [SOLVED] VBA Code to optimize and clean data - Round II Merge columns
    By JoaoVr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2012, 05:58 AM
  7. Round up/down - VBA code request
    By niravrph in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2011, 09:15 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