+ Reply to Thread
Results 1 to 8 of 8

Can't find corrext Index Match formula where different options have same sub-options

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Can't find corrext Index Match formula where different options have same sub-options

    As shown on the attached, pricing list has four criteria, three (Supplier, Product Types and Finishes) are in columns, and the Size is in rows.

    Challenge is that each Product Type has the same two choices for Finish.

    Currently calculating the correct price by "nesting ifs" matching every permutation of Supplier, Type, Finish and Size to each column of prices.

    I know this can be done by one overall Index/Match, but just can't work out the correct structure!

    Hope someone can see the wood for the trees.

    Any suggestions, pointers and solutions are welcome as ever.

    Ochimus
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Can't find corrext Index Match formula where different options have same sub-options

    Four questions:

    1. Why is the label at the top of the table SUPPLIER ! - is this a typo (should be 1?) or significant in some way?

    2. Does the solution need to handle other supplier tables that we cannot see in the sample file? If so, how/where are they arranged?

    3. Does the width field need to be taken into account?

    4. What's the expected outcome with the scenario in your sample file?
    Last edited by AliGW; 10-27-2016 at 06:09 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: Can't find corrext Index Match formula where different options have same sub-options

    You can put this formula in M12:

    =INDEX(B5:I13,IF(M8*M10/1000000<A5,1,MATCH(M8*M10/1000000,A5:A13)+1),MATCH(M4,B3:I3,0)+(M6="Premium"))

    I've assumed that you want to match the area with the next highest value in the table.

    Hope this helps.

    Pete

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Can't find corrext Index Match formula where different options have same sub-options

    5. Why to the "Type" headers have an apostrophe before the number yet the type drop down values do not?

    BSB

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

    Re: Can't find corrext Index Match formula where different options have same sub-options

    Oh yes, I forgot to mention that you need to remove the apostrophes from in front of the numbers in cells B3:H3.

    Thanks for reminding me, BSB.

    Pete

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Can't find corrext Index Match formula where different options have same sub-options

    I have just spotted that, too, BSB!

    6. Merged cells are a pain - can we dispense with them?

    My initial instinct is that I would start by creating named ranges for each supplier which could be used in an area statement in an INDEX MATCH or with the INDIRECT function.

  7. #7
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: Can't find corrext Index Match formula where different options have same sub-options

    Works perfectly, so contributions from everyone much appreciated.

    Typing "!" and leaving in the apostrophes were typos, so apologies.
    Fortunately other suppliers charge on a different basis, so the formula will not have to account for them, other than starting "=If(M2="Supplier 1",index. . . .)
    And sadly, can't lose the Merged Cells because the end user wants them that way in the document the table sits in in "real life"

    Delighted to mark this as "Closed" - now just need to get someone to enable me to post the other qiuestion on this Forum that Sucuri have been blocking for two weeks for some bizarre reason, athough this one sailed through!

    Ochimus

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Can't find corrext Index Match formula where different options have same sub-options

    I'll bet those queries included the < or the > character! If so, just ensure that you have spaces either side of them. Glad your query was solved.

+ 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: 0
    Last Post: 08-26-2014, 08:44 AM
  2. extracting text string with 2 options @ end & limited options
    By ChristianR in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-24-2010, 06:51 AM
  3. [SOLVED] how do I add more toolbar options to my right click options
    By Rosie in forum Excel General
    Replies: 1
    Last Post: 08-11-2006, 12:00 PM
  4. [SOLVED] Working with options from within Tools Options clears the Clipboar
    By Peter Rooney in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-18-2005, 12:55 PM
  5. How to diasble the 'Tools - Options - View - Comments' options?
    By Alan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-19-2005, 07:06 PM
  6. How to set options for Auto Fill Options?
    By aijihz in forum Excel General
    Replies: 1
    Last Post: 03-28-2005, 01:24 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