Excel formula for matching numbers

sinoyon780

New Member
Joined
Dec 12, 2022
Messages
21
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
Hi,

I have to column of Mobile number list in W and X so now i want 2 new list in Y and Z as a like

how many number are same in W & X = List in Y
how many number not same in W & X = List in Z (From X)
 

Attachments

  • Screenshot 2024-02-07 at 11.39.48 AM.png
    Screenshot 2024-02-07 at 11.39.48 AM.png
    160.7 KB · Views: 8

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Try this...I was not sure if W and X might contain duplicates within each column, so the Z formula has additional UNIQUE functions to eliminate same-column duplicates (that may not be necessary, depending on your actual data).
Book3
WXYZ
1Source1Source2same in bothnot same
210331213
311121114
412111015
513101733
614441644
715552055
8161718
9171619
101820
111918
122019
Sheet1
Cell Formulas
RangeFormula
Y2:Y9Y2=LET(w,UNIQUE(W2:W12),x,UNIQUE(X2:X12),FILTER(x,DROP(FREQUENCY(w,x),-1)>0))
Z2:Z7Z2=UNIQUE(VSTACK(UNIQUE(W2:W12),UNIQUE(X2:X12)),,1)
Dynamic array formulas.

Edit: I think this shorter version should also work for the Y formula:
Excel Formula:
=LET(w,W2:W12,x,X2:X12,FILTER(x,DROP(FREQUENCY(w,x),-1)>0))
 
Last edited:
Upvote 1
Solution

Forum statistics

Threads
1,215,183
Messages
6,123,522
Members
449,103
Latest member
Michele317

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