Do I need a Vlookup on steriods?

bumfart66

New Member
Joined
Aug 23, 2017
Messages
21
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi

I've been scratching my head for ages on this one

I want to be able to enter two circuit IDs and see whether there is any duplication of the link IDs, for information the Links go up to Link 42

For example , i enter Circuit 001 and 002 and the response would show there is duplication of 202397

Circuit IDLink 01Link 02Link 03Link 04Link 05Link 06Link 07Link 08Link 09
Circuit 001202363202397203916
Circuit 002202935202397202937203944203945203946203947203948203949
Circuit 003203066203067203858203958203959203962204053204054204055
Circuit 004201507201510203802204071204077
Circuit 005200830200831201009201391203886204076204078
Circuit 006200149200188200195200197200238200300200301200350200373
Circuit 007200223200249200382200383200384200433
Circuit 008200191200197200198200203200210200211200254200257200294
Circuit 009200148200374200539200540200541203607
Circuit 010200780200781200782200838201723203990
Circuit 011203881
Circuit 012200223200249200433200434200586
Circuit 013200460
Circuit 014200223200249200382200426200433200534200562200563
Circuit 015200078200093200112200130200131200779202553202966203607
Circuit 016200057200099200151200152200380200381200555200572200573
Circuit 017200191200200200201200202200203200210200211200255200256
Circuit 018200186200192200382200426200434200534200543200544200561
Circuit 019200186200192200424200425200543200544204006204007
Circuit 020200186200192200426200535200536200537200543200544200561
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hello, it is not clear how the output should look like so let us know how to proceed further:

Excel Formula:
=LET(
ID,A2:A21,
links,B2:J21,
first,"Circuit 001",
second,"Circuit 002",
a,FILTER(links,ID=first),
b,FILTER(links,ID=second),
c,IF(a=b,a,""),
IF((ID=first)+(ID=second),c,""))
 
Upvote 0
Hi

Thanks for your help, I was thinking of something like this, I enter two circuit in cells AR1 and AR2 and any duplicates are displayed

The links are in cells B2:AQ259
and the ID are in A2:A259
 

Attachments

  • Image.png
    Image.png
    104.8 KB · Views: 8
Upvote 0
Many thanks for the reply. As I forgot to ask whether to count as duplicates only those numbers that are within the same column (i.e. the same link) or any duplicates within selected circuits, here are both versions:

Excel Formula:
=LET(
ID,A2:A259,
links,B2:AQ259,
first,AR1,
second,AR2,
a,FILTER(links,ID=first),
b,FILTER(links,ID=second),
c,UNIQUE(FILTER(a,a=b,""),TRUE),
TRANSPOSE(IF(ISBLANK(c),"",c)))

Excel Formula:
=LET(
ID,A2:A259,
links,B2:AQ259,
first,AR1,
second,AR2,
a,TOCOL(FILTER(links,(ID=first)+(ID=second)),1),
u,UNIQUE(a,,TRUE),
UNIQUE(FILTER(a,ISNUMBER(XLOOKUP(a,u,u))=FALSE,"")))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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