Disclosed is a sample handling assembly facilitating a sample holding cell used for XRD analysis. The assembly holds the sample cell upright during sample loading and analysis phases. The sample handling assembly is vibrated, partly by a tuning fork, to allow the powder to flow into the sample cell. After the XRD analysis, a rotating arm holding the sample cell is rotated 180° to orient the sample cell completely upside down so that the sample can be emptied. Also disclosed are jets of air that are pulsed onto the sample cell, and/or into the sample cell funnel-tube assembly, to shake and clean the components.