joeu2004 said:
=mround(A1-38,5) + 38
[....or....]
=50*round((A1-38)/50,0) + 38
That is great it works well. What I have to do if I did want to use say 48
and 98 rather than 58?
=mround(A1-48,50) + 48
or
=50*round((A1-48)/50,0) + 48
Test using a column of numbers ending in 99 (for example, 1199)
through numbers ending in 98 (for example, 1298). You should see that
numbers ending in 99 through 22 round down to a number ending in 98,
numbers ending in 23 through 72 round up to a number ending in 48, and
numbers ending 73 through 98 round up to a number ending in 98. For
example, 1199 through 1222 become 1198, 1223 through 1272 become 1248,
and 1273 through 1298 become 1298. Note that 23 is halfway between 98
and 48, and 73 is halfway between 48 and 98.
BTW I know this is off the track but I have a series of formulas in a series
of cells that are waiting for reference cells to be filled in and therefore
are showing #value isthere something I can do to get rid of this and show
nothing until a value is entered?
It is better to post new questions in a new thread so that it will
catch the attention of people who might have constructive input.
Generally, the following might avoid the #VALUE error:
=if(A1="", "", ...your formula...)
But it depends on why your formula gets #VALUE. For example, the
above solution would not be sufficient if your formula refers to both
A1 and A2, and you put a value in A1, but A2 is still empty. I
believe the simplest catch-all solution is:
=if(iserror(...your formula...), "", ...your formula...)
Some people object because that hides other mistakes that you might
have.
I suggest that you repost your question in a new thread, and be sure
to include examples of one or more distinctive formulas that are
returning #VALUE.