+ Reply to Thread
Results 1 to 3 of 3

Nested Functions

  1. #1
    Registered User
    Join Date
    10-05-2012
    Location
    GB
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Nested Functions

    Hello All

    I am trying to create a comprehensive spreadsheet and came across a problem.
    I am would like to have Excel calculating lunch breaks within a more complex Function. Please see the function below.

    The first part works a treat, however, the second part gives me headache. If the first part returns TRUE, I would like to Calculate the equation and deduct 0.5 for a luncgh break but only if the sum of the equation is greater then 6. I hope that makes sense and someone can help.

    =IF(OR(C5="A/L",C5="S/L",C5="D/O",C5="B/H",C5="S/D"),7.5,IF(C5-C4<=6,SUM(C5-C4-0.5,SUM(C5-C6))))

    Thank you for any attempts.

    Frank

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Nested Functions

    Hi

    =IF(OR(C5="A/L",C5="S/L",C5="D/O",C5="B/H",C5="S/D"),7.5,IF(C5-C4<=6,SUM(C5-C4-0.5,SUM(C5-C6))))

    Frank, in your formula you show to us that in C5 you have Text values. Then in your second part you use IF(C5-C6.....

    Can you upload a small sample workbook,pls?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    10-05-2012
    Location
    GB
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Nested Functions

    It just clicked into place and I found the solution. I missed a bracket (How pathetic)
    Thank you Fotis

+ 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