Hi all ...
I am sorting a column using the formula below.
Selection.Sort Key1:=Range("B9"), Order1:=xlAscending, Header:= _
xlYes, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Say the cells in the column, I want to sort in ASCENDING is from B8 to B59.
The cell contains names of student.
But some cells contain values zero (because I used a formula in all cells in
this column that will return a zero value (0) if a condition is not met).
When I sort in alphabetical order (ascending), the cells with values 0 will
be listed first followed by A, B, C etc.
(0,0,0,A,B,C,)
Is there any way I can ignore the zero values in that column so that the
sorting will be A,B,C etc followed by cells with 0 values?
(A,B,C,0,0,0)
Can someone help me to modify the formula?
Thanks... I appreciate your kind help.
Warmest regards,
Salza