delete all instances of a data if a value on another field exsists?

dtms1

New Member
Joined
Apr 2, 2013
Messages
1
Is this even possible? I've read through many of the MS help pages and a lot of them refer to when having a 2nd table and using relationships. But the thing is my data only exists in a single table.

I'm trying to delete all instances of the data from a single table when one of the fields contains a value.

For example I have the following data:

Item NumberReceivedRejected
10-32500
10-32500
10-32500
6-418080
6-4113
6-4140
6-4172
6-413
6-415
4-422
4-422
15565300
15565250
1556590
155713030
155713232
1557130
1557130

<colgroup><col><col><col></colgroup><tbody>
</tbody>


Where Item number is my main focus (grouping by this column)
and Received maybe something I'd like to sum up (with item number grouped)
And in rejected, if there is any rejected of 1 or greater than delete ALL item numbers with the same item number as the one with a rejection. even if some of the item numbers does not have a rejection (but same number).

How would I do that in the criteria line of query design?
Thank you for your time,
Ray
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,203,028
Messages
6,053,123
Members
444,640
Latest member
Dramonzo

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