in reply to Values in Excel Cells

You should probably check for a defined value before using whatever you get. But I don't know. You didn't give enough problem context for anyone to be more helpful.