Formula to flag if value is greater than or less than 90

Nanaia

Active Member
Joined
Jan 11, 2018
Messages
306
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
How would I word a formula to flag if a cell is greater than or less than 90? I want to search 2 columns (Z and AA) and tell me if any of the values are greater than or less than 90 and exclude zero's and text by putting "BRACKET" the cell the formula is in. How would I word that in a formula?
 
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
You want one formula to test both Columns? What if one is under 90 and the other is over 90?
 
Upvote 0
No, one formula to check both columns from row 3 to row 500. They identify angles on the X and Y axis. If it's not a 90 degree angle (both columns are identified as numbers, not degrees). The columns being checked are on a different worksheet in the file. I want a cell on the front sheet to flag the non-standard angles so we know we'll need to address them. I hope I didn't just confuse things.
 
Last edited:
Upvote 0
This will test if either is not equal to 90, but as Scott T points out, it will not distinguish which one is not = 90.
Code:
=IF(OR(Z2<>90, AA2 <> 90), "[]", "")
 
Upvote 0
Cool. Thanks! I could just put the flag word we want in place of the [] can't I? I don't need it to tell me which one, that one in that row is non-standard. How do I get it to ignore the ones with zero values?
 
Last edited:
Upvote 0
Wow. It stinks when there's a lag between the keyboard and the computer. That post was all sorts of messed up!
What I meant to say was:
Cool. Thanks! I could just put the flag word we want in place of the [] can't I? I don't need the formula to tell me which column has the non standard number, only identify the row somehow. I will be using the results of this formula in a TEXTJOIN formula that we want to be blank if the there is text, a zero, or a standard 90 in one of those columns, and flag it if there is any other number there.
I hope that makes more sense. Sorry about the mess.
 
Upvote 0
Does this do what you want?


Book1
ZAAAB
2texttext 
388903
490994
59090 
6text76
769text7
Sheet1
Cell Formulas
RangeFormula
AB2=IF(OR(AND(ISNUMBER(Z2),Z2<>90),AND(ISNUMBER(AA2),AA2<>90)),ROW(),"")
AB3=IF(OR(AND(ISNUMBER(Z3),Z3<>90),AND(ISNUMBER(AA3),AA3<>90)),ROW(),"")
AB4=IF(OR(AND(ISNUMBER(Z4),Z4<>90),AND(ISNUMBER(AA4),AA4<>90)),ROW(),"")
AB5=IF(OR(AND(ISNUMBER(Z5),Z5<>90),AND(ISNUMBER(AA5),AA5<>90)),ROW(),"")
AB6=IF(OR(AND(ISNUMBER(Z6),Z6<>90),AND(ISNUMBER(AA6),AA6<>90)),ROW(),"")
AB7=IF(OR(AND(ISNUMBER(Z7),Z7<>90),AND(ISNUMBER(AA7),AA7<>90)),ROW(),"")
 
Upvote 0
[TABLE="class: grid, width: 50"]
<tbody>[TR]
[TD]90
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]110
[/TD]
[TD][/TD]
[TD]BRACKET
[/TD]
[/TR]
[TR]
[TD]90
[/TD]
[TD]90
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]30[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]80
[/TD]
[TD]BRACKET
[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0
Well the chart didn't show liked I'd hoped. I can't paste in here, it loses the formatting. I tried to use the site to create a chart and it wouldn't show the zero values (that's the empty cells) or the cell headers.
If first column or the second column shows anything other than 90, the panel needs a bracket. I'm trying to flag it so we know at a quick glance which ones need brackets.
 
Upvote 0
try


Excel 2010
ZAAAB
290 
3110BRACKET
49090 
5 
680BRACKET
Sheet1
Cell Formulas
RangeFormula
AB2=IF(OR(AND(ISNUMBER(Z2),Z2<>90),AND(ISNUMBER(AA2),AA2<>90)),"BRACKET","")
AB3=IF(OR(AND(ISNUMBER(Z3),Z3<>90),AND(ISNUMBER(AA3),AA3<>90)),"BRACKET","")
AB4=IF(OR(AND(ISNUMBER(Z4),Z4<>90),AND(ISNUMBER(AA4),AA4<>90)),"BRACKET","")
AB5=IF(OR(AND(ISNUMBER(Z5),Z5<>90),AND(ISNUMBER(AA5),AA5<>90)),"BRACKET","")
AB6=IF(OR(AND(ISNUMBER(Z6),Z6<>90),AND(ISNUMBER(AA6),AA6<>90)),"BRACKET","")
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
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