I'm trying to find the earliest date in row across a range of columns if the text in the column immediate left of the matches words in a specific list
I have a table (too large to post here), that contains columns with headings including like these:
"Q1Task", "Q1TaskDate" .... "Q58Task", "Q58TaskDate", with text in the columns ending *Task and dates in those ending *TaskDate,
I can successfully count the number of times specific text from a list in a named range (called "lst_These_Tasks") appears in a given row using
, and I can find the earliest task date using
, so I thought combing the two might work, but I'm not getting anywhere. Help would be greatly appreciated!
I have a table (too large to post here), that contains columns with headings including like these:
"Q1Task", "Q1TaskDate" .... "Q58Task", "Q58TaskDate", with text in the columns ending *Task and dates in those ending *TaskDate,
I can successfully count the number of times specific text from a list in a named range (called "lst_These_Tasks") appears in a given row using
Excel Formula:
=SUM(COUNTIF(Data_Table[@[Q1Task]:[Q58TaskDate],"*"&lst_These_Tasks&"*"))
Excel Formula:
=MINIFS(Data_Table[@[Q1Task]:[Q58TaskDate],Data_Table[#Headers],[Data_Table[@[Q1Task]:[Q58TaskDate]],"*TaskDate"))
Book3.xlsx | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | Q1Task | Q1TaskDate | Q2Task | Q2TaskDate | Q3Task | Q3TaskDate | Q4Task | Q4TaskDate | Earliest Matching Task | Expected Result | lst_These_Tasks | |||
2 | This | 01 Jan 23 | Other | 01 Dec 22 | That | 02 Feb 23 | 01 Jan 23 | This | ||||||
3 | This | 02 Nov 22 | This | 04 Jul 22 | 02 Nov 22 | That | ||||||||
4 | Other | 09 Dec 22 | ||||||||||||
5 | 02 Jan | Other | Other | This | 15 Mar 23 | 15 Mar 23 | ||||||||
Sheet1 |