This project has moved and is read-only. For the latest updates, please go here.

Get Cell Type?

Jan 23, 2012 at 2:15 PM
Edited Jan 23, 2012 at 3: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.


Jan 31, 2012 at 6:49 PM

No, that's the way to do it.