rounding to .5

  • Thread starter Thread starter Jean-Paul De Winter
  • Start date Start date
J

Jean-Paul De Winter

Hi,

I want a value like 4.4 to be rounded to 4.5 upon entering
Values like:
6.1 should be 6
4.6 should be 4.5
4.8 should be 5

Any idea?

it should be invoked when leaving the corresponding cell...

Thanks
 
=ROUND(C13*2,0)/2
to have it automatic>right click sheet tab>view code>copy/paste this>modify
to suit>save

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 3 Then Exit Sub'restricted to col C
Target.Value = Round(Target * 2, 0) / 2
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

How to store values in excel using macro ? 4
Round 10
Rounding problem 9
rounding to nearest .5 in vba 12
How do I modify rounding rules in Excel? 2
Rounding 2
rounding down 2
Median If in Excel not working 4

Back
Top