I don't know how Column C is derived, but it appears it can be used as a helper column.
In D2
=IF(C2="0s","- no reply -",IF(ISERROR(SEARCH("h",C2)),"0h"&C2,C2))
This adds the missing hour value, and defines "- no reply -", then we can add to the formulae in G2:H2 to handle this new list.
Another approach (see Sheet2) might be to use Column D to unify the data in Column C to a common "_d_h_m_s" format, then the formulae in F2:I2 become much simpler.
In D2 (This could be simplified for 2007 and above using IFERROR())
=IF(ISERROR(SEARCH("s",IF(ISERROR(SEARCH("d",C2)),"0d"&IF(ISERROR(SEARCH("h",C2)),"0h"&IF(ISERROR(SEARCH("m",C2)),"0m"&C2,C2),C2),C2))),IF(ISERROR(SEARCH("d",C2)),"0d"&IF(ISERROR(SEARCH("h",C2)),"0h"&IF(ISERROR(SEARCH("m",C2)),"0m"&C2,C2),C2),C2)&"0s",IF(ISERROR(SEARCH("d",C2)),"0d"&IF(ISERROR(SEARCH("h",C2)),"0h"&IF(ISERROR(SEARCH("m",C2)),"0m"&C2,C2),C2),C2))
In both examples I have added conditional formatting to highlight "no replies"
Bookmarks