Sort by Upper case

xenios

Board Regular
Joined
Sep 4, 2020
Messages
91
Office Version
  1. 2016
Platform
  1. Windows
Dear All.

I'm trying to use the following formula to sort the text in column by Upper case (all text in upper case). But it's not working. Any ideas?
=IF(EXACT(A2,UPPER(A2)),"Upper Case",IF(EXACT(A2,LOWER(A2)),"Lower Case",IF(EXACT(A2,PROPER(A2)),"Proper Case","Other")))

Thank you.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Not working in what way? It would be useful to see an example and an explanation of why you believe it's not working.
 
Upvote 0
Not working in what way? It would be useful to see an example and an explanation of why you believe it's not working.
I'm getting the attached error. I have tried to change " to ' , but still no luck.
 

Attachments

  • error excel.png
    error excel.png
    10.9 KB · Views: 12
Upvote 0
Do you normally use commas as the separator in formula, or do you need to use semi-colons?
 
Upvote 0
Do you normally use commas as the separator in formula, or do you need to use semi-colons?
Don't use Excel very often, but yes, this was the case, thank you :))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Glad it's sorted & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,739
Members
448,989
Latest member
mariah3

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