Forum Discussion
How to sort a Time Duration
- 7 years ago
I solved my problem by fixing the formatting of the Value. I added a second "0" to the day portion of the following code and it worked.
FORMAT(dayNo,"#00")&" day "&FORMAT(hourNo,"#00")&":"&FORMAT(minuteNO,"#00")&":"&FORMAT(secondNo,"#00")
Thank you for your quick response, but that did not work. It still sorted it in the same order. If you notice in the picture, it is going from 1 day, 11 day, 12, 2 day. I need it to go 1 day, 2 day, 11 day, 12 day. Would it be better if I used the mintes column that I used to format my duration in the Final Rank column instead???
I solved my problem by fixing the formatting of the Value. I added a second "0" to the day portion of the following code and it worked.
FORMAT(dayNo,"#00")&" day "&FORMAT(hourNo,"#00")&":"&FORMAT(minuteNO,"#00")&":"&FORMAT(secondNo,"#00")