Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Martin Wheeler
 
Posts: n/a
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tony h
 
Posts: n/a
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Martin Wheeler
 
Posts: n/a
Default 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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default 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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Martin Wheeler
 
Posts: n/a
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running auto correct on startup? Mitch Excel Discussion (Misc queries) 1 November 28th 05 06:38 PM
How to change column letters to correct ones in many formulas automatically? Dmitry Kopnichev Excel Worksheet Functions 7 October 13th 05 09:52 PM
If correct, add 1 sparky3883 Excel Worksheet Functions 2 October 11th 05 07:52 PM
zero value when copying cells between worksheets joe Excel Discussion (Misc queries) 1 August 9th 05 08:51 PM
Vlookup, What is correct formula for problem below? Bill R Excel Worksheet Functions 7 August 2nd 05 04:01 AM


All times are GMT +1. The time now is 09:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"