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-01T15:28:36+00:00

    Hello,

    Please use this formula: =INDEX(B2:E6,MATCH(B9,A2:A6,0),MATCH(INDEX(B1:E1,MATCH(MIN(ABS(B1:E1-B10)),ABS(B1:E1-B10),0)),B1:E1,0))

    Image

    Best Regards,
    Chitrahaas

    0 comments No comments
  2. Anonymous
    2022-02-01T15:40:00+00:00

    I am only allowed to use the formulas INDEX and MATCH.

    This is the assignment I am trying to solve:

    ImageWhat different formula can be created so that it satisfies this criteria?

    0 comments No comments
  3. Anonymous
    2022-02-01T16:09:08+00:00

    Hello,

    To your requirement, you need to get the closest value to the range B1:E1, and to get the closest value, we can't just use the INDEX and MATCH function, where we also need to use ABS and MIN functions to meet your requirement.

    Note: We can also meet your requirement via VLOOKUP but as the question to find using INDEX and MATCH, I think you can go ahead with the formula I shared and check with the teacher.

    The formula I shared will meet your exact requirement:

    Best Regards,

    Chitrahaas

    0 comments No comments
  4. Anonymous
    2022-02-03T19:52:26+00:00

    Hello,

    If you need any further help, please feel free to post back to us.

    Thanks,
    Chitrahaas

    0 comments No comments
  5. Ashish Mathur 101K Reputation points Volunteer Moderator
    2022-02-04T00:20:16+00:00

    Hi,

    Rearrange the sizes (B1:E1) in descending order and try this formula

    =INDEX(B2:E6,MATCH(B9,B1:E1,-1),MATCH(B8,A2:A6,0))

    Hope this helps.

    0 comments No comments