I have been working on this for about a day now, searched everywhere and cannot seem to find a solution
I need to return the column header of the earliest entry which meets a particular Phase in column A, i.e. for Phase 3 I would expect formula to return May-19.
I already have these 2 formulas which both return the earliest entry without Phase:
In D13:
{=INDEX(D1:J1,SMALL(IF((D2:J10<>0),COLUMN(D1:J1)-COLUMN(D1)+1,""),1))}
In D14:
{=INDEX($D$1:$J$1,MATCH(MIN(IF($D$2:$J$10<>"",COLUMN($D$1:$J$1)-1)),COLUMN($D$1:$J$1)-1,0))}
They both return Feb-19, but I need the result to be May-19, the earliest entry for Phase 3. As soon as I include multiple criteria in the match part, by looking at all entries that equal 3 in column A i get error.
What do need to include to consider the entries in column A?
I need to return the column header of the earliest entry which meets a particular Phase in column A, i.e. for Phase 3 I would expect formula to return May-19.
Excel 2013/2016 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | Phase | Description | Activity ID | 01-Jan | 01-Feb | 01-Mar | 01-Apr | 01-May | 01-Jun | 01-Jul | ||
2 | 1 | 100 | ||||||||||
3 | 2 | 100 | ||||||||||
4 | 1 | 100 | ||||||||||
5 | 1 | 100 | ||||||||||
6 | 2 | 100 | 100 | |||||||||
7 | 3 | 100 | ||||||||||
8 | 1 | 100 | ||||||||||
9 | 3 | 100 | 100 | |||||||||
10 | 3 | 100 | ||||||||||
11 | ||||||||||||
12 | ||||||||||||
13 | 01-Feb | |||||||||||
14 | 01-Feb | |||||||||||
Sheet1 |
I already have these 2 formulas which both return the earliest entry without Phase:
In D13:
{=INDEX(D1:J1,SMALL(IF((D2:J10<>0),COLUMN(D1:J1)-COLUMN(D1)+1,""),1))}
In D14:
{=INDEX($D$1:$J$1,MATCH(MIN(IF($D$2:$J$10<>"",COLUMN($D$1:$J$1)-1)),COLUMN($D$1:$J$1)-1,0))}
They both return Feb-19, but I need the result to be May-19, the earliest entry for Phase 3. As soon as I include multiple criteria in the match part, by looking at all entries that equal 3 in column A i get error.
What do need to include to consider the entries in column A?