Results 1 to 6 of 6

Error with IF Statement

Threaded View

  1. #1
    Registered User
    Join Date
    05-22-2009
    Location
    Sheffield, UK
    MS-Off Ver
    Excel 2003
    Posts
    22

    Error with IF Statement

    I'm using the following formula to work out any variances on workers timesheets.
    =IF(SUM(E4:G4)=0,0,(E4+F4+G4)-(B3*4))

    E4 - Hours worked
    F4 - Holiday hours
    G4 - Sick hours
    B3 - Weekly contracted hours * weeks in the month

    This works fine until I try and adapt the formula for employees who work term time only.
    I have simply worked out which weeks they will be off and not counted those weeks in the formula.
    e.g. they will only be working 3 weeks in October so I used:
    =IF(SUM(E4:G4)=0,0,(E4+F4+G4)-(B3*3))

    This gives me the error 1.42109E-14

    Does anyone know how I can get this to work?

    Edit - I've just tried multiplying it by different numbers and it works with them all apart from the ones I need?
    Attached Files Attached Files
    Last edited by Malice; 10-01-2010 at 08:20 AM. Reason: Uploaded Sample

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