Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AYANG
 
Posts: n/a
Default How do I delete duplicate cells?

Is there a way to delete cells if they are already listed on a separate
spreadsheet?
For example, I have two list of names (list A & B)

List A List B
dog cat
cat goose
monkey
kangaroo
goose

Since cells containing cat and goose are in list B, is there a function that
will delete those cells from list A?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default How do I delete duplicate cells?

One formulas play to get there ..

Assume List A is in Sheet1 col A, List B is in Sheet2 col A,
data assumed from row2 down

In a new Sheet3,

Put in A2:
=IF(ROW(A1)COUNT(B:B),"",INDEX(Sheet1!A:A,MATCH(S MALL(B:B,ROW(A1)),B:B,0)))

Put in B2:
=IF(Sheet1!A2="","",IF(ISNUMBER(MATCH(Sheet1!A2,Sh eet2!A:A,0)),"",ROW()))
(Leave B1 empty)

Select A2:B2, copy down to say, B100,
to cover the max expected extent of data in Sheet1's col A

Col A will return the required results neatly bunched at the top,
ie items in Sheet1's col A not found in Sheet2's col A.

(Hide away the criteria col B, if desired)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"AYANG" wrote:
Is there a way to delete cells if they are already listed on a separate
spreadsheet?
For example, I have two list of names (list A & B)

List A List B
dog cat
cat goose
monkey
kangaroo
goose

Since cells containing cat and goose are in list B, is there a function that
will delete those cells from list A?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete row where there is duplicate data in Column E SITCFanTN New Users to Excel 1 June 4th 06 09:35 AM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 05:57 PM
Delete text in cells but keep formula YanYan Excel Worksheet Functions 4 December 1st 05 02:08 PM
Preventing Duplicate Cells BenBlair Excel Discussion (Misc queries) 2 May 19th 05 06:08 PM
Delete contents of unprotected cells in workbook BD7447 Excel Worksheet Functions 1 November 6th 04 06:41 PM


All times are GMT +1. The time now is 10:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"