Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# Excel - Changing the way a number is "rounded" and "fractioned"

Posted on 1998-03-15
Medium Priority
197 Views
In Excel
1) How can I control the way the program averages a number up or down? Example: If I enter 12.75, it will average it up to 12.80......Which I do not want.
2) How can I control the way the program shows a fraction? Example: If a calculated number comes to 6.5976, I would prefer it only giving me 6.6
3) Lets say I have a workbook that I use daily and there are some cells that I do not care to ever change or have changed, Is there a way to "lock" these cells?
0
Question by:chinman
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
1 Comment

LVL 3

Accepted Solution

frazer earned 200 total points
ID: 1611336
Hi,

In answer to the first two parts of your question, there are 3 rounding commands, ROUND, ROUNDUP, and ROUNDDOWN.  Find below the three relevant help pages.....

Rounds a number to a specified number of digits.

Syntax

ROUND(number,num_digits)

Number   is the number you want to round.

Num_digits   specifies the number of digits to which you want to round number.

·      If num_digits is greater than 0 (zero), then number is rounded to the specified number of decimal places.
·      If num_digits is 0, then number is rounded to the nearest integer.
·      If num_digits is less than 0, then number is rounded to the left of the decimal point.

Examples

ROUND(2.15, 1) equals 2.2

ROUND(2.149, 1) equals 2.1

ROUND(-1.475, 2) equals -1.48

ROUND(21.5, -1) equals 20

Rounds a number down, toward zero.

Syntax

ROUNDDOWN(number,num_digits)

Number   is any real number that you want rounded down.
Num_digits   is the number of digits to which you want to round number.

Remark

·      ROUNDDOWN behaves like ROUND, except that it always rounds a number down.
·      If num_digits is greater than 0 (zero), then number is rounded down to the specified number of decimal places.
·      If num_digits is 0 or omitted, then number is rounded down to the nearest integer.
·      If num_digits is less than 0, then number is rounded down to the left of the decimal point.

Examples

ROUNDDOWN(3.2, 0) equals 3

ROUNDDOWN(76.9,0) equals 76

ROUNDDOWN(3.14159, 3) equals 3.141

ROUNDDOWN(-3.14159, 1) equals -3.1

ROUNDDOWN(31415.92654, -2) equals 31,400

Rounds a number up, away from 0 (zero).

Syntax

ROUNDUP(number,num_digits)

Number   is any real number that you want rounded up.
Num_digits   is the number of digits to which you want to round number.

Remarks

·      ROUNDUP behaves like ROUND, except that it always rounds a number up.
·      If num_digits is greater than 0 (zero), then number is rounded up to the specified number of decimal places.
·      If num_digits is 0 or omitted, then number is rounded up to the nearest integer.
·      If num_digits is less than 0, then number is rounded up to the left of the decimal point.

Examples

ROUNDUP(3.2,0) equals 4

ROUNDUP(76.9,0) equals 77

ROUNDUP(3.14159, 3) equals 3.142

ROUNDUP(-3.14159, 1) equals -3.2

ROUNDUP(31415.92654, -2) equals 31,500

In answer to your third question you can not protect certain cells.  If you want to protect them you will need to protect the workbook or the worksheet, again find the relevant help below....

Microsoft Excel provides several ways to restrict how users can view or change data in workbooks and worksheets.

·      You can prevent others from changing some or all of the contents of an individual worksheet, viewing hidden rows or columns, viewing formulas, changing graphic objects, or changing saved scenarios. For a list of all worksheet elements you can protect, click  .
·      You can prevent others from adding or deleting worksheets in a workbook or viewing hidden worksheets. You can also prevent others from changing the size and position of the windows for a workbook, removing a shared workbook from shared use, or turning off the change history. For a list of all workbook elements you can protect, click  .

·      You can limit who can open and use the data in a workbook by requiring a password to open or save the workbook. You can also recommend that others open the workbook as read-only.
·      To hide an entire workbook so that users can't see it but can gain access to its contents, use the Hide command on the Window menu, and then save the changes to the hidden workbook.

What do you want to do?

Limit viewing and editing of an individual worksheet
Limit changes to an entire workbook
Limit access and changes to a shared workbook
Require a password to open or use data in a workbook
Require a password to edit and save a workbook
Recommend opening a workbook as read-only

Note   You can create additional restrictions for viewing or changing data in workbooks by writing macros in Visual Basic for Applications. For more information, see Visual Basic Editor Help.

If you need any further help please call...

Hope this helps

Frazer
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
###### Suggested Courses
Course of the Month8 days, 4 hours left to enroll