» Retrieving the Column Header of the Next Non-Blank Cell in a Row
CATEGORY - Lookup Formulas
VERSION - All Microsoft Excel Versions
Problem: Row 2 lists amounts payable over a twelve month period.
A blank cell in the row indicates that no payment is due that month.
We want to create a new row that, for each month, will display the name of the month in which the next payment is due.
Solution:
Use the INDEX, MATCH, MIN, IF, and COLUMN functions as shown in the following Array formula:
{=INDEX(C1:M1,MATCH(MIN(IF(C2:M2<>" ",COLUMN(C2:M2))),COLUMN(C2:M2)))}
Enter the formula in cell B3 and copy/paste it across the row from cell B3 up to cell M3.
Book Store:
Recommended Books:
- Accounting Principles, with CD, 6th Edition
- The Basics of Finance: Financial Tools for Non Financial Managers
- Investing for Dummies, Third Edition
- Rich Dad's Guide to Investing: What the Rich Invest in, That the Poor and the Middle Class Do Not!
- Special Edition Using Microsoft Access 2002
- The Accounting Game : Basic Accounting Fresh from the Lemonade Stand
No comments have been submitted.

