+ Reply to Thread
Results 1 to 9 of 9

Imbedding exclusion criteria into Large function

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Imbedding exclusion criteria into Large function

    Hello,

    I have a large set of data that I am trying to build KPI's off of. There are some items in the data that I need to exclude because they are giving me false results when calculating the large function to rank top 10. I used the following array formula.

    =LARGE(IF('Cleaned Data'!$F:$F<>"UNIONTOT",'Cleaned Data'!$BG:$BG),Dashboard!B9)

    This formula however only excludes one of the three items. I have tried imbedding more if statements, I tried using AND as well as OR and none of them are working. The other two items are 2338TP and 2341TP. Any help would be appreciated.

    Thanks in advance.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Imbedding exclusion criteria into Large function

    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Imbedding exclusion criteria into Large function

    Sure thanks. The file is attached. It is a trimmed down version of the file I am working on. The cleaned data tab is all of the information I am pulling from. The Dashboard tab is in the beginning phase. Do not pay attention to all of the boxes. I copied the first one over a bunch of times because I am going to be ranking different things. If I get help with the first one I can work with the rest. the box on the Dashboard in cell B6 through F18 is ranking the top malls based on total % change over prior period. There are three malls that I need to exclude because the prior period was zero so it is showing them at the top. They are the UNIONTOT, 2339TP and 2341TP.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Imbedding exclusion criteria into Large function

    Enter the formula as an array CSE

  5. #5
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Imbedding exclusion criteria into Large function

    Hello,

    Thanks. I am doing the CSE but it still isn't working. It works with the one if statement but as soon as I add the other two to exclude it ends up not giving me the right result.

  6. #6
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Imbedding exclusion criteria into Large function

    I think this may be working.

    =LARGE(IF('Cleaned Data'!$F:$F<>"UNIONTOT",IF('Cleaned Data'!$F:$F<>"2338TP",IF('Cleaned Data'!$F:$F<>"2341TP",'Cleaned Data'!$BG:$BG,""))),Dashboard!B9)

    with a CSE after.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Imbedding exclusion criteria into Large function

    I entered your formula as CSE and got this...
    C
    D
    9
    830 North Michigan Avenue
    104.41%
    10
    Mizner Park Retail @ 47.2%
    36.47%
    11
    The Shops at Fallen Timbers
    23.15%
    12
    Bellis Fair
    17.78%
    13
    Westlake Center
    16.21%


    Then I copy/pasted your data to a new sheet and sorted it, got this...
    E
    F
    3
    [BGCOLOR=#FFFF00]UNIONTOT[/BGCOLOR]
    108.81%
    4
    [BGCOLOR=#FFFF00]2341TP[/BGCOLOR]
    104.41%
    5
    [BGCOLOR=#FFFF00]MIZNERTOT2[/BGCOLOR]
    36.47%
    6
    [BGCOLOR=#FFFF00]2208TP[/BGCOLOR]
    23.15%
    7
    [BGCOLOR=#FFFF00]2126TP[/BGCOLOR]
    17.78%
    8
    [BGCOLOR=#FFFF00]4341TOTNCI[/BGCOLOR]
    16.21%
    9
    [BGCOLOR=#FFFF00]4321TP[/BGCOLOR]
    15.86%


    D9=LARGE(IF('Cleaned Data'!$F:$F<>"UNIONTOT",'Cleaned Data'!$BG:$BG),Dashboard!B9)
    CSE copied down

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Imbedding exclusion criteria into Large function

    sorry, I missed this part...
    The other two items are 2338TP and 2341TP

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Imbedding exclusion criteria into Large function

    This seems to work for you...
    =LARGE(IF(('Cleaned Data'!$F:$F<>"UNIONTOT")*('Cleaned Data'!$F:$F<>"2338TP")*8*('Cleaned Data'!$F:$F<>"2341TP"),'Cleaned Data'!$BG:$BG),Dashboard!B9)

    However, I would caution against using full column ranges in ARRAY's, they slow things down eventually

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Large function with criteria
    By EMcK in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-25-2015, 06:54 PM
  2. use large function with sum criteria
    By rishikrsaw in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-24-2014, 05:00 PM
  3. Rank formula based on a exclusion criteria.
    By Jabba69 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-08-2014, 08:39 AM
  4. Large function with if criteria
    By ronleex324 in forum Excel General
    Replies: 6
    Last Post: 03-20-2009, 02:30 PM
  5. MATCH function, exclusion question
    By nastech in forum Excel General
    Replies: 8
    Last Post: 07-20-2006, 11:55 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