Partial match between column

jiaweilee

New Member
Joined
Mar 26, 2016
Messages
13
How to find the partial match between two column. If there is the match from column C with Column A then in column B it will show " changed".

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1382001001[/TD]
[TD][/TD]
[TD]1362002002[/TD]
[/TR]
[TR]
[TD]1382002002[/TD]
[TD][/TD]
[TD]1362002003[/TD]
[/TR]
[TR]
[TD]1382002003[/TD]
[TD][/TD]
[TD]1362002004[/TD]
[/TR]
</tbody>[/TABLE]

Tried this formula but it return #N/A.

Code:
=IF(MATCH("*"&RIGHT($C7,6),A7:A100,0),"changed","-"
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

You MUST catch the possible non-match that generates the #N/A error. Otherwise the error is returned by the formula before the value_if_true/value_if_false has a chance to be executed by the IF statement (this applies to any formula/function). So assuming your MACTH does what you expect change it for:

=IF( ISNA(MATCH("*"&RIGHT($C7,6), A7:A100,0)), "--", "changed" )

BTW I wonder why A7:A100 isn't A7:A$100. Maybe there's a good reason but just in case...

Regards
XLearner
 
Upvote 0
MATCH("*"&RIGHT($C7,6),A7:A100,0)
this will always return #N/A error because RIGHT always returns text, even if it looks like a number, so you cannot use a wild card like that to find a number.

Try this instead...
=IF(ISNUMBER(SUMPRODUCT(MATCH("*"&RIGHT($C7,6),TEXT(A7:A100,"?"),0))),"Yes","No")
ARRAY entered, using CTRL SHIFT ENTER, not just enter
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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
Back
Top