Vlookup but exclude "this value in search"

FrankieBoyDK

New Member
Joined
Apr 19, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I need in 1 list to find if any values are the same. And thought that Vlookup would be the easiest way to do it?

Example
ValueNameNameValueName with same value
1​
test 1test 1
1​
test 11
2​
test 2test 2
2​
3​
test 3test 3
3​
4​
test 4test 4
4​
5​
test 5test 5
5​
6​
test 6test 6
6​
7​
test 7test 7
7​
8​
test 8test 8
8​
9​
test 9test 9
9​
10​
test 10test 10
10​
1​
test 11test 11
1​
2​
test 12test 12
2​
3​
test 13test 13
3​
4​
test 14test 14
4​
5​
test 15test 15
5​
6​
test 16test 16
6​
7​
test 17test 17
7​
8​
test 18test 18
8​
9​
test 19test 19
9​
10​
test 20test 20
10​

Here is the same list, but twice. Can I with Vlookup search the list and exclude the value for the name I know is there?

So in this case, I want it to search for the value "1" and it should not display "test 1" but "test 11".
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How about
Fluff.xlsm
ABCDEFG
1ValueNameNameValueName with same value
21test 1test 11test 11
32test 2test 22test 12
43test 3test 33test 13
54test 4test 44test 14
65test 5test 55test 15
76test 6test 66test 16
87test 7test 77test 17
98test 8test 88test 18
109test 9test 99test 19
1110test 10test 1010test 20
121test 11test 111test 1
132test 12test 122test 2
143test 13test 133test 3
154test 14test 144test 4
165test 15test 155test 5
176test 16test 166test 6
187test 17test 177test 7
198test 18test 188test 8
209test 19test 199test 9
2110test 20test 2010test 10
Dashboard
Cell Formulas
RangeFormula
G2:G21G2=FILTER($B$2:$B$100,($A$2:$A$100=E2)*($B$2:$B$100<>B2))
 
Upvote 0
How about
Fluff.xlsm
ABCDEFG
1ValueNameNameValueName with same value
21test 1test 11test 11
32test 2test 22test 12
43test 3test 33test 13
54test 4test 44test 14
65test 5test 55test 15
76test 6test 66test 16
87test 7test 77test 17
98test 8test 88test 18
109test 9test 99test 19
1110test 10test 1010test 20
121test 11test 111test 1
132test 12test 122test 2
143test 13test 133test 3
154test 14test 144test 4
165test 15test 155test 5
176test 16test 166test 6
187test 17test 177test 7
198test 18test 188test 8
209test 19test 199test 9
2110test 20test 2010test 10
Dashboard
Cell Formulas
RangeFormula
G2:G21G2=FILTER($B$2:$B$100,($A$2:$A$100=E2)*($B$2:$B$100<>B2))
Hi,

Yes this would work, however there might be more than 1 exact match. And it needs to display them all.

I tried this and it looks to be working?

NameValueName with same value
test 1
1​
test 11
test 2
2​
test 2
test 3
3​
test 3, test 13
test 4
4​
test 5
5​
test 6
6​
test 7
7​
test 8
8​
test 9
9​
test 10
10​
test 11
1​
test 12
2​
test 13
3​
test 14
4​
test 15
5​
test 16
6​
test 17
7​
test 18
8​
test 19
9​
test 20
10​

Formula:
=TEXTJOIN(", ";TRUE;(IF(F4=$B$2:$B$21;C2:$C$21;"")))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,933
Messages
6,175,470
Members
452,646
Latest member
tudou

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