=ЕСЛИ(ЦЕЛОЕ(E20/24)>0;ЦЕЛОЕ(E20/24)&" дн. "&ТЕКСТ((E20-E31*24)/24;"чч:мм:сс");ТЕКСТ(E20/24;"чч:мм:сс"))
Sub ToText() ' ' ToText wyrzuc spices ' ' Selection.NumberFormat = "@" Selection.Replace What:=" ", Replacement:="", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False End Sub
Sub ToText() Dim N As Range For Each N In Cells.SpecialCells(2, 2) If N Like "[0-9]*[ ]*[0-9]" Then N.NumberFormat = "@" N.Value = CStr(Replace(N, " ", "")) End If: Next: End Sub
Sub ToText() Dim N As Range For Each N In Cells.SpecialCells(2, 2) If N Like "[0-9]*[ ]*[0-9]" Then N.NumberFormat = "@" N.Value = CStr(Replace(N, " ", "")) End If: Next: End Sub