Highlight the cell

Closed
stephen - Jun 25, 2010 at 07:04 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jun 26, 2010 at 07:29 AM
Hello,
In excel i have list of names in a particular range of cells. I want a Macro or function to highlight the cell which was not in alphabetical order. I didnt want to sort out.


3 responses

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Jun 25, 2010 at 03:54 PM
What do you mean by highlight if name is not sorted. As soon as first name is not sorted, then other names are out of sort. Could you please upload a sample EXCEL file WITH sample data, macro, formula , conditional formatting etc on some shared site like https://authentification.site , http://docs.google.com, http://wikisend.com/ , http://www.editgrid.com etc and post back here the link to allow better understanding of how it is now and how you foresee. Based on the sample book, could you re-explain your problem too
0
i had attached the sample in the following link to help more.
http://www.editgrid.com/explore/user/stephenraj2001/sample
0
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Jun 26, 2010 at 07:29 AM
You can use conditional formatting for this

As per your sample book, you want to highlight based on data in column C

Select from C2 all the way down to the last cell
Then go to conditional format
enter this formula
=AND(AND(ROW(C2)>1, C2<>""), OR(AND(C2>C3, C3<>""),AND(C1>C2, C1<>"")))
and then click on the format function and choose color yellow
0