How to use flag in excel report?