Forum Discussion

anthonyc89's avatar
anthonyc89
Copper Contributor
Aug 26, 2022
Solved

Extract Number If Text

I have data in the first column and I want a formula that will return the number before "min" in the 2nd column and the number before "secs" in the 3rd column.     MIN SEC 35 secs #N/A 35...
  • dscheikey's avatar
    dscheikey
    Aug 26, 2022

    anthonyc89 

    =IFERROR(IF(SEARCH("secs",A2),VALUE(MID(A2,IFERROR(SEARCH("min ",A2)+4,1),2))),NA())

Resources