Simultaneously detecting naphthol AS-D chloroacetate esterase (NAS-DCE) and pH is an effective way to separate different granulocytes, which is of great significance for the analysis of blood. A series of fluorescent small molecules (HBT-ASDs) were designed, whose ESIPT process could be logically regulated by NAS-DCE and pH. One typical molecule, HBT-ASD-2, emits three kinds of fluorescence output signal at 438 nm and 545 nm for NAS-DCE under different pH values (5.0, 7.4 and 10, respectively). According to such differential signals, the acid, neutrophil and alkaline granulocytes can be sorted, and the activity of NAS-DCE can also be simultaneously monitored in real-time. Thus, a simple analytical tool for clinical blood monitoring and analysis is provided.