Bandpass filters function by selectively allowing a specific range of wavelengths to pass through while blocking others. This selective transmission is crucial in histology for isolating specific wavelengths of light that correspond to particular fluorophores or stains. By using bandpass filters, researchers can enhance the contrast and specificity of histological images, making it easier to identify and study various cellular components.