How to select data in a row that is higher/lower using if problem

Ed Harris

New Member
Joined
Dec 9, 2017
Messages
25
Office Version
  1. 2010
Platform
  1. Windows
Hello, I am trying to use "if" and "or" functions to select higher of lower values in a row of 40 cells. I use MAX and MIN and the mean of the row and ABS to get rid of negatives. I would like column AX to show "check" only if there is a qualifying value which is >= 0.009. It works in the AX2 but I cant work out why it is not working in AX3-5. Ideally I would like AX to show the value or the cell number of the high or low peak so that I can find it easily, any ideas?


Cell Formulas
RangeFormula
AS2:AS5AS2=AVERAGE(C2:AP2)
AT2:AT5AT2=MAX(C2:AP2)
AU2:AU5AU2=MIN(C2:AP2)
AV2:AV5AV2=AT2-AS2
AW2:AW5AW2=AU2-AS2
AX2:AX5AX2=IF(OR(AV2 > 0.009,(ABS(AW2))<0.009),"check","")
 

Some videos you may like

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,564
Office Version
  1. 365
Platform
  1. MacOS
Av2 is not greater than 0.009
Aw2 is greater than -0.009
So AV2 is NOT TRUE and so blank
 
Solution

Ed Harris

New Member
Joined
Dec 9, 2017
Messages
25
Office Version
  1. 2010
Platform
  1. Windows
Thanks, It was because I put ABS on the lesser value.
Beam2 2021.xlsx
AX
2check
3s for 40
Cell Formulas
RangeFormula
AX2AX2=IF(OR(AV2 > 0.009,AW2<-0.009),"check","")

 

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,564
Office Version
  1. 365
Platform
  1. MacOS
you are welcome
glad its resolved
 

Watch MrExcel Video

Forum statistics

Threads
1,126,888
Messages
5,621,419
Members
415,839
Latest member
Pollydooner

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
Top