IF statement to round numbers - HELP PLEASE!!

Joined
May 17, 2011
Messages
27
I have column C with values ranging from 1 through to 3 (with decimal points etc.) How do I create a formula to round the values to 1 if less than 2, to 2 if between 2-3, and 3 if 3 and above?

I believe the start of the formula would be: =IF(C1<2,"1")

But then I do not know how to add in the other parts of the formula...

Please help, thank you!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Is this it?
Code:
=if(c1<2,1,if(c1<3,2,3))
or:-
Code:
=if(c1>3,3,if(c1>2,2,1))
 
Upvote 0
Unfortunately none of them work... 2 is still counted as 1... I basically need anything that begins with a 1 to be a 1, 2 to be a 2 and 3 to be a 3...

Ie/ 1.3 = 1
2.2 = 2 etc
 
Upvote 0
I think I'm the same as Ruddles, but it works for me
Code:
=IF(C1<2,1,IF(C1<3,2,3))
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,882
Members
452,948
Latest member
Dupuhini

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