Eliminating Duplicates from the Query Results

Moxioron

Active Member
Joined
Mar 17, 2008
Messages
436
Office Version
  1. 2019
Hello all.

What I am trying to do is eliminate duplicates from the query results. I don't want to delete the record from the table, just have the query reflect only one record, not both.

Hope that made sense.

Thanks for you help.
 

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
If they are truly duplicates (no field different) then one question is how is that possible? But for those you could modify the query to use SELECT DISTINCTROW...etc.
 
Upvote 0
It's a table full of transactions that come in more than once. Sometimes up to three times. So they are not truly 'duplicates' as they come in on different days, but I only need to count them once for my query.

But I figured it out. I changed my Query to a totals and it worked.
 
Upvote 0
It's a table full of transactions that come in more than once. Sometimes up to three times. So they are not truly 'duplicates' as they come in on different days, but I only need to count them once for my query.

But I figured it out. I changed my Query to a totals and it worked.

The distinctrow would work too (and be more efficient than the grouping) as long as you don't include the changing date field (which you couldn't include in the grouping query either).
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

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