Closed Thread
Results 1 to 1 of 1

VBA insert formula & SUM negative time format problem

  1. #1
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    VBA insert formula & SUM negative time format problem

    Hi,

    I have workbook for monthly work schedules. It should calculate working time of each employee, but It's not working - problems are negative times.

    I calculate times in range (E6:BM6)+BO5 in cell D6, and then SUM that time with D1 in cell A1 (employee working hours of month).

    BO5 is actually transferred SUM of working hours from previous months (SUM in A1), which is in my workbook included after sheet called January. Everything works fine if times are positive, but employee can also work less hour in month that he should - so in that case negative time should be displayed & calculated in SUM.

    I allready have formula for A1 which displays negative time as Text, but when that negative Text is inserted in BO5, I get #VALUE error in A1 and D1.

    Tried with this formula in D1 :

    Please Login or Register  to view this content.
    Also, this problem:

    Please Login or Register  to view this content.
    This code is inside macro "Create_months" and It should insert formula in column under "Transfer" text. On sheet 1 that is column BO, but when new months are created, column is not the same anymore as number of days in months are different, so I want to insert formula correctly in all months (in column under "Transfer" text, row 5).

    Please see attached workbook - focus on cell A1, D1 and row 5 under "Transfer" (BO5 in Sheet 1), and run Cmdbutton "Run!", I hope then you'll understand what I want !

    Any help much appreciated, thanks in advance !
    Attached Files Attached Files
    Last edited by Lukael; 06-10-2014 at 05:47 AM.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom Format - Negative Problem
    By pizzalover in forum Excel General
    Replies: 1
    Last Post: 10-27-2009, 11:44 PM
  2. Time in a negative format?
    By PCERM in forum Excel General
    Replies: 5
    Last Post: 12-28-2005, 10:10 AM
  3. How do I display time in a negative format?
    By PCERM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-28-2005, 10:00 AM
  4. Get Excel to accept negative values using time-format
    By Marcus Ahlbäck in forum Excel General
    Replies: 1
    Last Post: 11-09-2005, 07:25 AM
  5. Replies: 4
    Last Post: 04-19-2005, 01:07 AM

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