How to round up a number to the nearest .5? [duplicate] - excel

This question already has answers here:
How to roundup a number to the closest ten?
(4 answers)
Closed 6 years ago.
How to round up a number to the nearest .5 in excel?
For example round up number 77.2 to 77.5.

CEILING(number, significance)
Number - The value you want to round.
Significance -The multiple to which you want to round.
Returns number rounded up, away from zero, to the nearest multiple of significance. For example, if you want to avoid using pennies in your prices and your product is priced at $4.42, use the formula =CEILING(4.42,0.05) to round prices up to the nearest nickel.
So, in your case:
CEILING(value, 0.5)
More info on Microsoft support

Related

How do I generate a random data set of positive whole number that computes to a fixed sum range in excel? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Basically, I would like to take a random list of positive whole numbers whose sum is equal to a specific range.
For example:
Generating 10 random positive whole numbers whose total sum is between the values of 25 and 100 inclusive.
Coming up with a formula for excel is a bit over my head. If anyone has any suggestions that would be very helpful!
One way to do this is as follows. I will use the numbers you gave in the example, but the method is easily generalized to arbitrary numbers.
In column B, I generate numbers from an exponential distribution. Then in Column C, I normalize them by dividing each one over their sum. This way, each number turns into a proportion (i.e., they all sum up to 100%). Finally, in Column D I take this proportion and multiply it with a random number between 25 and 100 (better consider generating numbers in a tighter range, to avoid rounding errors - I am using 27 and 95 in my example, to also account for the bias of rounding up), and round it up. The sum is in cell D12.
Here is a sample screenshot:
and here is the distribution of the sum of these numbers, when using 1,000 iterations:
A further idea to tackle rounding is to round up only when the resulting number is zero:
ROUND(C2*$E$2,0)+(ROUND(C2*$E$2,0) = 0)
This introduces a small bias as getting a 1 is slightly more likely than getting other numbers - but the distribution of the final sum is practically uniform.
I hope this helps.
Disclaimer: I used this answer as a base for mine. The statistical justification is that this problem is equivalent to generating numbers from a Dirichlet distribution.
In A1 through A9 enter:
=RANDBETWEEN(2,10)
and in A10 enter:
=RANDBETWEEN(7,10)

Convert minutes into 100ths of an hour using Excel [duplicate]

This question already has an answer here:
Converting large time format to decimal in excel
(1 answer)
Closed 5 years ago.
I have a function =TIME(8,30,0)-(C2-B2) that work out my timesheet for me but I also need the resulting elapsed time value to be converted into hours and 100ths of an hour.
e.g. 1:45:00 would be 1.75.
Multiplying the result by 100 and dividing by 60 does not seem to give the desired result.
Time in Excel is a decimal. so one hour is 1/24th of a full day. So 1/24.
Multiply the time by 24 and you will get your decimal:
=A1*24

How do i know a valie is statistically different from a group in excel [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have a set of data in one column like:
5
4
7
4
25
I want to know if any of this values is statiscally different from the others in a certain confidence level.
In general, for a normal (bell curve) distribution which is pretty standard for just measuring things, about 2/3 of samples lie within one standard deviation away from the mean. 95% of samples are within 2, 99.7% within 3 and 99.99% within 4 (Source).
To calculate the mean: sum up all the values and divide by the number of values you have.
To calculate the Standard Deviation:
For each value (x), subtract (x - the mean). Square that value. Sum all of those values up. Divide by the number of samples (n) that you have, minus 1. Take the square root to get your standard deviation.
In order to find the upper and lower limits, for your mean, you must choose a confidence interval. 95% is pretty standard. We're going to assume a normal probability (a bell curve).
Your range is defined by the above formula. The mean plus or minus a value. S is your sample standard deviation that you just calculated. N again is the number of samples. t* is a "confidence number. Look in table C here. Look for your confidence value in the top row. The degrees of freedom (first column) is n - 1. The value in the table is your t* value. Use these values to calculate your range for the mean (including upper and lower limits).
Depending on how "different" you want to think a value is from "the average," use the above guidelines. A value could be different if it is [average + range value + 2*std deviation] or [average - range - 2*std deviation] if you define "different" as outside of 95% of the values.

Is the a similar command within Excel that performs the same as the 'floor' command within MATLAB [duplicate]

This question already has answers here:
Excel formula to do the same as x=(b/N)*(-floor(N/2):floor(N/2)) in MATLAB
(2 answers)
Closed 8 years ago.
The 'floor' command in MATLAB is defined as "Round towards minus infinity.
floor(X) rounds the elements of X to the nearest integers
towards minus infinity."
Is there a similar command within Excel, or does anyone know how to perform the same action within Excel?
yes, you can use =INT(A1) formula. It rounds a number (from A1 cell) down to the nearest integer. Here is documentation.

Excel: How to roundup a number to the closest ten2? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Excel: How to roundup a number to the closest ten?
I made this question a few hours ago, but I wasn't very specific:
How to roundup a number to the closest ten?
Probably the title is not very suggestive. Let me explain you with an
example. I have:
12345.6
2345.1
12345.00000001
I want those numbers to be roundup to 12350. How can I do this? If
possible, I would rather use formulas instead of VBA.
This is the original question, but at the same time, I want the same result for:
12340.0001 to be modified in 12350. Somehow I don't know if this is still a round operation. :)
I'm sorry for duplicating the question, but posting a comment at the first question, didn't draw enough attention. :)
Divide by 10, round with the regular function (Round x,0) and multiply by 10 again...
=(ROUND(E7/10;0)*10)

Resources