How to check for inconsistent values in a series of numbers

agencia1

New Member
Joined
Mar 31, 2013
Messages
16
Hi everyone,

I am trying to write a formula to check for discrepancies. I want the formula to return 'TRUE' if all the non-zero cells have equal values and 'FALSE' if one of the cells has a value which is zero or a number that is not consistent with the other numbers. I tried doing HLOOKUP and can't quite figure it out. Driving me nuts.

For example, I have a row of outputs from cells A1, B1, C1, D1.

A1= 10
B1= 10
C1 = (no number entered)
D1 = (no number entered)

I would want a 'TRUE' here

or....if I have the following

A1= 10
B1= 11
C1 = 10
D1 = (no number entered)

I would want a 'FALSE' here


or....if I have the following

A1= 10
B1= 0
C1 = 10
D1 = (no number entered)

I would want a 'FALSE' here

Thanks!
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
How about
=AVERAGE(A1:E1)=A1
 
Upvote 0
I'm trying to find a neater way, but this seems to do what you need:

Code:
=IF(IFERROR(MATCH(0,A1:D1,0),"err")="err",IF(AND(OR(A1="",MOD(A1,2)=0),OR(B1="",MOD(B1,2)=0),OR(C1="",MOD(C1,2)=0),OR(D1="",MOD(D1,2)=0)),"TRUE","FALSE"),"FALSE")

It tries to find a zero (=FALSE), if not it checks that each cell is either blank or divisible by 2.

Edit: Oops I initially read the word "equal" as "even", and thought that the number 10 could vary across the rows...sorry. Rick's answer is beautifully elegant!
 
Last edited:
Upvote 0
Ignore the formula in post#3
It doesn't work :eek:
 
Upvote 0

Forum statistics

Threads
1,216,025
Messages
6,128,341
Members
449,443
Latest member
Chrissy_M

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