![]() |
not copying correct value
xl2003, win xp
In cell I1 I have =IF(ISERROR(VALUE(LEFT(J1,4))),"",(VALUE(LEFT(J1,4 )))) In J1 I have a web link 12:22 I want to disply just the time in I1 but is shows as 12:14 instead of 12:22 In the cells below some of the links are like 2:10 F4 and the I cell shows the correct time 2:10 But when the time is shown as AM as in 11:30am the time shown is 11:03. Is there any way to fix this so the correct time is shown. I do not mind the format as long as it is sortable. I am trying to get a list of times in ascending order. Any help would be greatly appreciated. Ta, Martin |
not copying correct value
why not just format the cell as time. I1=J12 and format/cell/number formats. then no manipulation is required regards -- tony h ------------------------------------------------------------------------ tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074 View this thread: http://www.excelforum.com/showthread...hreadid=517522 |
not copying correct value
Hi Tony,
Some of the cells have other letters in them ie, 2:00 F4, or 11:30 AM and this mucks thing up when I go to sort them. Ta, Martin "tony h" wrote in message ... why not just format the cell as time. I1=J12 and format/cell/number formats. then no manipulation is required regards -- tony h ------------------------------------------------------------------------ tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074 View this thread: http://www.excelforum.com/showthread...hreadid=517522 |
not copying correct value
You are only taking the leftmost 4 characters instead of 5 - in your
11:30am example, your LEFT function would return 11:3, so the VALUE function would turn this into 11:03. Try changing the parameter in your LEFT function to 5 instead of 4. You might also think about appending ":00" to your LEFT function inside the VALUE function, so that it converts properly to hours:mins:sec. Hope this helps. Pete |
not copying correct value
Hi Pete,
You are right about the 4 instead of 5. And I will try the left function. Ta, Martin "Pete_UK" wrote in message ups.com... You are only taking the leftmost 4 characters instead of 5 - in your 11:30am example, your LEFT function would return 11:3, so the VALUE function would turn this into 11:03. Try changing the parameter in your LEFT function to 5 instead of 4. You might also think about appending ":00" to your LEFT function inside the VALUE function, so that it converts properly to hours:mins:sec. Hope this helps. Pete |
All times are GMT +1. The time now is 01:56 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com