Briefly: sequential sampling is a sampling plan whereby you decide acceptance of a lot of material based on the minimum number of inspected pieces required to obtain confidence/reliability the material meets quality requirements.

There is no Excel function for this, per se.

What Is A Sequential Sampling Plan

Glossary of Sampling Plan Terms

Sequential Sampling User's Guide