This paper is devoted to the use of statistical methods to ensure the highest quality processes. Specifically, it deals with creating an application in MS Excel which evaluates standard statistical parameters and if the required process capability indices are complied with, then it is possible to proceed to SPC (statistical process control). The application was created in MS Excel using the Visual Basic for Application programming language. In addition to the required calculations, the application also generates forms with all important data. This application was designed to reduce reject rate and improve the production process in a contracting company.