# IF function

#### excelnewbie146

##### New Member
How would I put this in an IF function?

If J23-M23 is greater than negative 0.90 cents than it equals 0.
If J23-M23 is less than negative 0.90 cents than J23-M23.

Any help would be appreciated. Thank you!

### Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
=(j23-m23)*(j23-m23<0.9)

=IF((J23-M23) > 0.9, 0, J23-M23)

Note: Does that matter if the value is equal to .9? If it does then you would need to expand your formula creating a nested if statement.

Replies
2
Views
144
Replies
4
Views
162
Replies
12
Views
280
Replies
1
Views
238
Replies
3
Views
187

1,216,104
Messages
6,128,856
Members
449,472
Latest member
ebc9

### 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.

### Which adblocker are you using?

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

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