Forum Discussion

H_Lambert's avatar
H_Lambert
Copper Contributor
Sep 28, 2021
Solved

Selecting sprint with highest number from a string in a cell

Hi   I hope someone in this community can help me improve a repetitive task for our project managers.   Right to the challenge I'm facing: I have a cell that can contain one or more sprint names...
  • SergeiBaklan's avatar
    SergeiBaklan
    Sep 30, 2021

    H_Lambert 

    1) That's since SUBSTITUTE() within the formula is case sensitive, I changed on using lowercase text to ignore characters case.

    2) Formulas in Excel can't return blank values, here we return empty string "" if Sprint Week text is not within text in cell.

    = IF( ISNUMBER(SEARCH("sprint week",E2)),
     "Sprint week " &
       MAX(
         FILTERXML( "<t><s>" &
          SUBSTITUTE(
             SUBSTITUTE(
               SUBSTITUTE(LOWER(E2), "sprint week ", ""),
                ";", "|"
            ), "|", "</s><s>"
       ) & "</s></t>",
        "//s") ),
      "")

    Please check in attached.

Resources