Results 1 to 12 of 12

Nesting issues

Threaded View

  1. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Nesting issues

    Thank you for your explanation, but not everything is clear to me.
    For the following questions I refer to your formula in cell C4.
     1: '=if(d4="",0,if(d4="hol",0,if(d4="mu",0,if(d4="max",0,if(d4="off list",0,if(d4="rdo",8,
     2: if(d4="10list",                                                        (averageifs($b4:$p4,$b$3:$p$3,"ot w",$b$2:$p$2,"12",$b4:$p4,">2.00")-$b4),
     3: if(or(d4={"ref","otdt"},and($b$2:$p$2,"12",$b$3:$p$3,"ot w",">2.00")), (averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">2.00")-$b4),
     4: if(or(d4={"ref","otdt"},and($b$2:$p$2,"10",$b$3:$p$3,"ot w",">2.00")), (averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">2.00")-$b4),
     5: if(or(d4={"ref","otdt"},and($b$2:$p$2,"12",$b$3:$p$3,"ot w","<=2.00")),(averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">0.17",$b$3:$p$3,"ot w",$b4:$p4,"<=2.00")-$b4),
     6: if(or(d4={"ref","otdt"},and($b$2:$p$2,"10",$b$3:$p$3,"ot w","<=2.00")),(averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">0.17",$b$3:$p$3,"ot w",$b4:$p4,"<=2.00")-$b4),
     7: if(or(d4={"lv","sc"},   and($b$2:$p$2,"12",$b$3:$p$3,"ot w",">2.00")),  averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">2.00"),
     8: if(or(d4={"lv","sc"},   and($b$2:$p$2,"10",$b$3:$p$3,"ot w",">2.00")),  averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">2.00"),
     9: if(or(d4={"lv","sc"},   and($b$2:$p$2,"12",$b$3:$p$3,"ot w","<=2.00")), averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">0.17",$b4:$p4,"<2.01"),
    10: if(or(d4={"lv","sc"},   and($b$2:$p$2,"10",$b$3:$p$3,"ot w","<=2.00")), averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">0.17",$b4:$p4,"<2.01"),0)))))))))))))))
    Looking at your formula it seems that if the code is not 10LIST you don't want to distinguish between the 10's and 12's.
    After all, the averages in lines 3 and 4 are the same.
    This also applies to the averages in lines 5 and 6, the averages in lines 7 and 8 and the averages in lines 9 and 10.
    Is that right?

    I don't understand when exactly which average should be calculated.
    Your condition states something like >2.00 and <= 2.00, but it is unclear to me what should be >2.00 or less than 2.00. [In case of the formula in C4].
    Even if the reference is to multiple numbers, what should happen when part of those numbers is greater than 2 and another part is less than 2?
    After all, only 1 average can be calculated by the formula.

    In addition, the conditions you mean must be written down in a completely different way.
    The condition in line 3 always returns TRUE (to my surprise, because I expected an error).
    Last edited by HansDouwe; 09-07-2023 at 11:36 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 05-10-2021, 11:21 AM
  2. Urgent nesting calculation issues
    By asills03 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-03-2018, 04:34 AM
  3. [SOLVED] Excel to Outlook Calendar date duplication issues and blank cells causing issues
    By singerbatfink in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 02-11-2016, 07:57 AM
  4. Replies: 4
    Last Post: 02-26-2015, 06:10 AM
  5. Nesting Issues
    By demoman369 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2014, 06:59 PM
  6. Replies: 3
    Last Post: 07-16-2014, 01:50 AM
  7. Nesting issues
    By Shmem in forum Excel General
    Replies: 12
    Last Post: 11-12-2009, 08:07 PM

Tags for this Thread

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