Forum

Get rid of no match...
 
Notifications
Clear all

Get rid of no matching rows

3 Posts
2 Users
0 Reactions
140 Views
(@jaryszek)
Posts: 177
Reputable Member
Topic starter
 

Hi Guys,

i have table like here:

Name|Color|Age

Monkey green 3
Dog green 2
Cat Black 3

 

and NamedRange in workbook like here:

InputToTake = 3

The composite Key here is Name&Color.

 

What i want to do is get rid of 2nd row with Dog and Green.
Why? Because Name&Color is the same and only differ with Age field. For Dog it is 2 and for Monkey is 3.So i want to keep row with Age= 3 because InputToTake = 3

So i bouilt query where result is :

Name|Color|Age|InputToTake

Monkey green 3 3
Dog green 2 3
Cat Black 3 3

 So i want to get rid of Dog because:

1. Age is different than Input to Take
2. The row is duplicated because of keys: Name and Color, only Age is different which i have to check.

How can i do this?

In attachment please find workbook with example.

Please help,
Jacek

 
Posted : 07/08/2021 6:32 am
Alan Sidman
(@alansidman)
Posts: 223
Member Moderator
 

Built a parameter query where I made the Input to Take the filter value in the main query.

File is attached for your review.

 
Posted : 07/08/2021 7:29 pm
(@jaryszek)
Posts: 177
Reputable Member
Topic starter
 

Thank you

 
Posted : 08/08/2021 7:48 am
Share: