This project has moved. For the latest updates, please go here.

Get Cell Type?

Jan 23, 2012 at 1:15 PM
Edited Jan 23, 2012 at 2:30 PM

Hi everybody. 

I'm using EPPlus.

I wonder if there is a way to know the Excel Cell Type (Numeric, Text, DateTime), instead of doing this:

 

if (cell.Value is Double)
..
.
else if (cell.Value is DateTime)
..
..
else if (Cell.Value is String)
..
.

If the cell is a Formula, etc. 

Thanks in advance.

Gonzalo

Coordinator
Jan 31, 2012 at 5:49 PM

No, that's the way to do it.