In this work, we employed a new ambient ionization mass spectrometry technique, sandpaper spray mass spectrometry (SPS-MS), as an efficient tool to analyze pills and tablets of pharmaceutical formulations. The following samples were analyzed: regulators of blood pressure, cholesterol, and diabetes, and drugs for the treatment of erectile dysfunction (ED). Additionally, a hard candy of Cannabis sativa containing Δ9-tetrahydrocannabinol (Δ9-THC) and its related isomer cannabidiol (CBD) was also evaluated. The surfaces of the samples, without any prior treatment, were sanded onto triangular-cut sandpaper, and full MS scans (and MS/MS) were acquired in both positive and negative ionization modes. SPS-MS (and MS/MS) allowed for prompt detection of the active pharmaceutical ingredients (APIs) in each formulation. Other components of the formulations, added as excipients, were also tentatively identified. The results described herein indicate that the SPS-MS technique can be applied to fast screening of pills and tablets being potentially used as an efficient tool to detect counterfeit pharmaceutical and illicit products, a current issue of increasing concern.