Forum Discussion
Andrea_Schutt
Aug 24, 2021Copper Contributor
vlookup between two times and return a corresponding value
I am trying to lookup values between two values to return a corresponding result. I have a time value of 00:00:23 in cell G4 and want to create a formula to make it so that any time value between 00...
- Aug 24, 2021
To convert text to time it's not enough to change format, you need to re-enter the values. Easiest way - apply Time format to column G; select it; Data->Text to Columns-> select Fixed Width->Finish.
Andrea_Schutt
Aug 24, 2021Copper Contributor
That's it. It's a problem with the Time cell (column G) not displaying as a time value. For whatever reason I'm having trouble getting the cell to format correctly as a time rather than text. I discovered that if I delete the first "0" of the two digit hour then it formats, but that is quite time consuming to do manually.
SergeiBaklan
Aug 24, 2021Diamond Contributor
To convert text to time it's not enough to change format, you need to re-enter the values. Easiest way - apply Time format to column G; select it; Data->Text to Columns-> select Fixed Width->Finish.
- Andrea_SchuttAug 24, 2021Copper ContributorWow! This fixed everything! Thank you so much Sergei!
- SergeiBaklanAug 24, 2021Diamond Contributor
You are welcome, glad it helped