Check if column is sorted alphabetically

APML

Board Regular
Joined
Sep 10, 2021
Messages
216
Office Version
  1. 365
Hi all, I have a table with a column of about 1800 entries .. I can sort the column in the table alphabetically a-z.
I'm looking for a formula that will confirm that the column in the table is sorted alphabetically or not (so I can use the answer elsewhere in the sheet).
Was hoping someone would be able to point me in the right direction
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Like this?

Book1
AB
1FALSETRUE
2alphaalpha
3betaapple
4celciusbanana
5applebeta
6bananacelcius
Sheet3
Cell Formulas
RangeFormula
A1:B1A1=AND(INDEX(A3:A6>=A2:A5,))
 
Upvote 0
You can omit the INDEX - at least in the OP's version.

22 09 22.xlsm
AB
1FALSETRUE
2alphaalpha
3betaapple
4celciusbanana
5applebeta
6bananacelcius
Sorted
Cell Formulas
RangeFormula
A1:B1A1=AND(A3:A6>=A2:A5)
Hi, firstly thx for helping. I'm not understanding what I'm meant to be doing here
You can omit the INDEX - at least in the OP's version.

22 09 22.xlsm
AB
1FALSETRUE
2alphaalpha
3betaapple
4celciusbanana
5applebeta
6bananacelcius
Sorted
Cell Formulas
RangeFormula
A1:B1A1=AND(A3:A6>=A2:A5)
Hi, firstly thx to both for the help, and it works well. just wonder 2 things:
Is there another formula that I can also use to confirm if the column was sorted z to a (as opposed to a to z)
And would it be the same formula if the column was numeric (% values) instead of a to z?
 
Upvote 0
Is there another formula that I can also use to confirm if the column was sorted z to a (as opposed to a to z)
Yes, just swap the >= for <=

22 09 22.xlsm
AB
1FALSETRUE
2alphacelcius
3betabeta
4celciusbanana
5appleapple
6bananaalpha
Sorted Z-A
Cell Formulas
RangeFormula
A1:B1A1=AND(A3:A6<=A2:A5)


And would it be the same formula if the column was numeric (% values) instead of a to z?
Give it a try and see. ;)
 
Upvote 0
Solution
Yes, just swap the >= for <=

22 09 22.xlsm
AB
1FALSETRUE
2alphacelcius
3betabeta
4celciusbanana
5appleapple
6bananaalpha
Sorted Z-A
Cell Formulas
RangeFormula
A1:B1A1=AND(A3:A6<=A2:A5)



Give it a try and see. ;)
Fantastic, works well. Really appreciate your help
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,936
Members
449,094
Latest member
teemeren

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