+ Reply to Thread
Results 1 to 5 of 5

Formula to calculate hours and ignore text Document Attached

  1. #1
    Registered User
    Join Date
    02-04-2014
    Location
    Manchester, England
    MS-Off Ver
    Excel 2013
    Posts
    7

    Post Formula to calculate hours and ignore text Document Attached

    Hi Guys,

    I have an excel sheet for my staff at work, now the cells calculate automatically the worked hours based on a time entry.

    When i have somebody off or on holiday etc i want to be able to just type it in the cell, however due to the current formula i get #value! error in the calculation cell which throws everything off.

    How can i generate a formula to ignore a cell and leave it at 0.0 if i have a text entry?

    I have attached a sample document for you to have a look at how it's donev2.xls

  2. #2
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: Formula to calculate hours and ignore text Document Attached

    Enter this formula in cell D12, and copy across to J12:

    Please Login or Register  to view this content.
    Now copy this range D12:J12, to each of the other Hours Worked rows in the table.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formula to calculate hours and ignore text Document Attached

    If you are using Excel 2013, put this in D18 and save files as XLSX.
    =IFERROR((D17-D16)*24,"")
    If you need Excel 2003 backward compatability, use this and save as XLS
    =IF(ISERROR((D17-D16)*24),"",(D17-D16)*24)

    Use the same error trap in ALL other similar formulae.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    02-04-2014
    Location
    Manchester, England
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Formula to calculate hours and ignore text Document Attached

    Thanks guys,

    Its worked a treat.. Saved me a lot of writing by hand!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formula to calculate hours and ignore text Document Attached

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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. Replies: 14
    Last Post: 10-08-2014, 11:31 PM
  2. Formula to calculate regular hours and overtime hours
    By judojames in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2014, 05:30 PM
  3. [SOLVED] HELP! How to adjust headcount formula in attached document?
    By PWM in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2014, 08:14 PM
  4. [SOLVED] Formula to calculate number and percentage in the attached raw data
    By sarat47 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2014, 12:31 AM
  5. Worksheet Attached - Formula needed to calculate commissions vs date and Emp ID #
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-02-2013, 12:36 AM
  6. Calculate hours worked excluding certain text from formula
    By MaxwellSLC in forum Excel General
    Replies: 5
    Last Post: 03-30-2010, 02:35 AM
  7. Replies: 22
    Last Post: 05-03-2009, 07:29 PM

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