Round Number To Nearest Equal Or Lower Number Of A String
Dec 20, 2013
For this example, A1 is the given at 19.875 I am trying to get A2 to net a result of 19.5. A2 is to net that result by searching through cells B1:B14 and finding the nearest equal or lower number. If A1 is less than 13.5 a result of "error" should be generated in A2.
I guess I have an odd rounding up query. I want to know if its possible to make excel round up a number to the nearest number from within a list of numbers.
For instance my list could be
10 12 15 17 19 22 25 30 35 42
The numbers arent odds or evens or multiples of anything so I'm guessing there won't be an inbuilt function to do this but is there anyway I could get to the answer in a more round about way with helper calculations??
I have a cell that is going to be used for the quantity of a certain item. I would like to dummy proof this sheet as much as possible so that if someone puts in 21.5, that it will do something like change the value to either 21 or 22, since there can't really be a .5 of this item.
We are trying to find the correct formula to round number to the nearest even number. In the attached example, 0.105 should round to 0.10 since the zero to the left of the five is even. If the problem was 0.115 then the answer would be 0.12 since the one to the left of the zero is odd.
I need a VBA code to find the nearest biggest number and nearest lowest number between the data of D2 to H2. In the attached file, I have mentioned my required output (Column A and B - blue highlighted)
i want to do something that should be relatively simple, and yet it is not... has me stumped. what i'm doing: taking a range of numbers... from 1-19, 20-39, and so on, and using a vlookup function to pin a rating for said value off a reference table. heres a example of what i'm doing: A | B 1 1 2 1 3 1 4 1 5 1 ... ... 19 1 20 2 ... ... 40 3...................
Below is my current formula. Right now I have it rounding the results to the nearest .09. I would also like to have it round to the nearest .05 as well.
In other words, to be more exact: I need all numbers that end in 0 or 1 to be rounded down to 9; any numbers that end in 7 or 8 to be rounded up to 9; any numbers that end in 2, 3, or 4 to be rounded up to 5; and 6 to be rounded down to 5. And, of course any numbers ending in 5 or 9 shouldn't change.
I have an overtime spreadsheet where I calculate how mush I'm paying on vouchers, as they only come in lots to £5.00 I want to round the figure to the nearset £5.00, doesn't really matter if I overpay as it will even out next time, what's a basic forumula to work this out?
format: cell a1 Jones---56. In cell b1 I have another name i.e., Johnson---45. How can I subtract 45 from 56, take 60% of the difference and in cell c3 show the following; Johnson---6. All numbers are to rounded down to 0. The final result would look like this; a1 Jones----56, b1 Johnson----45, c1 Johnson----6. I have other cells with the same type of info in them. Example; a2 Smith----34, b2 Jones----78, c3 would show Smith----26.(rounded down) I always want to subtract the lower number from the highest and take 60% of the difference.
I am looking for a formula which will allow a value to round up or down to the nearest x.99 if the value is greater than x.95 or less x.05 otherwise remain the same. i.e if the value is 0.96 it should read 0.99 and if the value is 1.04 it should read 0.99. however if the value 1.05 it should read 1.05.
I'm trying to round some figures UP to the nearest .5, However i only know this formula: =MROUND(P2,0.5) and that rounds to the nearest .5? Is there anything i can use instead to make sure it is always up not down. so 6.13 becomes 6.50 or 7.53 become 8.00? etc.
I am trying to figure out a formula that will provide the following results for time worked. (This is contract work that is billed in 1/10 hr increments.)
1 min - 5 min = no charge (rounddown to 0 min) 6 min - 11 min - rounddown to 6 min 12 min - 17 min - rounddown to 12 min.
or
1 - 5 min are billed at 0 hours 6 - 11 min are billed at .1 hour 12 - 17 min are billed at .2 hours
B15 = start time, C15 = end time, G15 = billable time in 1/10 hrs
I'm using Excel2010. I have a spreadsheet of loan information contained in rows. One of the columns lists the loan rate as a number (not a percent - so 5.25% is listed as 5.25, not 0.0525 and formated as percent). I need to pivot-table using the rate, rounded up to the nearest quarter of a percent (so 5.3875 rounds up to 5.50). Is there a formula to do this, or is it better to use a lookup table?
I need to round a time to the nearest quarter hour and have it show in quarters. My formula figures out the hours worked. If the total is 8.36, then it needs to show 8.75. It needs to round up or down to nearest quater hour.
This issue is due to the limitations of the nested if formula. I have range of cells that contains percentile rankings 1-100. I am trying to figure out how to convert the cells that contain values 1-10 to a 1, cell values 11-20 to a 2 and so on.