mart_mrexcel
Active Member
- Joined
- Aug 23, 2008
- Messages
- 310
- Office Version
- 365
- Platform
- Windows
I was trying to get the value of the header (i.e. A1:C1) where it has the latest data (regardless of the number whether high or low. The formula I used perfectly returns the correct output when my data starts from A1.
=IFERROR(INDEX($A$1:$C$1,LARGE(IF($A$2:$C$2>0,COLUMN($A$2:$C$2)),ROWS(A$1:A1))),"")
However, when I push my data away from column A (for example i start my data at column B or C), the formula gets a wrong value or it becomes blank if I push more forward.
=IFERROR(INDEX($A$1:$C$1,LARGE(IF($A$2:$C$2>0,COLUMN($A$2:$C$2)),ROWS(A$1:A1))),"")
However, when I push my data away from column A (for example i start my data at column B or C), the formula gets a wrong value or it becomes blank if I push more forward.
A | B | C | Expected Output | |
1 | 2022 | 2023 | 2024 | |
2 | 0 | 9 | ||