G
Guest
I have a "date column" (Column A) with this formula structure in all of the
rows of that column =IF($M2>0,$M2,IF($M2=0,"NA")). It feeds off of a revision
date column (column M). If there is no date in the "revision date column" it
shows up NA in column A. All of the NA's and dates are recorded in column A
through this formula.
Then I sort column A with a sort command button located at the top of column
A with this formula:
Private Sub CommandButton1_Click()
Range("A2").Sort Key1:=Range("A2"), Order1:= _
xlAscending, Header:=xlGuess, OrderCustom:=6, _
MatchCase:=False, Orientation:=xlTopToBottom
End Sub
This sorts the dates in ascending order with the NA's at the bottom.I need
to know if there is a formula that will allow me to sort column A with all of
the NA's rising to the top but the rest of the dates falling in ascending
order below the NA's. Is this feasible and did I explain it clearly?
rows of that column =IF($M2>0,$M2,IF($M2=0,"NA")). It feeds off of a revision
date column (column M). If there is no date in the "revision date column" it
shows up NA in column A. All of the NA's and dates are recorded in column A
through this formula.
Then I sort column A with a sort command button located at the top of column
A with this formula:
Private Sub CommandButton1_Click()
Range("A2").Sort Key1:=Range("A2"), Order1:= _
xlAscending, Header:=xlGuess, OrderCustom:=6, _
MatchCase:=False, Orientation:=xlTopToBottom
End Sub
This sorts the dates in ascending order with the NA's at the bottom.I need
to know if there is a formula that will allow me to sort column A with all of
the NA's rising to the top but the rest of the dates falling in ascending
order below the NA's. Is this feasible and did I explain it clearly?