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".

ABC
13820010011362002002
13820020021362002003
13820020031362002004

<tbody>
</tbody>

Tried this formula but it return #N/A.

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

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
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,215,227
Messages
6,123,743
Members
449,116
Latest member
alexlomt

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