» Checking for Sequences within a Sorted List
CATEGORY - Excel Formula and Function
VERSION - All Microsoft Excel Versions
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")
Book Store:
Recommended Books:
- Wall Street Journal Guide to Understanding Money and Investing
- Writing Excel Macros with VBA, 2nd Edition
- Business Analysis and Valuation: Using Financial Statements, Text and Cases
- Accounting for Dummies
- Special Edition Using Microsoft Office XP
- Your First Business Plan: A Simple Question and Answer Format Designed to Help You Write Your Own Plan (3rd Ed)
No comments have been submitted.

