Index and match, snag?

buzzing

Board Regular
Joined
Jul 30, 2004
Messages
92
Hi,
Iam using Index and Match in my formula for column I, to Match a value in column J and index a value in I. According to the help file the following types of match can be done:
If match_type is 1, MATCH finds the largest value that is less than or equal to lookup_value. Lookup_array must be placed in ascending order: ...-2, -1, 0, 1, 2, ..., A-Z, FALSE, TRUE.


If match_type is 0, MATCH finds the first value that is exactly equal to lookup_value. Lookup_array can be in any order.

I need to use match type 1, but my array values are in random order.

Is it possible to make match type 1, work with "LOOKUP array can be in any order".
If not which other function would work?
Any ideas?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Is this what ur looking for...??
Book3
ABCDEFGHIJ
2Amit21Saurabh
3Dev52Amit
4Mahesh33Mahesh
5Manav44Manav
6Saurabh15Dev
Sheet1


Saurabh...
 
Upvote 0
buzzing said:
...

I need to use match type 1, but my array values are in random order.

Is it possible to make match type 1, work with "LOOKUP array can be in any order"...

Why are you insisting on match-type 1, if you cannot meet its requirement: a lookup-array set in ascending order?
 
Upvote 0
Hi, thanks for the input.
Why are you insisting on match-type 1, if you cannot meet its requirement: a lookup-array set in ascending order?. Because I need the match to cope with matches equal or closest if no exact match is found.
This is my sheet . hope it helps. At I20 it should return 5 but it shows 4. I think it is because the lookup array values are random order.
 
Upvote 0
buzzing said:
...I need the match to cope with matches equal or closest if no exact match is found.
This is my sheet . hope it helps. At I20 it should return 5 but it shows 4. I think it is because the lookup array values are random order.
...

Clicking in cells of your exhibit gives me a run-time error. Can you indicate what you're matching (lookup values) against which range?
 
Upvote 0
Aladin Akyurek said:
buzzing said:
...I need the match to cope with matches equal or closest if no exact match is found.
This is my sheet . hope it helps. At I20 it should return 5 but it shows 4. I think it is because the lookup array values are random order.
...

Clicking in cells of your exhibit gives me a run-time error. Can you indicate what you're matching (lookup values) against which range?


INDEX(I$13:I19,MATCH(J20,J$13:J19,1))
This is the index part of my formula at I20, I tried posting the whole formula but it went **** up.
Can you not see the formula for Column I on the sheet?
 
Upvote 0
buzzing said:
if this works, it should shown the full formula at I20...

I still get the same error as reported in a previous reply. I believe the HtmlMaker has trouble with the formatting of the cells (underlining, etc.). When posting, strip off formats that do not convey information about the problem that you seek a solution for. Also, such postings should also include the formulas along with the cells housing them as plain text outside the image (see some posts of mine with an accompanying image).
 
Upvote 0
Aladin, I believe the problems are simply because the HTML Maker has already been used in this thread before buzzing posted himself. If I remember correctly, it simply has something to do with the javascript in the code not liking multiple instances-I unfortunately can't remember the technical terminology at the moment. But if you'll notice, *all* the HTML Maker posts in this thread will now result in the javascript errors.

The only workaround I know is to just post the formulas in the text of the message itself.
 
Upvote 0

Forum statistics

Threads
1,221,674
Messages
6,161,215
Members
451,691
Latest member
fjaimes042510

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