Coptidis Rhizoma (Chinese: Huanglian) and Phellodendri Chinensis Cortex (Chinese: Huangbo) are widely used Traditional Chinese Medicine, and often used in combination because of their similar pharmacological effects in clinical practice. However, the quality control methods of the two drugs are different and complicated, which is time consuming and laborious in practical application. In this paper, rapid and simultaneous determination of moisture and berberine in Coptidis Rhizoma (CR) and Phellodendri Chinensis Cortex (PC) was realized by near-infrared spectroscopy (NIRs) combined with global models. Competitive adaptive reweighted sampling (CARS) and successive projection algorithm (SPA) method were applied for variable selection. Principal component analysis (PCA) and partial least squares regression method (PLSR) were applied for qualitative and quantitative analysis, respectively. The characteristic variables of berberine showed similarity and consistency in distribution, providing basis for the global models. For moisture content, the global model had relative standard error of prediction set (RSEP) value of 3.04% and 2.53% for CR and PC, respectively. For berberine content, the global model had RSEP value of 5.41% and 3.97% for CR and PC, respectively. These results indicated the global models based on CARS-PLS method achieved satisfactory prediction for moisture and berberine content, improving the determination efficiency. Furthermore, the greater range and larger number of samples enhanced the reliance of the global model. The NIRs combined with global models could be a powerful tool for quality control of CR and PC.