[Excel]Reset/replace seconds to zero
Issue
I have an Excel 2007 file which has in sheet1 the time people connects to the system with the following format: 11:55:31 AM and I want to reset all the seconds to zero in sheet2, considering that I have column with all the time start from 0:00:00 to 23:59:00 (seconds always set to zero) and I need to count for each time lap how many people connects to the system depending on the time which in sheet1
Solution
Suppose you have data in Sheet1!CellA1:A36. Now in Sheet two Column A write 0:00:00 to 23:59:00 values ....... now in sheet2!B1 write this formula
=COUNTIF(Sheet1!$A$1:$A$100,"<="&A2)-COUNTIF(Sheet1!$A$1:$A$100,"<="&A1)
Notes
Thanks to
mubashir aziz, for his solution on the forum.