+ Reply to Thread
Results 1 to 3 of 3

Index( Match( Small( If

  1. #1
    Registered User
    Join Date
    12-24-2013
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2010
    Posts
    2

    Index( Match( Small( If

    Hello, First Time Posting. Here is an example of my data:
    excel error.png

    I have a list of Products with their matching Annual Sales, & % sold as Our Brand. I would like this data sorted by % Our Brand, then Sales $ on a different page that will be formatted to send to a PDF.

    For example:

    Pears $10,000 99%
    Apples $1,999 100%
    Toasters $2,000 100%

    becomes

    Toasters 100% $2,000
    Apples 100% $1,999
    Pears 99% $10,000

    I need my template to be repeatable many times over so taking the data and manually sorting (which works) is not ideal.

    In the attached snapshot Column:

    W: product name (sorted by highest sales amount)
    X: Sales Amount (sorted high to low)
    y: vlookup from sales dollar to the correct % amount
    z: LARGE formula used to sort the % amount high to low
    AA: where the below formula was used to order sales dollars based on %
    AB: the correct product name

    The formula I have utilized is: =INDEX($X$1:$X$61,SMALL(IF($Y$1:$Y$61=Z1,ROW($X$1:$X$61)),ROW(1:1)),1)

    which works through the "100%" 's but then fails to 'reset' the row from row(9:9) to row (1:1) when the % changes to 98%.

    I tried inserting a if statement like this: =INDEX($X$1:$X$61,SMALL(IF($Y$1:$Y$61=Z1,ROW($X$1:$X$61)),if(z8=z7,ROW(8:8),row(1:1))),1)

    which does not work, as the row(1:1) continues to increase to match the first row(8:8) essentially nullifying it.

    Is there a way for the Array to recognize that the % amount has changed and that the row reference needs to reset to (1:1) so that it can accurately pull the sales amount?

    In the example you can see how column AA, shows Sales Totals (using the first formula) with AB showing product name (an index/match to get the correct Product Name), but at Row 10 there are errors as the 100% becomes 98%.

    If I manually adjust the formulas last Row from row(10:10) to (1:1) it then shows the correct highest Sales amount for 98%. (which would be Localized Temp Therapy, $240K).

    Thoughts/examples/answers much appreciated.

    If more info is needed please advise first time poster.

    Travis
    Attached Images Attached Images

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Index( Match( Small( If

    Rather than attaching pictures of your data, attach the Excel workbook instead.

    Pete

  3. #3
    Registered User
    Join Date
    12-24-2013
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Index( Match( Small( If

    Apologies for delay was traveling for holiday. thanks for the response.

    In the attachment, 'yellow' column has the formula in question.

    Thanksonline posting example.xlsx
    Attached Files Attached Files
    Last edited by TravCAH; 12-30-2013 at 08:48 AM.

+ 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. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  2. [SOLVED] INDEX MATCH SMALL ROW, Double criteria Lookup
    By GP_SRT in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-22-2013, 11:15 AM
  3. Duplicate values returned using Index Match Lookup with Small()
    By jacob@thepenpoint in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-18-2013, 10:48 AM
  4. Match/index/large/small - need for top and low scores
    By Lenisghio in forum Excel General
    Replies: 1
    Last Post: 05-29-2012, 10:13 PM
  5. Large, Small, Index, Match formula combos
    By taudano in forum Excel General
    Replies: 2
    Last Post: 06-30-2011, 01:53 AM

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