Match Function

chaz0789

New Member
Joined
Jun 16, 2016
Messages
20
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
Joined
Jan 15, 2016
Messages
3,572
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:
Upvote 0

chaz0789

New Member
Joined
Jun 16, 2016
Messages
20
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.
 
Upvote 0

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
17,100
Office Version
  1. 365
  2. 2016
  3. 2010
Platform
  1. Windows
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.
 
Upvote 0

63falcondude

Well-known Member
Joined
Jan 15, 2016
Messages
3,572
ADVERTISEMENT
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") ?
 
Upvote 0

Forum statistics

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

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
Top