Hello,
I have a database from which I'm forming a pivot table. The problem is I have blanks as ID, so when I sort descending by the DataField, the (blanks) are on top. I would love them to appear under every other data, or it would be perfect if they would be just sorted corectly, so the blanks would find themselves between he other IDs.
I think the picture will explain everything. I want (blanks) to be sorted correctly among other data, or if not possible, to show under the filled-in IDs.
I'm using a VBA code to sort:
Is there any way to help me or achieve to desired effect in different way?
Thank everyone for help.
I have a database from which I'm forming a pivot table. The problem is I have blanks as ID, so when I sort descending by the DataField, the (blanks) are on top. I would love them to appear under every other data, or it would be perfect if they would be just sorted corectly, so the blanks would find themselves between he other IDs.
I think the picture will explain everything. I want (blanks) to be sorted correctly among other data, or if not possible, to show under the filled-in IDs.

I'm using a VBA code to sort:
Code:
With .PivotFields("ID")
.AutoSort Order:=xlDescending, Field:="Value"
End With
Is there any way to help me or achieve to desired effect in different way?
Thank everyone for help.