#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Creating a List

Lemme see if I can explain this adequately...lol
I have two sheets with account numbers on them. One sheet is ALL acct #'s
and the 2nd is USED acct #'s. I would like to (on sheet 3) compare both
lists of acct #'s and then list the ones that are not on both sheets. Hope
this makes sense.... Any help is GREATLY appreciated!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Creating a List


frustratedwthis wrote:
Lemme see if I can explain this adequately...lol
I have two sheets with account numbers on them. One sheet is ALL acct #'s
and the 2nd is USED acct #'s. I would like to (on sheet 3) compare both
lists of acct #'s and then list the ones that are not on both sheets. Hope
this makes sense.... Any help is GREATLY appreciated!!


Here is an idea....

If Sheet1 has all account #'s then there aren't any on Sheet1 that
aren't on Sheet2. So, on Sheet3, I would copy the full list of account
numbers from Sheet1, and paste them in column A. Then, in column B
write a formula similar to this:

=IF(ISERROR(VLOOKUP(A2,Sheet2!$A$1:$A$5,1,0)),"NOT USED","USED")

It will try to lookup an account number in Sheet2 (the used account
numbers). If it doesn't exist, then it will create an error in the
vlookup, and the If statement will produce a "NOT USED". If there
isn't an error in the Vlookup, then it will put a "USED" because it was
able to look it up. The next step would be to insert a row at the top
of Sheet3, and put in some headings so that you can AutoFilter the
data. Column A would be Acct #'s. Column B would be "Exist", or
something to that effect. Then select all the data in sheet3
(including the headings), and DataFilterAutofilter. Click on the
little arrow on the heading of column B, and there should just be a
"NOT USED" or a "USED". Select the "NOT USED" and the resulting list
should be those that are on Sheet1, but not Sheet2. Obviously, do a
check to see if it is working correctly!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Creating a List

I figured out how to show only the acct numbers that are not used. My
dilemma is now this...
they are all spread out in column C. One acct no might be in row 4 and the
next might not be until row 25. Do you know how I can have all the acct
numbers listed in column D, starting with row 1?

"Paul" wrote:


frustratedwthis wrote:
Lemme see if I can explain this adequately...lol
I have two sheets with account numbers on them. One sheet is ALL acct #'s
and the 2nd is USED acct #'s. I would like to (on sheet 3) compare both
lists of acct #'s and then list the ones that are not on both sheets. Hope
this makes sense.... Any help is GREATLY appreciated!!


Here is an idea....

If Sheet1 has all account #'s then there aren't any on Sheet1 that
aren't on Sheet2. So, on Sheet3, I would copy the full list of account
numbers from Sheet1, and paste them in column A. Then, in column B
write a formula similar to this:

=IF(ISERROR(VLOOKUP(A2,Sheet2!$A$1:$A$5,1,0)),"NOT USED","USED")

It will try to lookup an account number in Sheet2 (the used account
numbers). If it doesn't exist, then it will create an error in the
vlookup, and the If statement will produce a "NOT USED". If there
isn't an error in the Vlookup, then it will put a "USED" because it was
able to look it up. The next step would be to insert a row at the top
of Sheet3, and put in some headings so that you can AutoFilter the
data. Column A would be Acct #'s. Column B would be "Exist", or
something to that effect. Then select all the data in sheet3
(including the headings), and DataFilterAutofilter. Click on the
little arrow on the heading of column B, and there should just be a
"NOT USED" or a "USED". Select the "NOT USED" and the resulting list
should be those that are on Sheet1, but not Sheet2. Obviously, do a
check to see if it is working correctly!


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
Help needed - creating invoice from packing list (both in excel) [email protected] Excel Discussion (Misc queries) 0 August 22nd 06 10:18 AM
Help needed - creating invoice from packing list (both in excel) [email protected] Excel Discussion (Misc queries) 0 August 22nd 06 10:13 AM
Creating a List based on your choice from Another List Cristi Excel Discussion (Misc queries) 1 August 14th 06 06:00 PM
question about creating a simple drop down list [email protected] Excel Worksheet Functions 4 March 18th 06 06:03 AM
Creating an invoice with a lookup list wings Excel Discussion (Misc queries) 6 October 30th 05 02:37 AM


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

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

About Us

"It's about Microsoft Excel"