# Match Function

#### chaz0789

##### New Member
Hi,
I'm trying to figure out a way to do a simple data check. I have two rows of data, both have the exact same numbers/Text If one of the numbers/Text changes i need it to post a text of "Not A Full Match" if both data sets a equal i need it to say "Match". The formula I'm currently using works, but it only works for 1 value. I need it to work for an array of data. Any ideas?

=IF(ISERROR(MATCH(N21,O21:O57,0)),"Not A Full Match","Match")

### Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

#### 63falcondude

##### Well-known Member
How about something like this? You will have to change the ranges in the formula to match your data. Note that this example is "Not A Full Match" because they are not exactly the same (case matters).

Excel 2010
ABCDEFG
1123abc
2123aBc
3
4Not A Full Match
Sheet1
Cell Formulas
RangeFormula
A4=IF(SUMPRODUCT(--EXACT(B1:G1,B2:G2))=COUNTA(B1:G1),"Match","Not A Full Match")

Last edited:

#### chaz0789

##### New Member
This seems to be working. However, part of the data is using index/match function. So when I don't have a match it produces a #N/A, so instead of "Not A Full Match" i get #N/A.

#### Marcelo Branco

##### MrExcel MVP
Hi,
I'm trying to figure out a way to do a simple data check. I have two rows of data, both have the exact same numbers/Text If one of the numbers/Text changes i need it to post a text of "Not A Full Match" if both data sets a equal i need it to say "Match". The formula I'm currently using works, but it only works for 1 value. I need it to work for an array of data. Any ideas?

=IF(ISERROR(MATCH(N21,O21:O57,0)),"Not A Full Match","Match")

Question:
Suppose two data ranges like these

 Text1​ 3​ Text2​ Text1​ Text3​ Text2​ 1​ Text3​ 2​ 1​ 3​ 2​

<tbody>
</tbody>

Is this a Match or a Not Full Match?

M.

#### 63falcondude

##### Well-known Member
This seems to be working. However, part of the data is using index/match function. So when I don't have a match it produces a #N/A, so instead of "Not A Full Match" i get #N/A.

What if you change the formula to =IFERROR(IF(SUMPRODUCT(--EXACT(B1:G1,B2:G2))=COUNTA(B1:G1),"Match","Not A Full Match"),"Not A Full Match") ?

#### chaz0789

##### New Member
What if you change the formula to =IFERROR(IF(SUMPRODUCT(--EXACT(B1:G1,B2:G2))=COUNTA(B1:G1),"Match","Not A Full Match"),"Not A Full Match") ?

That works perfectly!!! Thank you for the help.

Replies
3
Views
446
Replies
10
Views
908
Replies
4
Views
342
Replies
3
Views
2K
Replies
4
Views
912

1,195,623
Messages
6,010,748
Members
441,567
Latest member
Flitbee

### 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?

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