Hello everyone,
I have this formula:
=IF(ISERROR(SEARCH(","; D2)); D2; INDEX(FILTER(Seasons!$Q:$Q; Seasons!B:B=Stats!B2); COUNTA(FILTER(Seasons!$Q:$Q; Seasons!B:B=Stats!B2))) & " - " & INDEX(FILTER(Seasons!$Q:$Q; Seasons!B:B=Stats!B2); 1))
And the data in D2 is:
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
And the result is:
2007 - 2000
(basically the formula returns the last year followed by dash and the first year)
Now, how can this formula be changed so that I get "2000 - 2007", instead of "2007 - 2000"?
This formula is also returning a single value with no dash if that's the case (as desired)
Thanking you in advance
I have this formula:
=IF(ISERROR(SEARCH(","; D2)); D2; INDEX(FILTER(Seasons!$Q:$Q; Seasons!B:B=Stats!B2); COUNTA(FILTER(Seasons!$Q:$Q; Seasons!B:B=Stats!B2))) & " - " & INDEX(FILTER(Seasons!$Q:$Q; Seasons!B:B=Stats!B2); 1))
And the data in D2 is:
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
And the result is:
2007 - 2000
(basically the formula returns the last year followed by dash and the first year)
Now, how can this formula be changed so that I get "2000 - 2007", instead of "2007 - 2000"?
This formula is also returning a single value with no dash if that's the case (as desired)
Thanking you in advance