Questions tagged [excel-match]

MATCH is an Excel function for searching for a specified value in a range of cells and it returns the relative position of the matched value in the given range.

Definition:

MATCH is a Microsoft Excel function which searches for the lookup_value from the lookup_array (a range of cells) based on the match_type.

It returns the relative position of the first matched value in the given range, and if no match is found, it returns #N/A.

Syntax:

MATCH(lookup_value, lookup_array, [match_type])

Where:

  • lookup_value (Required) - The value to search and match in the given array.
  • lookup_array (Required) - The array or range of cells to search for the given value.
  • match_type (Optional) - The type of match to perform on the given array. 1 is the default value. There are three possible values:
    • 1 - To find the position of largest value that is less than or equal to the lookup_value. The lookup_array must be sorted in ascending order.
    • 0 - To find the position of the first value that is equal to the lookup_value. The lookup_array can be in any order.
    • -1 - To find the position of the smallest value that is greater than or equal to the lookup_value. The lookup_array must be sorted in descending order.

Learn More:

136 questions
22
votes
3 answers

Why does Excel MATCH() not find a match?

I have a table with some numbers stored as text (UPC codes, so I don't want to lose leading zeros). COUNTIF() recognizes matches just fine, but MATCH() doesn't work. Is there a reason why MATCH() can't handle numbers stored as text, or is this just…
Charlie Carwile
  • 837
  • 2
  • 7
  • 9
21
votes
1 answer

Check if an excel cell exists on another worksheet in a column - and return the contents of a different column

What I want to do is to say if the contents of cell D3 (on current worksheet) exist in column A in the first worksheet (in my case entitled list). (and they always do exist somewhere). Return the contents of the corresponding row in Column C. In…
YelizavetaYR
  • 1,611
  • 6
  • 21
  • 37
20
votes
3 answers

If two cells match, return value from third

Here's a simple explanation of what I'm having trouble with. Column A: List of 2300 order numbers Column B: Email Address associated with an order number Column C: List of 100 specific order numbers that I need the email address for So, I'm…
mn8809
  • 454
  • 1
  • 5
  • 13
9
votes
2 answers

IFERROR, INDEX, MATCH returning zeros instead of blanks

I am using the following formula: =IFERROR(INDEX('Cleaned Post'!W:W,MATCH(Combined!$C2,'Cleaned Post'!$C:$C,0))," ") This formula is working beautifully, except that for blank cells, it's returning "0". I would like blank cells to be return as…
Laura Ligouri
  • 95
  • 1
  • 1
  • 5
7
votes
3 answers

Lookup using INDEX and MATCH with two criteria

I am trying to achieve a basic lookup using INDEX and MATCH. My layout is: Sheet 1 NAME | SITE | DATE Sheet 2 NAME | SITE | DATE I want the 'SITE' column in Sheet 1 to automatically populate with the SITE from Sheet 2 where NAME and DATE…
user1017882
7
votes
2 answers

Return Max Value of range that is determined by an Index & Match lookup

I need a cell to display the max value of a range who's row is defined by an index and match formula. I know this will be an array function but I'm struggling to get the syntax right. Here is what my data looks like. I have it laid out with Column…
Ashton Sheets
  • 513
  • 6
  • 13
  • 21
6
votes
2 answers

Comparing 2 lists in Excel with VBA Regex

I want to use them to compare two lists (columns) in Excel to find matches. As this is quite a complex operation, I have performed it in the past, using several different functions (non-VBA) in Excel, but it has proved to be awkward at best, and so…
buck1112
  • 504
  • 8
  • 24
6
votes
4 answers

Comparing two columns, and returning a specific adjacent cell in Excel

I am using a combination of if, vlookup, match, iserror functions, and unfortunately I've not been able to find the right formula. Comparing two columns for matches is easy enough. the tough part has been returning a specific cell once a match is…
aragorn marsden
  • 63
  • 1
  • 1
  • 3
5
votes
3 answers

Use Excel Match Result as Column Selection

I have a MATCH expression that returns the valid row number. I now need to combine this result with a known Column identifier to return the results of that cell. So, if something on A50 = "apple", then I can get the contents of cell D50. I looked at…
Shawn
  • 331
  • 2
  • 3
  • 16
4
votes
1 answer

Returning the column header of max value on per row basis

I have a spreadsheet whereby on a monthly basis I need to return the top product based on a table for that month. I have copied a screenshot of my current setup below. I am currently doing this by creating an additional column (column H) which…
ab_s
  • 57
  • 1
  • 1
  • 4
4
votes
2 answers

Optimization of vlookup with multiple criteria (index + match)

I have a 12x18 Excel range which draws data from a 823x20 sheet (Results!$A:$T) according to the 12x18 range's page, row and column headers (criterion1, criterion2 and criterion3, respectively) ={INDEX(Results!$A:$T, MATCH(1, (criterion1 =…
Waldir Leoncio
  • 10,853
  • 19
  • 77
  • 107
3
votes
4 answers

VLOOKUP giving #N/A and I have no idea why

Why doesn't this work? I tried checking for whitespace, made sure length was the same, etc. Driving me nuts! I just want Alabama! The error given is "Value not available".
atkayla
  • 8,143
  • 17
  • 72
  • 132
3
votes
3 answers

Excel index match multiple row results

I'm stuck on an Excel problem and am hoping someone can assist. I read through 10-15 topics that are similar, but I wasn't able to get anything to work. Here is where I'm at... I have a large data set containing columns for Year, Name, Total 1,…
user3224346
  • 33
  • 1
  • 1
  • 3
3
votes
3 answers

Using MATCH function without blank cells

My excel sheet is as below When I use the following formula the result is 8 =MATCH(5;B8:AS8;0) I would like to expand this formula; not adding blank cells to range (B8:AS8). I mean if I don't add blank cells to range result will be 3 Which…
Kerberos
  • 1,228
  • 6
  • 24
  • 48
3
votes
2 answers

Excel MATCH + COUNTIF function: retrieving the nth value in an array

I have a formula that I'm using in Excel to return the row # of the first item that matches a specified value. Formula: =MATCH(0,COUNTIF($B$1,List),0) + CTRL + SHIFT + ENTER and in Mac: CMD + RETURN Becomes:…
krumholz
  • 105
  • 1
  • 3
  • 10
1
2 3
9 10