A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
When you state "determine whether they are within a certain percentage of each other", it would help to know "a percentage of what"?. Simple math would dictate that dividing one number by the other would approach 100% as the number neared each other (from 0 to 100% one way and from ∞ to 100% from the other way. To keep in one direction you could apply MIN() and MAX().
=MIN(a1, b1)/MAX(a1, b1)
That would approach 100% as the two numbers became close to each other. To get the percentage of difference rather than the percentage of closeness subtract that from 1.
=1-MIN(a1, b1)/MAX(a1, b1)