Value Not Available in Spreadsheet - Index and Match functions

Anonymous
2022-02-01T14:58:11+00:00

I am creating a sheet in which you type in the input values of corresponding size and quantity and it yields the total price.

For example, if I typed in a minimum quantity of 45, the price for a quantity of 48 would appear.

However, I have a value not available error in cell B10 where I made the formula.

The formula I used was: =INDEX(B2:E6,MATCH(B9,A2:A6,1),MATCH(B8,B1:E1,0))

This is what my spreadsheet looks like:

What would need to be fixed in order for this to work?

The only formulas I can use are INDEX and MATCH. This is what I need to do:

Thank you!

Microsoft 365 and Office | Excel | For education | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. Anonymous
    2022-02-06T17:35:20+00:00

    I have one more question for you.

    Why do the formulas MIN and ABS need to be used in this INDEX and MATCH problem?

    What are the roles of all these formulas in the problem so that it works?

    Thank you!

    0 comments No comments
  2. Anonymous
    2022-02-06T19:12:31+00:00

    I am confused on what the minimum quantity means in the question?

    For example. if I ordered 40 medium shirts would the price be $24.03 or $44.45?

    What would make the most sense in the context of this problem?

    Thank you!

    0 comments No comments
  3. Anonymous
    2022-02-07T05:26:41+00:00

    Hello,

    ABS function in the Excel application will give you the Absolute result, for example, the difference between two numbers gives you an output of a negative number, using ABS function, it will give you the output result.

    MIN function in the Excel application will give you the closest match. Since your output needs to be considered based on the nearest value, I used the MIN function.

    References:
    MATCH function (microsoft.com)

    ABS function (microsoft.com)

    In your sample data, the orders are 12, 24, 48, and 96. So, if the minimum quantity is 40, it will take 48 and give the output based on the size. For example, if 40 is the minimum quantity, then you will get the following answer based on the sizes:

    Size 48
    XS 27.34
    S 34.18
    M 44.45
    L 58.14
    XL 75.25

    Regards,
    Chitrahaas

    0 comments No comments