Need formula to check if cells below are <

bill_s1416

Board Regular
Joined
Feb 12, 2003
Messages
103
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. :oops:
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

KenWright

Active Member
Joined
Jan 14, 2005
Messages
267
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
Joined
Feb 16, 2002
Messages
8,459
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. :oops:

=$G$1>G2 and drag down

or

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

Seti

Well-known Member
Joined
May 19, 2002
Messages
2,916
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.
 

Forum statistics

Threads
1,148,056
Messages
5,744,548
Members
423,882
Latest member
Seeham

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