+ Reply to Thread
Results 1 to 7 of 7

Creating a MAX IF or LARGE IF wildcard formula

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Shanghai, China
    MS-Off Ver
    Excel 2010
    Posts
    8

    Question Creating a MAX IF or LARGE IF wildcard formula

    Hi everyone, i'm new to this forum, but i'm not new to Excel, so here's my first post. I want to create a formula for MAX IF or LARGE IF type formula, that's also a wildcard search. I can do the IF wildcard formula, and i can do a MAX IF or LARGE IF using an array, but i can't seem to get the 2 combined. Basically, i have Column A full of text data which are part numbers, and a lot of the time an individual cell contains multiple part numbers. in column B, i have numeric values, and i want to find the largest value in column L from where the cells in column C contain a certain set of text.

    So in the attached example, the formula with a search for A or C would yeild 240, for B would be 72, and D would be 100.
    To make matters more complicated, i want to enter the search value in cells, not hard coded in to the formula, and i dont want to manipulate the original dataset, as this is produced externally, so i'd have to do this everytime.

    Hope someone can help me.
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Creating a MAX IF or LARGE IF wildcard formula

    Try this array formula

    Please Login or Register  to view this content.
    where G1 holds the value that you are searching viz. A,B,C,D

    Confirm with Ctrl+Shift+Enter
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Creating a MAX IF or LARGE IF wildcard formula

    try this

    Please Login or Register  to view this content.
    F2 is the cell you put your search in to

    this is array entered (Control+Shift+Enter)

    darn beaten to it again
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Creating a MAX IF or LARGE IF wildcard formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Creating a MAX IF or LARGE IF wildcard formula

    Please see the attached file
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-19-2013
    Location
    Shanghai, China
    MS-Off Ver
    Excel 2010
    Posts
    8

    Cool Re: Creating a MAX IF or LARGE IF wildcard formula

    Perfect. That's just the ticket.
    I just need to get my head around exactly how that works to i can get do it myself next time!

    Thanks very much.

  7. #7
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Creating a MAX IF or LARGE IF wildcard formula

    =SEARCH(F2,A1:A4) creates an array of numbers (where they are in the cell) or errors where there is no match.

    =ISNUMBER(Above) checks to see if its a number and creates an array of TRUE / FALSE values

    this can then be used either with the if or the way 6th sense used it which then creates an array of blanks or number results.

    max then picks out the highest value.

    see attached book for a clearer explanation

    Book1 (1).xlsx

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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