+ Reply to Thread
Results 1 to 3 of 3

Add & Remove Rounding Formula

  1. #1
    Registered User
    Join Date
    07-27-2015
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    40

    Add & Remove Rounding Formula

    Hello

    I'm using the following code (borrowed from another forum) to add the rounding formula to selected cells:
    Please Login or Register  to view this content.
    Whilst the above formula works quite well, i'd like to have the option of removing the Rounding formula. I've therefore amended the code above into the following code:
    Please Login or Register  to view this content.
    This RemoveRounding code does not seem to work because of this line
    Please Login or Register  to view this content.
    . I think the problem is that whilst i'm able to strip out "=Rounding(" i am not able to remove the end part of the rounding formula ",2)".

    Any suggestions on how i can extract x from the rounding formula e.g. x from "=Rounding(x,2)"

    Ideally i'd be able to toggle between adding the rounding formula and removing the rounding formula.

    Thanks in advance

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Add & Remove Rounding Formula

    Maybe something like this;
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-27-2015
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    40

    Re: Add & Remove Rounding Formula

    Quote Originally Posted by JBeaucaire View Post
    Maybe something like this;
    Please Login or Register  to view this content.
    That's perfect! Many thanks for showing me the way

    Have a good weekend!

+ 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: 9
    Last Post: 11-23-2016, 12:22 PM
  2. [SOLVED] Rounding Formula
    By EnigmaMatter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-09-2014, 04:05 PM
  3. [SOLVED] Rounding problems using lookup instead of rounding functions
    By thnkfree in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-18-2014, 06:21 PM
  4. [SOLVED] Rounding off formula
    By anwitha in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2013, 05:32 AM
  5. [SOLVED] how to remove rounding formula
    By Mile029 in forum Excel General
    Replies: 5
    Last Post: 01-16-2013, 04:16 PM
  6. Remove Rounding On Formula
    By ryanb4614 in forum Excel General
    Replies: 2
    Last Post: 07-30-2010, 07:52 PM
  7. Rounding Formula
    By btacre in forum Excel General
    Replies: 6
    Last Post: 06-02-2008, 04:39 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