+ Reply to Thread
Results 1 to 3 of 3

LARGE, IF array formula with several criteria

  1. #1
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    LARGE, IF array formula with several criteria

    Hi all,

    I have a LARGE, IF array formula with several criteria that returns certain data depending on the criteria selected from my Form Control Combo Box. One of my criteria is looking at the province/prefecture of a country and then returning data for each. So far so good. Though, I also need the data for the whole (!) country, thus ignoring the prefecture if "Total Japan" is selected from my combobox. The 'main' array formula is the following:

    Please Login or Register  to view this content.
    Since I have many (!) IF statements already (not illustrated in the above), I cannot use another otherwise the formula would exceed the maximum allowed limit. Hence, I need to somehow get Excel to return data for ALL prefectures whenever $Q$36="TOTAL JAPAN" within the IF statement:

    Please Login or Register  to view this content.
    I tried to have

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    whenever Total Japan is selected in my combobox in order to have Excel ignore the prefecture, but that doesn't seem to work, it only works with SUMIF and SUMPRODUCT formulas as far as I am concerned. Any tips?

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,003

    Re: LARGE, IF array formula with several criteria

    Please attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    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,917

    Re: LARGE, IF array formula with several criteria

    Quote Originally Posted by esbencito View Post
    ...Since I have many (!) IF statements already (not illustrated in the above), I cannot use another otherwise the formula would exceed the maximum allowed limit.
    While I agree that using too many IF's can make things hard to follow, I doubt you would exceed the limit. xcel 2007 (I think) allowed only 7 nested IF's, but that limit was lifted in later versions

    1 way to reduce IF's is to use a helper column(s) to do some of the work for you, so maybe have a small formula that will pull out only certain data based on criteria you select?
    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

+ 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] Look within a large array of values for a small array that meets a certain criteria
    By sean2222 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-02-2016, 11:41 AM
  2. [SOLVED] Reversing large-if array formula
    By lostest in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-30-2015, 06:06 PM
  3. Alternative to using an array formula for {=LARGE(IF(... function
    By Rabiah in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 05-30-2014, 05:52 AM
  4. Macro which replace large array formula
    By ALEZI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2014, 02:32 PM
  5. [SOLVED] Sum Large values along with Count Condition - Array Formula
    By acsishere in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-28-2013, 05:45 PM
  6. Adding Array Large Formula To Cell Via VBA
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2011, 02:45 PM
  7. MS Excel 2002 Array Formula =large
    By fortbibby in forum Excel General
    Replies: 2
    Last Post: 01-10-2011, 04:10 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