Is keflex good for sinus infection and upper respiratory infection?

Only. If it is a bacterial infection. Most upper respiratory infections however, are viral and many people mistake a viral rhinnitis for sinusitis and take unnecessary antibiotics. Sounds like you may be considering taking left over keflex. Would recommend against that. Rather consult your doctor.