|  

» Checking for Sequences within a Sorted List

Problem:

List1 (column A) is a series of numbers that has been sorted in ascending order.
We want to create a formula that will check whether each number is part of a consecutive sequence.

Solution:

Use the IF and OR functions as shown in the following formula:
=IF(OR((A2+1=A3),(A2-1=A1)),"Sequential","Not Sequential")

Rate This Tip
12 34 5
Rating: 3.67     Views: 12233
No comments have been submitted.
Click here to post comment
For Registered Users
Name
Comment Title
Comments