Check excel cell is formatted or not

How to check excel cell value is formatted or not if formatted, get entire cell value.