I know excel can calculate the number of days between two dates when the dates are properly displayed.
However, I now have an excel with dates listed as follows

pair1 20160127
pair1 20180731
pair2 20160224
pair2 20160601
pair3 20170208
pair3 20170501

How do I calculate the number of days between these pairs ?

Any suggestion or formula ?