Allowing multiple zeroes

koconnell

New Member
Joined
Feb 6, 2013
Messages
12
Hello, I have a sheet where values are entered into one cell and if they match a criteria a results cell allows pass or fail.
e.g. a value must be between 1-5, if it is within this range, Pass, otherwise Fail.
However one cell must match 00000000, the issue is that this changes to just 0 when the value is entered. Zeros must be allowed as sometimes the ranges vary into minus numbers e.g. -5 to 5
Thank you in advance for any help.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hello,

Assuming that only when inputting 0 results in 00000000 and all other numbers remain the same, then in the input cell (say A1) change the custom format to 0;-0;00000000 then enter the following formula in B1:

=IF(AND(A1>=-5,A1<=5),"PASS","FAIL")

I hope this helps.
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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