ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Deleting all cells that appear more than once (https://www.excelbanter.com/excel-discussion-misc-queries/164554-deleting-all-cells-appear-more-than-once.html)

Johnny

Deleting all cells that appear more than once
 
I have a list of NY State zip codes I provide service in. I combined that
with a list of all zip codes in NY State. I need to show just the zips I
don't provide service in.
How do I do that quickly.



David M. Marcovitz

Deleting all cells that appear more than once
 
If you put all your zip codes that you service in column A (starting at
row 2) and all the zip codes in NY in column B, then you can put the
following in cell C2 and fill down:

=IF(COUNTIF(A$2:A$100,B2)=0,"X","")

This will put an X in column C next to all the zips you don't service.
Then you can either sort based on column C or autofilter to only choose
those in column C.

--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/

?B?Sm9obm55?= wrote in
:

I have a list of NY State zip codes I provide service in. I combined
that with a list of all zip codes in NY State. I need to show just
the zips I don't provide service in.
How do I do that quickly.





David M. Marcovitz

Deleting all cells that appear more than once
 
One more quick note is that in my last response I only had it check from
rows 2 to 100 for your list of zip codes you service. If you have more than
99, just change the 100 to something larger.
--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/

?B?Sm9obm55?= wrote in
:

I have a list of NY State zip codes I provide service in. I combined
that with a list of all zip codes in NY State. I need to show just
the zips I don't provide service in.
How do I do that quickly.





Gary''s Student

Deleting all cells that appear more than once
 
Here is an example. Say your codes are in column A from A1 thru A20. Say
the NY codes are in column B from B1 thru B100. In C1 enter:

=COUNTIF($A$1:$A$20,B1)

and copy down to match all the B's. A zero in C means its not in your list.
A one in C means its in your list. Just sort B&C by C. All the zeros will
be at the top.
--
Gary''s Student - gsnu200753


"Johnny" wrote:

I have a list of NY State zip codes I provide service in. I combined that
with a list of all zip codes in NY State. I need to show just the zips I
don't provide service in.
How do I do that quickly.



Johnny

Deleting all cells that appear more than once
 
Worked like a charm. Thanks so much. I was able to figure out substituting
2205 zips in NY for your 100 value.

"David M. Marcovitz" wrote:

One more quick note is that in my last response I only had it check from
rows 2 to 100 for your list of zip codes you service. If you have more than
99, just change the 100 to something larger.
--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/

?B?Sm9obm55?= wrote in
:

I have a list of NY State zip codes I provide service in. I combined
that with a list of all zip codes in NY State. I need to show just
the zips I don't provide service in.
How do I do that quickly.






Johnny

Deleting all cells that appear more than once
 
Thanks Gary. Yours worked too.

"Gary''s Student" wrote:

Here is an example. Say your codes are in column A from A1 thru A20. Say
the NY codes are in column B from B1 thru B100. In C1 enter:

=COUNTIF($A$1:$A$20,B1)

and copy down to match all the B's. A zero in C means its not in your list.
A one in C means its in your list. Just sort B&C by C. All the zeros will
be at the top.
--
Gary''s Student - gsnu200753


"Johnny" wrote:

I have a list of NY State zip codes I provide service in. I combined that
with a list of all zip codes in NY State. I need to show just the zips I
don't provide service in.
How do I do that quickly.




All times are GMT +1. The time now is 09:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com