• Summing nested IF statements gives strange answer

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Summing nested IF statements gives strange answer

    Author
    Topic
    #495034

    Excel 2010:

    I have 14 rows that contain this IF statement relative to the row:=IF(C8=Holidays!$D$6,”9:00″,IF(C8=Holidays!$D$10,”9:00″,IF(C8=Holidays!$D$11,”9:00″,IF(C8=Holidays!$D$12,”9:00″,IF(C8=Holidays!$D$15,”9:00″,IF(C8=Holidays!$D$16,”9:00″,IF(C8=Holidays!$D$17,”9:00″,IF(C8=Holidays!$D$18,”9:00″,” “))))))))

    If the dates in column C are equal to the dates in the table Holidays, I want 9 hours inserted into cells in column N. Then I have this formula =SUM(N8:N22) to calculate the number of total “holiday hours” in cell J 30

    My problem is, the sum is way off. for example if two of the cells get 9:00 hours inserted the sum will be 432. Why does adding 9 + 9 give me 432?
    37144-timesheet

    Viewing 2 reply threads
    Author
    Replies
    Viewing 2 reply threads
    Reply To: Summing nested IF statements gives strange answer

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: