INDEX() MATCH() Issue

LVExcel

Board Regular
Joined
Nov 23, 2011
Messages
59
Office Version
  1. 365
Platform
  1. Windows
Can you please help with this formula, I have looked at it up and down and can't ID the problem.

From Sheet1 I'm looking in Sheet2 with my Costs and can not return the correct cost.

My formula is in Column C
=INDEX(Sheet2!A:GZ,MATCH(A2,Sheet2!$A:$A),MATCH(B2,Sheet2!$4:$4))
The only one that seems to return the correct amount is AU .023 lbs, however I would like it to return the next weigh , but could not find a Rounding function that would help.


1660251239003.png


Column A is my Weights
Row 4 contains my 2 digit Country codes

1660250839763.png
 

Attachments

  • 1660250914229.png
    1660250914229.png
    2.9 KB · Views: 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Two problems both in MATCH Function

Check this -
Excel Formula:
=INDEX(Sheet2!A:GZ,MATCH(A2,Sheet2!$A:$A,1),MATCH(B2,Sheet2!$4:$4,0))

You need to tell Match to look for Exact (0), Lesser (1) or Greater (-1) value than you are looking for - Change First Match accordingly.

Try it
 
Upvote 0
Solution
Two problems both in MATCH Function

Check this -
Excel Formula:
=INDEX(Sheet2!A:GZ,MATCH(A2,Sheet2!$A:$A,1),MATCH(B2,Sheet2!$4:$4,0))

You need to tell Match to look for Exact (0), Lesser (1) or Greater (-1) value than you are looking for - Change First Match accordingly.

Try it

That did it , thank you so much, never thought that could be the issue.
I wish I could do (-1), but can not sort my data in descending order due to other formulas.
 
Upvote 0
That did it , thank you so much, never thought that could be the issue.
I wish I could do (-1), but can not sort my data in descending order due to other formulas.
You can use that - from what I see from your sample data posted, it's kind of sorted for MATCH function to work properly.
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,215
Members
448,874
Latest member
b1step2far

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top