# Need formula to check if cells below are <

#### bill_s1416

##### Board Regular
I have a spreadsheet and in column g are values that are "supposed" to be in ascending order (I can't re-sort the data and I don't want to bore anybody with the explanation.) I need to put a formula in column h that checks if the corresponding cell in g is greater than "any" of the cells below it.

### Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

#### KenWright

##### Active Member
In H1 assuming your numbers start in G1, in cell H1 put

=COUNTIF(\$G2:\$G\$27,"<"&G1)>0

and copy down.

Might also want to take a look at the RANK function.

#### Brian from Maui

##### MrExcel MVP
bill_s1416 said:
I have a spreadsheet and in column g are values that are "supposed" to be in ascending order (I can't re-sort the data and I don't want to bore anybody with the explanation.) I need to put a formula in column h that checks if the corresponding cell in g is greater than "any" of the cells below it.

=\$G\$1>G2 and drag down

or

=COUNTIF(G2:G100,"<"&G1)

#### Seti

##### Well-known Member
Something like this?

Assuming you have 100 rows from row 2 to 101 and are putting this formula in H2 to check to see that G2 < G3....G101

=IF(G2>MIN(G3:\$G\$101),"Out of Order","")

Then copy down from H2 to H101.

Replies
7
Views
237
Replies
9
Views
210
Replies
21
Views
467
Replies
1
Views
263
Replies
14
Views
298

1,181,624
Messages
5,931,023
Members
436,771
Latest member
kwicol

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