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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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