Hi Experts,
Would need to have output as shown below. I am trying to figure out the right formula to be applied in Col "Output" to return value of ColB (those match in namedrange Members) when it finds first time match based on same value in ColA and the earliest datetime in ColC. For example, for data range with same value Tix123, at the earliest datetime in datarange ColC, output should be mectr at row6 because mectr is one of the values in "Members", listed at the earliest datetime 28/12/2015 10:59. So far, my trial and error on the formula only allows me to return the first value in ColB that matches in "Members" and ignores the rest duplicates regardless the Tix number in ColA or the datetime in ColC. Appreciate if anyone can modify my formula below to suit the criterias:-
My current formula in col "Output" : =IFERROR(IF(COUNTIF($B$2:$B$79,B2)=1,"",IF(AND((COUNTIF($B$2:B2,B2)=1)=TRUE,MATCH(B2,Members,0),MATCH(A2,$A$2:$A$79,0)),B2,"")),"")
NamedRange : "Members"
Values in "Members" are Wgbiz and mectr
(expected)
ColA ColB ColC Output
Tix123 Wgbiz 7/12/2015 19:55
Tix123 hizter 2/12/2015 9:22
Tix123 Wgbiz 2/12/2015 9:22
Tix123 mectr 29/12/2015 15:53
Tix123 spectra 25/12/2015 10:57
Tix123 mectr 28/12/2015 10:59 mectr
Tix123 Wgbiz 1/12/2015 10:13 Wgbiz
Tix123 spectra 7/12/2015 10:13
Tix999 hizter 23/12/2015 15:53
Tix999 mectr 28/12/2015 18:36
Tix999 hizter 7/12/2015 10:13
Tix999 mectr 7/12/2015 10:13 mectr
Tix999 Wgbiz 23/12/2015 15:53 Wgbiz
Would need to have output as shown below. I am trying to figure out the right formula to be applied in Col "Output" to return value of ColB (those match in namedrange Members) when it finds first time match based on same value in ColA and the earliest datetime in ColC. For example, for data range with same value Tix123, at the earliest datetime in datarange ColC, output should be mectr at row6 because mectr is one of the values in "Members", listed at the earliest datetime 28/12/2015 10:59. So far, my trial and error on the formula only allows me to return the first value in ColB that matches in "Members" and ignores the rest duplicates regardless the Tix number in ColA or the datetime in ColC. Appreciate if anyone can modify my formula below to suit the criterias:-
My current formula in col "Output" : =IFERROR(IF(COUNTIF($B$2:$B$79,B2)=1,"",IF(AND((COUNTIF($B$2:B2,B2)=1)=TRUE,MATCH(B2,Members,0),MATCH(A2,$A$2:$A$79,0)),B2,"")),"")
NamedRange : "Members"
Values in "Members" are Wgbiz and mectr
(expected)
ColA ColB ColC Output
Tix123 Wgbiz 7/12/2015 19:55
Tix123 hizter 2/12/2015 9:22
Tix123 Wgbiz 2/12/2015 9:22
Tix123 mectr 29/12/2015 15:53
Tix123 spectra 25/12/2015 10:57
Tix123 mectr 28/12/2015 10:59 mectr
Tix123 Wgbiz 1/12/2015 10:13 Wgbiz
Tix123 spectra 7/12/2015 10:13
Tix999 hizter 23/12/2015 15:53
Tix999 mectr 28/12/2015 18:36
Tix999 hizter 7/12/2015 10:13
Tix999 mectr 7/12/2015 10:13 mectr
Tix999 Wgbiz 23/12/2015 15:53 Wgbiz