+ Reply to Thread
Results 1 to 5 of 5

not copying correct value

  1. #1
    Martin Wheeler
    Guest

    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. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187
    why not just format the cell as time.

    I1=J12
    and format/cell/number formats. then no manipulation is required

    regards

  3. #3
    Martin Wheeler
    Guest

    Re: 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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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. #4
    Pete_UK
    Guest

    Re: 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. #5
    Martin Wheeler
    Guest

    Re: 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" <[email protected]> wrote in message
    news:[email protected]...
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1