Hi there, and welcome to the forum!
Try this (row 2)
=IF(AND(A2>0,B2>0),A2-B2+1,0)
Copy that down column C and you should only have numbers in rows that actually have page number data. You can then total it using a SUM formula and you should be good to go.![]()
Bookmarks