Social
This form does not yet contain any fields.
    Powered by Squarespace
    « ToDo Lists | Main | Merry Christmas and a Happy New Year »
    Monday
    Dec292008

    Excel Tips Regarding Formulas and Breaks

    Recently when creating an overtime pay adjustment calculator, I ran into some tricky issues in regards to the calculator to not show values when certain cells in the formula are blank.  I did this as to not confuse the end-user with numbers that are not correct without all the appropriate values filled in.

    As you can see in the above calculator, they "System Generated" values are dependant upon user required values as well as system caclulated values.  Done normally, some fields would populate with values without all the required inputs completed.

    My first try was to use the ISBLANK function.  So in cell C25, the formula was =IF(ISBLANK(C17),"",C17+C12) and this work correctly.  However, I was receiving an error in C27 with the formula IF(ISBLANK(C25),"",(C25/40)*1.5) and the only reason I could figure was due to C25 also having a ISBLANK function.  However, if I changed them both to use the LEN function, everything worked fine.  So the final formulas in each cell are as follows:

    C25 =IF(LEN(C17),C17+C12,"")
    C27 =IF(LEN(C25),(C25/40)*1.5,"")

    More tips to come as I come across them.  Have fun!

    

    Reader Comments

    There are no comments for this journal entry. To create a new comment, use the form below.

    PostPost a New Comment

    Enter your information below to add a new comment.

    My response is on my own website »
    Author Email (optional):
    Author URL (optional):
    Post:
     
    Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>