To edit value in Excel cell using IF statement

Jangrina

New Member
Joined
Jan 8, 2018
Messages
2
Hi,

I want to edit a value in a certain cell.
The situation goes like this;
Case 1:
Let's say the value is 7.0, so the value remains 7.0
Case 2:
Let's say the value is 7.333 which is lesser than 7.5 but greater than 7.0, so the value is changed to 7.5.
Case 3:
Let's say the value is 7.5, so the value remains 7.5.
Case 4:
Let's say the value is 7.667 which is greater than 7.5 but lesser than 8.0, so the value is changed to 8.0

How to make those cases possible in Excel? Pls, help.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi, welcome to the board!

Sounds like this maybe..


Excel 2013/2016
AB
177
27.3337.5
37.57.5
47.6678
Sheet1
Cell Formulas
RangeFormula
B1=CEILING(A1,0.5)
 
Upvote 0
Thank you very much. It works superbly!
I thought I would have to use VBA command.. but just a ceiling solves everything.. :)
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,321
Members
449,218
Latest member
Excel Master

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