3 Seasons only

nitebyfly

New Member
Joined
Mar 12, 2011
Messages
12
I have 21K rows of data where I need to delete entries under the following criteria;

delete those rows that only match one season OR
delete those rows that only match two seasons.

Keep those rows that where a name matches three seasons
(Fall, Jan(winter), Spring)

A B C
1 last first season
2 smith james fall
3 smith james jan(winter)
4 smith james spring
5 taylor john fall
6 taylor john spring
7 sand fresh fall

In this example the goal would be to delete or mark for deletion rows 5, 6 & 7.

Thank you for any help you can provide.

Tim
 
ahhhhh! I see now, so you could instead create a helper column with a formula
Excel Workbook
ABCD
1lastfirstseason
2smithjamesfall3
3smithjamesjan(winter)3
4smithjamesspring3
5taylorjohnfall2
6taylorjohnspring2
7sandfreshfall1
Sheet1
Excel 2003
Cell Formulas
RangeFormula
D2=SUMPRODUCT(--($A$2:$A$7=A2),--($B$2:$B$7=B2))

Copy the formula down, then do a auto filter for the helper column that is less than 3. Delete those lines
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I LOVE EXCEL PEOPLE! Thank you for your staying power. Yes, that does work on the example. EXCELLENT.

Thank you, thank you, thank you.

Tim
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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