Rounding problem

Szivecske

New Member
Joined
Nov 17, 2014
Messages
6
If I have numbers under 10, then I want to rounding to 1. If above 10, then should rounding 0. How can I solve this in excel?

So an example:

12
16
18

Average
15 and not 15,3

6
7
6
Average
6,3 and not 6
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Assuming the number to be rounded is in cell A1:

=IF(A1<10,ROUND(A1,1),ROUND(A1,0))
 
Upvote 0
Here's another possible option:

=ROUND(AVERAGE(A1:A3),AVERAGE(A1:A3)<10)

Or as you are probably using European regional settings:

=ROUND(AVERAGE(A1:A3);AVERAGE(A1:A3)<10)
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,847
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top