+ Reply to Thread
Results 1 to 4 of 4

formula malfunction

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    formula malfunction

    Hello:

    Please refer to attached file, Sheet3
    Here in this sheet, i have formuals to calculate hours worked for certain period between column H and I for employees in cell K1:Q1, data used
    are from column A:E which are imported from Sheet1

    Not sure but its giving zero as shown.
    Please help to identify the problem.


    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: formula malfunction

    Your Hours (col E) is text not time/value

    In fact C:E are all text
    So is A
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: formula malfunction

    For col A...
    1. Highlight the date range
    2. Select Text2Columns (data tab)
    3. click Next/Next, check Date and select the date format you need
    4. Click OK

    For Col E, use this, copied down...
    E2=LEFT(D3,2)&":"&RIGHT(D3,2)-LEFT(C3,2)&":"&RIGHT(C3,2)
    Format as needed

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: formula malfunction

    The problem appears to be that ALL the data is text: converting column A to Dates and column E to Number solved the problem; use "Data"==>"Text to Columns" to convert.

    I think I would be correct in saying this is not the first time this problem has occurred: where does the data originate?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Sum formula malfunction
    By rizmomin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-04-2017, 05:40 AM
  2. formula malfunction
    By tjbe63 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-26-2016, 11:59 AM
  3. formula malfunction
    By sdtsdt in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-16-2015, 01:31 PM
  4. [SOLVED] excel adding formula malfunction
    By Vit in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-20-2014, 05:24 PM
  5. Multiple Mode Formula Malfunction. Please Help?
    By pfallonj in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-13-2012, 07:58 PM
  6. Macro malfunction
    By jw01 in forum Excel General
    Replies: 19
    Last Post: 03-27-2011, 01:50 PM
  7. Formula malfunction
    By jerry4all in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-06-2010, 10:06 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