how to use excel if function to generate id number