» Finding the First Value in a Row and Retrieving the Header for That Column
CATEGORY - Lookup Formulas
VERSION - All Microsoft Excel Versions
Columns B:G contain the monthly payments for the first half of the year that were made for each investment in column A.
The payments for each investment may start or end on any of the months.
We want to retrieve the month on which payments for each investment started.
Solution:
Use the INDEX, MIN, IF, and COLUMN functions as shown in the following Array formula:
{=INDEX($B$1:$G$1,MIN(IF(B2:G2<>"",COLUMN($B$1:$G$1)-COLUMN(B1)+1)))}
Book Store:
Recommended Books:
- H&R Block's Just Plain Smart(tm) Tax Planning Advisor: A year-round approach to lowering your taxes this year, next year and beyond
- Harry Potter and the Order of the Phoenix (Book 5)
- Definitive Guide to Excel VBA
- How to Use Financial Statements: A Guide to Understanding the Numbers
- Microsoft Office XP Introductory Concepts and Techniques
- Microsoft Windows XP Step by Step (With CD-ROM)
No comments have been submitted.

