Results 1 to 5 of 5

Thread: Want to page negative time via paste special in Excel

  1. #1
    Join Date
    Feb 2012
    Posts
    10

    Want to page negative time via paste special in Excel

    How can I caste an negative time for example -5:00 from one excel sheet to a other sheet. When I paste "-5:00", I'll get "-0,208333333333". Currently, I use the PateSpecial-Function, xlPasteValues. What con I do.

  2. #2
    Join Date
    Jul 2011
    Posts
    640

    Re: Want to page negative time via paste special in Excel

    Your result is 5 hours as a proportion of a day displayed as a number, but I don't see how you get a negative time in the first place. Negative times are displayed as ####### in Excel.

  3. #3
    Join Date
    Jun 2011
    Posts
    635

    Re: Want to page negative time via paste special in Excel

    XL has no problem displaying negative times using the 1904 date system (MacXL default) - choose Tools/Custom/Calculation, check the 1904 Date system checkbox. I didn't realize that. Thanks for the pointer. However, I still can't get negative times to display as negative numbers. -05:00:00 is shown in the formula bar, but 05:00:00 appears in the cell (Windows XL 2002).

  4. #4
    Join Date
    Jun 2011
    Posts
    487

    Re: Want to page negative time via paste special in Excel

    Presumably, you're using PasteSpecial - Values because it's a formula you have copied, and you want the result, not the formula. If so, it's not pasting the time formatting. So you're getting the time value, unformatted. Add PasteSpecial xlPasteFormats after your PasteSpecial xlPasteValues.

  5. #5
    Join Date
    Jun 2011
    Posts
    798

    Re: Want to page negative time via paste special in Excel

    Ah, that was it. I was using the default time format, which appears to be the only one with this problem. However I can't input a -ve time eg -5:00. I can only get the negative time by entering a -ve number then changing the format to time. I am not too worried about this as I've never needed a -ve time. I am just curious s to why there are these quirks.

Similar Threads

  1. Replies: 5
    Last Post: 26-04-2012, 04:16 AM
  2. Replies: 1
    Last Post: 14-03-2012, 01:08 PM
  3. Replies: 2
    Last Post: 24-02-2012, 07:22 PM
  4. Problem in macro for special paste
    By RyanInt in forum Software Development
    Replies: 3
    Last Post: 06-11-2009, 12:10 AM
  5. excel pmt gives me negative value
    By Nadeem in forum Software Development
    Replies: 3
    Last Post: 29-05-2009, 02:38 PM

Tags for this Thread

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
  •  
Page generated in 1,713,310,372.98758 seconds with 17 queries