Formula is not working

littlehelga

New Member
Joined
Jan 29, 2018
Messages
10
I'm new to excel I am using this formula

=IF(OR(J7<5, J7>5), J7, 5)

If J7 is less than 5, I want it to remain J7
If J7 is greater than 5, I want it to remain 5
 
Calculations are set to automatic.
values are correct as shown

If the values are in the cells are really:
J1 = 10
J8 = 8
K7 = 0
Then there is no way that:
=(J1+K7-J8)
can return 0.

Are you sure that your calculation is not set to Manual?
What happens if you press F9?
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Maybe you're having a circular reference error.
Look on the Formulas Tab - Error checking.

Which cell are you putting this formula in?
Is J1 also a formula?
 
Upvote 0
Can you upload the file to a file sharing site like "DropBox" and provide a link here, so we can download it and take a look at it?
 
Upvote 0
You have custom formatting in K7 (#,##0;"0") that is making negative values appear to be 0.
K7 actually equals -6.
 
Last edited:
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