+ Reply to Thread
Results 1 to 8 of 8

Advanced Index/Match Functions

  1. #1
    Registered User
    Join Date
    08-06-2016
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    7

    Advanced Index/Match Functions

    Hi everyone,

    So I have created this advanced spreadsheet for the nursery I am working for. This is part of a market analysis for the business plant I am writing.

    I have a list of over 1000 plants in the A column, followed by 8 nurseries (including the one I am working for) in Columns D to K. Each of those columns has a unique fill color and an X in the cell, with the text colored the same as the fill color. This X I am using as a cell reference for the plant name and the nursery it's available from to make the other formulas I have running.

    I already have some cool formulas running showing the tally of plants and market percent for entire nurseries, plant types, and even plant genus. These statistics I will be using to write in the business plan to show our current and potential markets.

    What I am trying to do now is develop a formula that will list only the plants that are found in all of the 8 nurseries (e.g. Themeda australis, which all nurseries grow). I believe that I should be using a combination of Index and Match functions, but I cannot seem to get the right combination going to make it work.

    I would be greatly appreciative of any help.

    Many thanks in advance,

    Richard.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Advanced Index/Match Functions

    Hello,

    Add another column to your data table and use CountA() to count the values in columns D to K. Start in row 2 (assuming row 1 has labels) and copy down.

    =Counta(D2:K2)

    Then filter the table by that column and show only the rows where the count is 8.

    This will be easier with the data in an Excel Table object (insert > Table) or with Autofilter turned on, so you can see the dropdown with the filter commands in the header row.

    cheers, teylyn

  3. #3
    Registered User
    Join Date
    08-06-2016
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    7

    Re: Advanced Index/Match Functions

    Thanks for that! That gives me much to work on. I can see it coming back that only 4 plants from ~1000 are shared by all nurseries. I can see that I can also use this to find other plants that are shared by 7, 6 or any other combination of nurseries.

    Is there a way I can generate the same response, but by using a formula? I am trying to learn more about writing Excel formulas. I think that it should go something like (written in Column M):

    =INDEX(A5:A1090,MATCH(8,L5:L1090))

    Where A is the column with plant names, and L is where the CountA results are, with 8 being the count of X's.

    This, however, is not generating a response that I want, responding with the last plant on the list that is found in 1 nursery only.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Advanced Index/Match Functions

    A lookup formula like Vlookup or the Index/Match combo will only ever return one cell value, never a list. Also, if you use Match without the third parameter, that third parameter defaults to 1 and the list needs to be sorted, otherwise the returned result may be totally wrong. As a rule, you should never omit the third parameter, so you don't accidentally apply the wrong one. Same goes for Vlookup with the fourth parameter. If it is omitted, it defaults to TRUE, which requires the data to be sorted. Always use the fourth parameter and set it to the desired value.

    If you want to anlyse your data set you may want to look into pivot tables and slicers. If you are using Office 2016, as you profile incicates, you can also use slicers with Excel Table objects. The insights from filtering with slicers can already be totally awesome.

  5. #5
    Registered User
    Join Date
    08-06-2016
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    7

    Re: Advanced Index/Match Functions

    Thanks for the reply. It seems as if I have much to learn.

    Slicers, hey? I just Googled that term and it's come up with a whole host of functions from Office 2016 that I had not been aware of. It has given me much to digest.

    Again, thank you for your replies.

  6. #6
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: Advanced Index/Match Functions

    Hi,
    You can use this array formula (introduce with Ctrl+Shift+Enter)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    see attachament
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-06-2016
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    7

    Re: Advanced Index/Match Functions

    Wow, dude. That formula is pretty sublime. And I can see how it works from the attachment you've provided. I can see that the end of the formula you've put the ROW(A1) without the absolute cell reference, ensuring that when you copy it down it will find the next result from the array. I believe that the central part ROW($A$1:$A$8) lists the array formula for the first 8 rows of column 8.

    There are some functions here that go over my head.The MMULT function is new to me. After Googling it I can see that it finds the "matrix product of two arrays".

    But why put the "--" after that? I am not familiar with that function or how it makes the formula work.

    Also, when I try to adapt this into my own workbook, it doesn't seem to work...

    I'm going to have to study this some more.

    Again, thanks for the advice.

  8. #8
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: Advanced Index/Match Functions

    --({TRUE,FALSE,TRUE})►{1,0,1}

    for easy adapt define 2 names:
    1. "plants" with
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and
    2. "nursNr" with
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This 2 formulas must be adapted for your workbook. See my atachament.

    For filtered list put this formula and drag down and if it`s necessary, now can drag to right
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Change ";" with ","
    Attached Files Attached Files

+ 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. Advanced INDEX/MATCH Formula - is this possible?
    By h2holbro22 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-29-2016, 01:42 AM
  2. Advanced If or Match(index) vba... not really sure.
    By TexasBobcat in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-04-2015, 03:09 PM
  3. Replies: 3
    Last Post: 01-16-2015, 03:59 PM
  4. [SOLVED] Advanced Match Help (possibly Index Match)
    By dfxryanjr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-08-2013, 09:13 AM
  5. Replies: 7
    Last Post: 08-10-2010, 04:05 PM
  6. advanced lookup/index-match problem
    By tx12345 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2006, 12:40 PM
  7. advanced lookup/index-match problem
    By tx12345 in forum Excel General
    Replies: 1
    Last Post: 08-10-2006, 11:50 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