Get a month of TabletWise Pro for free! Click here to redeem 
TabletWise.com
 

MATCH() match_type: -1 vs. 0 vs. 1

Software Microsoft Excel Advanced Excel Crash Course Section 11: Lookup and Conditional Calculations
3 minutes
Share the link to this page
Copied
  Completed
You need to purchase the class to view this lesson.
One-time Purchase
$99.99
List Price:  $139.99
You save:  $40
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.92
A$145.90
List Price:  A$204.27
You save:  A$58.36
৳8,489.86
List Price:  ৳11,886.14
You save:  ৳3,396.28
CA$136.75
List Price:  CA$191.45
You save:  CA$54.70
CHF 95.21
List Price:  CHF 133.29
You save:  CHF 38.08
kr663.72
List Price:  kr929.24
You save:  kr265.51
€89.05
List Price:  €124.67
You save:  €35.62
£81.40
List Price:  £113.97
You save:  £32.56
HK$774.97
List Price:  HK$1,084.98
You save:  HK$310.01
₹7,549.84
List Price:  ₹10,570.09
You save:  ₹3,020.24
RM428.45
List Price:  RM599.85
You save:  RM171.39
₦38,746.12
List Price:  ₦54,246.12
You save:  ₦15,500
kr970.31
List Price:  kr1,358.48
You save:  kr388.16
NZ$156.01
List Price:  NZ$218.42
You save:  NZ$62.41
₱4,982.50
List Price:  ₱6,975.71
You save:  ₱1,993.20
₨16,818.31
List Price:  ₨23,546.31
You save:  ₨6,728
S$139.47
List Price:  S$195.27
You save:  S$55.79
฿3,090.69
List Price:  ฿4,327.09
You save:  ฿1,236.40
₺685.47
List Price:  ₺959.69
You save:  ₺274.21
R1,732.88
List Price:  R2,426.10
You save:  R693.22
Already have an account? Log In

Transcript

Hi there. In one of our earlier examples, we had seen the theoretical application of match formula with an exact match. Before we really jump into the practical application, just one loose end to tie up. That is, when we use match with minus one or one. What do I mean by that? You'd have noticed in some of the previous videos that when I start writing match, after the second parameter, the third parameter gives you three options.

We had used only one which was zero, exact match, you had not taken care of one and minus one. So the theoretical level, how are they are to be applied. Let's take an example. Let's say there's a slab of scores. And I just have five categories more than equal to zero, more than equal to 40. Anybody who's schooled or touched more than 80, maybe more than 90, and more than equal to hundred, although it's 100 marks test but 100 is a cat So all these numbers are being read as more than equal to, I want to find out if the score would have been 81.

Under which category would it fall under? logically it should fall into this category. Why? Because it says more than or equal to 81. So 1234 is what I should be getting. So I write equal to match, oops, equal to match lookup value at one, comma.

For the time being, I am choosing only this data just to test how the answer going to react. I'm going to press f4 comma. Now since this is an ascending order, I'll be using one close the bracket enter. So I'm getting an answer three and why so because 81 has to be captured by the third value more than or equal to 80. But for the time being assumed that the score was 79. Since it is more than equal to 40, but has not touched a p it should be classified under two One, two.

So that's how it works. One is generally used when you have a data, which is placed in ascending order in the meaning of more than equal to. And with that we're going to use match one. Similarly, if you had a data, which was placed in less than equal format, now into law school, let me just put the age to help you understand is better had the age be less than equal to hundred or less than equal to 80 or 55 or 30? Or 15? How would I want the input to be placed at what sequence number?

So I write equal to match, look for the D one, comma, choosing the entire set of arrays starting from the first number. I'm going to fix it, comma, since it is in descending order the entire list I'll be pushing for minus one. I close the bracket and let me see what I get. I'm getting one. Let's understand why. Since 81, is less than or equal to one But it has not touched at or any number below it, it is the first instance under which it has been classified.

Now imagine if I put at age zero, the moment it touches 80 It must be classified under second category. If I give 75 it still will be under category two. But if I give 54 let's see what happens. So eventually as we proceed in our program, we'll see what are the practical applications of the 01 minus one and overall, where match can be used. As of now, the bottom line is match is used to find the sequence number, the position number for second or third in a given set of one dimensional array. It never works with a two dimensional or table array.

Sign Up