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

#### Ed Harris

##### New Member
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","")

### Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

#### etaf

##### Well-known Member
Av2 is not greater than 0.009
Aw2 is greater than -0.009
So AV2 is NOT TRUE and so blank

#### Ed Harris

##### New Member
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","")

you are welcome

Replies
1
Views
237
Replies
7
Views
118
Replies
1
Views
57
Replies
5
Views
44
Replies
14
Views
952

1,127,236
Messages
5,623,537
Members
415,977
Latest member
Tommyboy30

### 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?

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