+ Reply to Thread
Results 1 to 2 of 2

Changing Protected Cell Format to Decimal Places

  1. #1
    Registered User
    Join Date
    06-29-2008
    Location
    Perth, Australia
    MS-Off Ver
    MS Office 2003
    Posts
    87

    Changing Protected Cell Format to Decimal Places

    I have a formula in cell B10 which is a product of values in cells B8 and B9 and returns the value of 65.327.

    I also have a value of 3 in cell B12.

    I would like cell B10 which contains the formula, to be rounded off to decimal places indicated by cell B12. Hence the formula in cell B10 would go like this:

    Please Login or Register  to view this content.
    The decimal places to which the formula will round off the answer, will depend on the value in cell B12.

    That is all simple, but, I also need the formatting of cell B10 to change as per the decimal places indicated by cell B12. Hence cell B10 should read 65, 65.3, 65.33 or 65.327, depending on the value of cell B12 being 0, 1, 2 or 3.

    To make matters worse, the spreadsheet will be password protected.

    So how can this be achieved?

    While I am familiar with Excel, I know nothing about VBA.

    Regards

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Changing Protected Cell Format to Decimal Places

    Presumably a custom format applied to B10 of #.### is not acceptable given 0 decimals would generate 65. rather than 65

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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