+ Reply to Thread
Results 1 to 11 of 11

IF(ISERROR) error excel 2003

  1. #1
    Registered User
    Join Date
    10-19-2009
    Location
    tyne & wear
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    37

    IF(ISERROR) error excel 2003

    excvel 2003
    This is a lone workers log he phones in start time & finish time (with random calls during working day)
    Getting hash in totals cell (see attached doc) when start time entered in cells D4 F4 H4 J4 L4 N4 P4 totals cell R4 shows ###### ( works ok when finish time entered in cells E4 G4 I4 K4 M4 O4 Q4)tried ( with half hour lunch break Monday Tuesday Thursday Friday)

    If possible in place of hash in cell R4when logged in shows 1conditional format cell R4 red, then green when logs out

    tried this
    IF(ISERROR(D4:F4:H4:J4:L4:N4:P4)),E4-D4+G4-F4+I4-H4+K4-J4+M4-L4+O4-N4+Q4-P4-COUNT($D4:$G4,$J4:$M4)/2*(30/(60*24))

    But doing something wrong
    Thank you
    Ralph
    Attached Files Attached Files
    Last edited by hugrl; 01-29-2011 at 04:55 PM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: IF(ISERROR) error excel 2003

    Not sure if I understand you or not.

    If you want to colour R4 red when worker is signed in then use this formula for Conditional Formatting:

    =ISODD(COUNT(D4:Q4))

    Apply your green format
    I would suggest formatting the cell as green fill to begin with so that you don't need a second CF. So the cell is green by default and when a Time In is entered the cell turns red. And when a Time out is entered it returns to the default green.

    Your formula in R4 could be:
    =IF(ISODD(COUNT(D4:Q4)),"",SUM(E4,G4,I4,K4,M4,O4,Q4)-SUM(D4,F4,H4,J4,L4,N4,P4)-COUNT($D4:$G4,$J4:$M4)/2*(30/(60*24)))

    This will get rid of the errors you were getting
    Last edited by Cutter; 01-29-2011 at 12:26 PM.

  3. #3
    Registered User
    Join Date
    10-19-2009
    Location
    tyne & wear
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    37

    Re: IF(ISERROR) error excel 2003

    Tried your formular but now get #NAME
    =IF(ISODD(COUNT(D4:Q4)),"",SUM(E4,G4,I4,K4,M4,O4,Q4)-SUM(D4,F4,H4,J4,L4,N4,P4)-COUNT($D4:$G4,$J4:$M4)/2*(30/(60*24)))

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: IF(ISERROR) error excel 2003

    Are you sure you copied the formula correctly into the cell?

    You whould only get that error when Excel doesn't recognize the name of a function you are using. In this case IF(), ISODD(), COUNT() and SUM().

  5. #5
    Registered User
    Join Date
    10-19-2009
    Location
    tyne & wear
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    37

    Re: IF(ISERROR) error excel 2003

    yes copied formular then pasted in to cell R4 in formular bar

  6. #6
    Registered User
    Join Date
    10-19-2009
    Location
    tyne & wear
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    37

    Re: IF(ISERROR) error excel 2003

    find attached copied doc
    Attached Files Attached Files

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: IF(ISERROR) error excel 2003

    I opened your last attachment and saw the ?NAME error.
    I looked at the formula in R4 and it looked fine.
    I clicked in the formula bar and highlighted ISODD(COUNT(D4:Q4)) then hit F9. It returned a TRUE value as it should. I then hit enter and the error disappeared.

    Strange

  8. #8
    Registered User
    Join Date
    10-19-2009
    Location
    tyne & wear
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    37

    Re: IF(ISERROR) error excel 2003

    I done same but get " #name" in place of ISODD(COUNT(D4:Q4))

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: IF(ISERROR) error excel 2003

    OK, I forgot that the ISODD() was part of the Analysis Tool Pack in 2003.

    If you can add that the formula will work.

    Otherwise change ISODD(COUNT(D4:Q4))

    to

    MOD(COUNT(D4:Q4),2)


    Sorry, it's been a while since I went to 2007 and it is now included

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: IF(ISERROR) error excel 2003

    isodd is in the analysis toolpak
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  11. #11
    Registered User
    Join Date
    10-19-2009
    Location
    tyne & wear
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    37

    Re: IF(ISERROR) error excel 2003

    that worked thank you

+ Reply to Thread

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