MATCH

Lookup & Referenceintermediate

MATCH searches for a value in a range and returns its position number (1st, 2nd, 3rd, etc.), not the value itself. It's most powerful when combined with INDEX, but also useful for finding where something lives in a list or checking if a value exists.

Syntax

Excel:=MATCH(lookup_value, lookup_array, [match_type])
Google Sheets: Same syntax

Parameters

lookup_valueThe value to find.
lookup_arrayThe range to search (single row or column).
match_type?0 = exact match, 1 = largest value ≤ lookup (sorted ascending), -1 = smallest value ≥ lookup (sorted descending). Always use 0 for exact match.

? = optional parameter

Worked Example

What row position is 'Horizon IT Services' in the vendor column?

Row numbersB
Header rowpositionvendor_name
225NovaTech Solutions
326Clearview Data Systems
427 →Horizon IT Services
528Basecamp Events
629Redstone Marketing

Formula

=MATCH("Horizon IT Services", B2:B6, 0)

Result

3

MATCH searches B2 through B6 and returns the position of 'Horizon IT Services' within that visible list. In this sample, it is the 3rd item in the range, so the result is 3.

Practice Exercises

2 exercises - work through each one using the data table below

Exercise 1 of 2beginner
#MATCH-001

Question

What position in the vendor_name column does 'Greenfield Facilities' first appear? (i.e., is it the 5th vendor listed, the 20th, etc.?)

Dataset

Vendor Spend Tracker (150 rows total)

Download CSV
Row numbersAB
Header row
2INV-1001Cloudline Software
3INV-1002Apex Office Supply
4INV-1003Summit Consulting Group
5INV-1004Meridian Travel Co.
6INV-1005Forge & Frame Creative
7INV-1006NovaTech Solutions
8INV-1007Atlas Hardware Co.
9INV-1008Clearview Data Systems
10INV-1009Redstone Marketing
11INV-1010Keystone Legal Advisors
12INV-1011Cloudline Software
13INV-1012Basecamp Events
14INV-1013Apex Office Supply
15INV-1014BrightPath Analytics
16INV-1015Meridian Travel Co.
17INV-1016Clearview Data Systems
18INV-1017Apex Office Supply
19INV-1018Summit Consulting Group
20INV-1019Cloudline Software
21INV-1020Atlas Hardware Co.
22INV-1021Meridian Travel Co.
23INV-1022Atlas Hardware Co.
24INV-1023Atlas Hardware Co.
25INV-1024Apex Office Supply
26INV-1025Redstone Marketing
27INV-1026Clearview Data Systems
28INV-1027Horizon IT Services
29INV-1028Basecamp Events
30INV-1029Redstone Marketing
31INV-1030BrightPath Analytics
32INV-1031Basecamp Events
33INV-1032Cloudline Software
34INV-1033Clearview Data Systems
35INV-1034Meridian Travel Co.
36INV-1035Cloudline Software
37INV-1036Horizon IT Services
38INV-1037BrightPath Analytics
39INV-1038Cloudline Software
40INV-1039Horizon IT Services
41INV-1040Apex Office Supply
42INV-1041Summit Consulting Group
43INV-1042Clearview Data Systems
44INV-1043Forge & Frame Creative
45INV-1044NovaTech Solutions
46INV-1045Meridian Travel Co.
47INV-1046Cloudline Software
48INV-1047Apex Office Supply
49INV-1048Apex Office Supply
50INV-1049Pinecrest Staffing
51INV-1050Clearview Data Systems
52INV-1051BrightPath Analytics
53INV-1052Keystone Legal Advisors
54INV-1053Cloudline Software
55INV-1054NovaTech Solutions
56INV-1055Basecamp Events
57INV-1056Cloudline Software
58INV-1057NovaTech Solutions
59INV-1058Clearview Data Systems
60INV-1059Basecamp Events
61INV-1060Horizon IT Services
62INV-1061Atlas Hardware Co.
63INV-1062Forge & Frame Creative
64INV-1063Meridian Travel Co.
65INV-1064Meridian Travel Co.
66INV-1065Cloudline Software
67INV-1066Redstone Marketing
68INV-1067Horizon IT Services
69INV-1068Cloudline Software
70INV-1069NovaTech Solutions
71INV-1070Apex Office Supply
72INV-1071Redstone Marketing
73INV-1072NovaTech Solutions
74INV-1073Summit Consulting Group
75INV-1074Atlas Hardware Co.
76INV-1075BrightPath Analytics
77INV-1076Clearview Data Systems
78INV-1077Meridian Travel Co.
79INV-1078Pinecrest Staffing
80INV-1079Meridian Travel Co.
81INV-1080Greenfield Facilities
82INV-1081Keystone Legal Advisors
83INV-1082Apex Office Supply
84INV-1083Cloudline Software
85INV-1084Meridian Travel Co.
86INV-1085Horizon IT Services
87INV-1086Cloudline Software
88INV-1087Apex Office Supply
89INV-1088Pinecrest Staffing
90INV-1089NovaTech Solutions
91INV-1090Meridian Travel Co.
92INV-1091Redstone Marketing
93INV-1092Cloudline Software
94INV-1093Cloudline Software
95INV-1094BrightPath Analytics
96INV-1095Redstone Marketing
97INV-1096BrightPath Analytics
98INV-1097Redstone Marketing
99INV-1098Cloudline Software
100INV-1099Meridian Travel Co.
101INV-1100Meridian Travel Co.
102INV-1101Forge & Frame Creative
103INV-1102Atlas Hardware Co.
104INV-1103NovaTech Solutions
105INV-1104Meridian Travel Co.
106INV-1105NovaTech Solutions
107INV-1106Pinecrest Staffing
108INV-1107Basecamp Events
109INV-1108Redstone Marketing
110INV-1109NovaTech Solutions
111INV-1110Horizon IT Services
112INV-1111Pinecrest Staffing
113INV-1112NovaTech Solutions
114INV-1113Cloudline Software
115INV-1114Meridian Travel Co.
116INV-1115Clearview Data Systems
117INV-1116Cloudline Software
118INV-1117Clearview Data Systems
119INV-1118Greenfield Facilities
120INV-1119Cloudline Software
121INV-1120Horizon IT Services
122INV-1121Meridian Travel Co.
123INV-1122Redstone Marketing
124INV-1123Redstone Marketing
125INV-1124NovaTech Solutions
126INV-1125Cloudline Software
127INV-1126Meridian Travel Co.
128INV-1127Horizon IT Services
129INV-1128Forge & Frame Creative
130INV-1129Cloudline Software
131INV-1130BrightPath Analytics
132INV-1131Keystone Legal Advisors
133INV-1132BrightPath Analytics
134INV-1133Meridian Travel Co.
135INV-1134NovaTech Solutions
136INV-1135Cloudline Software
137INV-1136Greenfield Facilities
138INV-1137Meridian Travel Co.
139INV-1138Apex Office Supply
140INV-1139Pinecrest Staffing
141INV-1140Pinecrest Staffing
142INV-1141Cloudline Software
143INV-1142NovaTech Solutions
144INV-1143Greenfield Facilities
145INV-1144Clearview Data Systems
146INV-1145Apex Office Supply
147INV-1146Cloudline Software
148INV-1147Summit Consulting Group
149INV-1148NovaTech Solutions
150INV-1149Greenfield Facilities
151INV-1150Greenfield Facilities
152

Scroll to explore the table, then sort or filter by column as needed.

Hints

Your Answer

Exercise 2 of 2intermediate
#MATCH-002

Question

Using MATCH, find the position of the maximum invoice amount in the amount column. Then verify by checking: does INDEX at that position return the same value as MAX?

Dataset

Vendor Spend Tracker (150 rows total)

Download CSV
Row numbersABC
Header row
2INV-1001Cloudline Software$12,500.00
3INV-1002Apex Office Supply$487.50
4INV-1003Summit Consulting Group$18,750.00
5INV-1004Meridian Travel Co.$3,200.00
6INV-1005Forge & Frame Creative$7,600.00
7INV-1006NovaTech Solutions$9,800.00
8INV-1007Atlas Hardware Co.$2,150.00
9INV-1008Clearview Data Systems$15,300.00
10INV-1009Redstone Marketing$4,250.00
11INV-1010Keystone Legal Advisors$8,900.00
12INV-1011Cloudline Software$8,500.00
13INV-1012Basecamp Events$8,256.80
14INV-1013Apex Office Supply$713.88
15INV-1014BrightPath Analytics$2,645.33
16INV-1015Meridian Travel Co.$4,702.01
17INV-1016Clearview Data Systems$3,400.74
18INV-1017Apex Office Supply$531.83
19INV-1018Summit Consulting Group$1,847.86
20INV-1019Cloudline Software$7,800.00
21INV-1020Atlas Hardware Co.$2,524.82
22INV-1021Meridian Travel Co.$2,934.55
23INV-1022Atlas Hardware Co.$2,912.75
24INV-1023Atlas Hardware Co.$4,124.04
25INV-1024Apex Office Supply$672.77
26INV-1025Redstone Marketing$5,371.63
27INV-1026Clearview Data Systems$3,796.96
28INV-1027Horizon IT Services$1,773.30
29INV-1028Basecamp Events$4,601.68
30INV-1029Redstone Marketing$5,414.85
31INV-1030BrightPath Analytics$2,704.87
32INV-1031Basecamp Events$2,351.63
33INV-1032Cloudline Software$9,200.00
34INV-1033Clearview Data Systems$4,086.27
35INV-1034Meridian Travel Co.$1,642.50
36INV-1035Cloudline Software$2,867.94
37INV-1036Horizon IT Services$4,586.87
38INV-1037BrightPath Analytics$2,679.33
39INV-1038Cloudline Software$2,284.90
40INV-1039Horizon IT Services$3,224.17
41INV-1040Apex Office Supply$604.96
42INV-1041Summit Consulting Group$9,500.00
43INV-1042Clearview Data Systems$3,871.90
44INV-1043Forge & Frame Creative$5,726.55
45INV-1044NovaTech Solutions$3,596.33
46INV-1045Meridian Travel Co.$5,657.73
47INV-1046Cloudline Software$8,000.00
48INV-1047Apex Office Supply$396.69
49INV-1048Apex Office Supply$523.99
50INV-1049Pinecrest Staffing$5,843.41
51INV-1050Clearview Data Systems$5,091.38
52INV-1051BrightPath Analytics$6,200.00
53INV-1052Keystone Legal Advisors$10,496.53
54INV-1053Cloudline Software$3,873.77
55INV-1054NovaTech Solutions$2,131.07
56INV-1055Basecamp Events$4,659.43
57INV-1056Cloudline Software$7,500.00
58INV-1057NovaTech Solutions$3,255.52
59INV-1058Clearview Data Systems$2,889.22
60INV-1059Basecamp Events$2,943.88
61INV-1060Horizon IT Services$3,917.25
62INV-1061Atlas Hardware Co.$2,958.71
63INV-1062Forge & Frame Creative$5,190.48
64INV-1063Meridian Travel Co.$3,800.00
65INV-1064Meridian Travel Co.$3,248.96
66INV-1065Cloudline Software$6,800.00
67INV-1066Redstone Marketing$4,583.65
68INV-1067Horizon IT Services$4,154.73
69INV-1068Cloudline Software$1,994.85
70INV-1069NovaTech Solutions$5,988.79
71INV-1070Apex Office Supply$701.90
72INV-1071Redstone Marketing$1,522.67
73INV-1072NovaTech Solutions$8,100.00
74INV-1073Summit Consulting Group$33,000.00
75INV-1074Atlas Hardware Co.$3,618.53
76INV-1075BrightPath Analytics$5,484.82
77INV-1076Clearview Data Systems$2,190.73
78INV-1077Meridian Travel Co.$4,915.98
79INV-1078Pinecrest Staffing$5,337.06
80INV-1079Meridian Travel Co.$5,217.40
81INV-1080Greenfield Facilities$4,199.01
82INV-1081Keystone Legal Advisors$7,880.94
83INV-1082Apex Office Supply$738.04
84INV-1083Cloudline Software$9,500.00
85INV-1084Meridian Travel Co.$3,706.27
86INV-1085Horizon IT Services$3,934.09
87INV-1086Cloudline Software$2,463.38
88INV-1087Apex Office Supply$404.67
89INV-1088Pinecrest Staffing$1,909.04
90INV-1089NovaTech Solutions$2,885.01
91INV-1090Meridian Travel Co.$5,922.08
92INV-1091Redstone Marketing$3,693.48
93INV-1092Cloudline Software$4,986.06
94INV-1093Cloudline Software$31,500.00
95INV-1094BrightPath Analytics$4,248.05
96INV-1095Redstone Marketing$3,264.04
97INV-1096BrightPath Analytics$5,977.55
98INV-1097Redstone Marketing$3,214.26
99INV-1098Cloudline Software$8,200.00
100INV-1099Meridian Travel Co.$2,709.54
101INV-1100Meridian Travel Co.$3,516.17
102INV-1101Forge & Frame Creative$3,122.47
103INV-1102Atlas Hardware Co.$4,530.21
104INV-1103NovaTech Solutions$4,352.17
105INV-1104Meridian Travel Co.$3,137.30
106INV-1105NovaTech Solutions$4,559.89
107INV-1106Pinecrest Staffing$7,400.00
108INV-1107Basecamp Events$2,724.75
109INV-1108Redstone Marketing$3,957.64
110INV-1109NovaTech Solutions$2,398.15
111INV-1110Horizon IT Services$5,015.14
112INV-1111Pinecrest Staffing$30,500.00
113INV-1112NovaTech Solutions$3,646.25
114INV-1113Cloudline Software$5,200.86
115INV-1114Meridian Travel Co.$1,878.57
116INV-1115Clearview Data Systems$4,287.78
117INV-1116Cloudline Software$5,505.30
118INV-1117Clearview Data Systems$4,658.66
119INV-1118Greenfield Facilities$5,042.80
120INV-1119Cloudline Software$7,000.00
121INV-1120Horizon IT Services$3,893.42
122INV-1121Meridian Travel Co.$5,864.21
123INV-1122Redstone Marketing$3,920.27
124INV-1123Redstone Marketing$4,600.00
125INV-1124NovaTech Solutions$1,602.74
126INV-1125Cloudline Software$5,250.09
127INV-1126Meridian Travel Co.$4,417.14
128INV-1127Horizon IT Services$5,900.00
129INV-1128Forge & Frame Creative$4,618.54
130INV-1129Cloudline Software$8,800.00
131INV-1130BrightPath Analytics$4,003.25
132INV-1131Keystone Legal Advisors$11,892.88
133INV-1132BrightPath Analytics$2,800.34
134INV-1133Meridian Travel Co.$4,365.68
135INV-1134NovaTech Solutions$2,264.09
136INV-1135Cloudline Software$5,344.04
137INV-1136Greenfield Facilities$1,733.29
138INV-1137Meridian Travel Co.$2,251.07
139INV-1138Apex Office Supply$367.30
140INV-1139Pinecrest Staffing$3,235.55
141INV-1140Pinecrest Staffing$4,538.25
142INV-1141Cloudline Software$7,200.00
143INV-1142NovaTech Solutions$2,487.53
144INV-1143Greenfield Facilities$4,398.73
145INV-1144Clearview Data Systems$4,282.05
146INV-1145Apex Office Supply$300.36
147INV-1146Cloudline Software$9,000.00
148INV-1147Summit Consulting Group$4,697.90
149INV-1148NovaTech Solutions$2,613.37
150INV-1149Greenfield Facilities$4,097.38
151INV-1150Greenfield Facilities$1,846.11
152

Scroll to explore the table, then sort or filter by column as needed.

Hints

Your Answer

Want more practice?

Test Me mode randomizes exercises across all formulas without telling you which formula to use.

Try Test Me ->