» Checking For Sequences Within A Sorted List
CATEGORY - Excel Formula and Function
VERSION - All Microsoft Excel Versions
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")
Example:
List1___Result
1_______Sequent
2_______Sequent
4_______Not Sequent
6_______Sequent
7_______Sequent
9_______Not Sequent
11______Sequent
12______Sequent

Book Store:
Recommended Books:
- The Accounting Game : Basic Accounting Fresh from the Lemonade Stand
- Definitive Guide to Excel VBA
- Millionaire Real Estate Mentor : The Secrets of Financial Freedom through Real Estate Investing
- Positioning: The Battle for Your Mind
- Business Plans Kit for Dummies (With CD-ROM)
- The 22 Immutable Laws of Branding
No comments have been submitted.


