Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to find the rows existing in one column but not the other?

Hi,
I have a first worksheet containing 22000 rows of names and 50 columns
of various data, and I have a second worksheet containing 16000 rows of
names without any data columns, the names in the second worksheet are
all in the first worksheet. Now I want to pick out those rows of names
with all the data columns in the first worksheet which are NOT contained
in the second worksheet, probably put them in a new worksheet. Please
help.

Best regards,
Fred Zheng

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default How to find the rows existing in one column but not the other?

in the 1st sheet:
Assuming Column A contains Names and Column B is empty (insert an empty
column), put the following in B2 and copy down:
=VLOOKUP(A2,Sheet2!A$2:A$16000,1,False)
This will return the Name from Sheet2 (if found) or #N/A (if not found).
You can use AutoFilter to quickly spot the records that have #N/A in
columnB.

What you do with them now is up to you: Copy, Move or nothing.

HTH,
--
George Nicholson

Remove 'Junk' from return address.


"Fred" wrote in message
...
Hi,
I have a first worksheet containing 22000 rows of names and 50 columns
of various data, and I have a second worksheet containing 16000 rows of
names without any data columns, the names in the second worksheet are
all in the first worksheet. Now I want to pick out those rows of names
with all the data columns in the first worksheet which are NOT contained
in the second worksheet, probably put them in a new worksheet. Please
help.

Best regards,
Fred Zheng

*** Sent via Developersdex http://www.developersdex.com ***



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
Insert 5 rows between existing values in a single column 1 camsd Excel Worksheet Functions 7 October 16th 08 08:56 PM
to find change and paste existing values/rows in excel with help of form Claudia Excel Discussion (Misc queries) 1 August 10th 06 03:03 PM
Despite data existing in Excel 2002 spreadsheet Find doesn't find AnnieB Excel Discussion (Misc queries) 1 June 16th 06 02:15 AM
macro to find something in column A and delete 5 rows below it vikram Excel Programming 1 April 30th 04 12:04 PM
Use SUMPRODUCT to find duplicate rows (not one column) djb015 Excel Programming 0 December 17th 03 03:36 AM


All times are GMT +1. The time now is 11:24 PM.

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"