If I'm reading your formula correctly, it looks like your index is returning Column B, which is quantity ordered.
=INDEX(*column to return*)MATCH(*value to check*, *column to search for value*, *search type*))
You can see 6 different possibilities HERE (and below) depending on what you're trying to do. Copy the sheet to make edits.
- Standard
Index/Match:
=INDEX(Sheet1!$C$2:$C,MATCH(A3,Sheet1!$A$2:$A,FALSE))
- Google Sheets Query (1 Column Return/1 Match Key):
=QUERY(Sheet1!$A$2:$D,"Select C where A='"&D3&"'",0)
- Index/Match/Multiply:
=INDEX(Sheet1!$C$2:$C,MATCH(A3,Sheet1!$A$2:$A,FALSE))*H3
- Google Sheets Query (2 Column Return/1 Match Key):
=QUERY(Sheet1!$A$2:$D,"Select B, C where A='"&K3&"'",0)
- Index/Match with Multiple Match Keys:
=ARRAYFORMULA(INDEX(Sheet1!$C$2:$C,MATCH(1,(O3=Sheet1!$A$2:$A)*(P3=Sheet1!$B$2:$B),0)))
See HERE for use with Excel.
- Google Sheets Query (1 Column Return/2 Match Keys):
=QUERY(Sheet1!$A$2:$D,"Select C where A='"&S3&"' and B like '"&T3&"' ",0)
If my answer or teylyn's worked, please check the green check mark to accept the answer.