+ Reply to Thread
Results 1 to 2 of 2

adding round formula to all cells on worksheet

  1. #1
    Registered User
    Join Date
    02-02-2015
    Location
    Massachusetts, USA
    MS-Off Ver
    2010
    Posts
    4

    Question adding round formula to all cells on worksheet

    Hi Folks,

    I've had great luck with the members of this site, so here goes...

    I have a data sheet where some of the cells are formulas and some are values. This file is submitted each month.

    I would like to add the round formula to all the cells in the first 12 columns only, some of which contain current formulas, some which contain hardcoded values. And once this is successful, next month, I will also have cells with the round formula already there.

    Therefore, I need a VB macro that will add "=round(....,2)" to cells with values, "round(....,2)" after the 'equals' sign to cells with other formulas, and nothing at all to cells that already have the round formula. Any chance someone could help me out with this? I would be most appreciative.

    Thanks.

    CCantara

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: adding round formula to all cells on worksheet

    Hi there,

    Take a look at the following code and see if it does what you need:

    Please Login or Register  to view this content.
    The highlighted values may be altered to suit your requirements.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

+ 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. I need helping adding ROUND into this formula
    By brackett in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-16-2014, 09:45 PM
  2. [SOLVED] Round Numbers not adding up ..
    By tbirdpepsi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2014, 06:46 PM
  3. [SOLVED] Adding the Round function to this exisiting calculation
    By jamalfried in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-16-2013, 03:02 PM
  4. adding round function to if formula
    By jrortiz2 in forum Excel General
    Replies: 1
    Last Post: 10-01-2011, 06:28 AM
  5. formula to add cells *% then round
    By markcoronado in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 02-04-2009, 11:36 AM
  6. adding a range then round up
    By tregrad in forum Excel General
    Replies: 1
    Last Post: 02-02-2007, 06:35 AM
  7. Automatically adding cells from one worksheet to another
    By josh3185 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-02-2006, 09:10 PM

Tags for this Thread

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