Forum Discussion
Mike Smith
Aug 20, 2022Copper Contributor
Problems sorting by time
I have a spreadsheet with a Time column which is a time range. The input form assumes time is AM unless it has a "p", as shown below. I've tried online solutions, but everything I've tried results in...
- Aug 20, 2022
You may add helper column
with formula
=TIMEVALUE( SUBSTITUTE( TRIM( LEFT(B3, FIND("-",B3)-1 ) ), "p", " pm") )
after that select both, Data->Sort, sort by column Two
SergeiBaklan
Aug 20, 2022Diamond Contributor
You may add helper column
with formula
=TIMEVALUE( SUBSTITUTE( TRIM( LEFT(B3, FIND("-",B3)-1 ) ), "p", " pm") )
after that select both, Data->Sort, sort by column Two
Mike Smith
Aug 21, 2022Copper Contributor
Thanks so very much for that formula. Found I needed to create a column for it, then populated the formula in the cells. It was so good to see a correct sort!
Mike