Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default Create a 3rd sheet containing cells in both Sheets 1 and 2

I have 2 sheets. They both contain a list of Account Numbers. What I want to
do is to have a 3rd sheet created containing only those account numbers that
are found in both Sheet 1 and Sheet 2.

For example:

Sheet 1
Account Numbers
AAAAA
BBBBB
CCCCC
DDDDD
EEEEE
FFFFFF
9999999
GGGGGG
HHHHHH
IIIIIII
JJJJJJ
KKKKKK
LLLLLLL
333333
444444


Sheet 2
Account Numbers
1111111
KKKKKKK
222222
EEEEEEE
999999
XXXXXXX
TTTTTTTT
AAAAAA
FFFFFFFF

Sheet 3
AAAAAAA
EEEEEEEE
FFFFFFF
9999999
KKKKKKKK
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default Create a 3rd sheet containing cells in both Sheets 1 and 2

By the way, I am a REAL BIG beginner with excel, so please provide some
hand-holding in the instructions. 8-) thank you.
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default Create a 3rd sheet containing cells in both Sheets 1 and 2

Or if it would be easier to have all the info on one sheet,
I could put info on Sheet 2 into some columns on Sheet 1. And I do not mind
having the Sheet3 data (the "pairs") onto some colum(s) on sheet 1, as well.
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,124
Default Create a 3rd sheet containing cells in both Sheets 1 and 2

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Roadtripper902902V3V"
wrote in message ...
Or if it would be easier to have all the info on one sheet,
I could put info on Sheet 2 into some columns on Sheet 1. And I do not
mind
having the Sheet3 data (the "pairs") onto some colum(s) on sheet 1, as
well.


  #5   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Create a 3rd sheet containing cells in both Sheets 1 and 2

Presuming that there's no duplicate account numbers in either Sheet1's data
or in Sheet2's data, you could try this easy formulas option to carve out the
expected results

In Sheet3,
In A2 down, do a copy n paste of the data from Sheet1/2, one below the other
(the pastes can be in any sequence). Done in 5 secs flat.

Put in B2:
=IF(AND(COUNTIF(A:A,A2)=2,COUNTIF(A$2:A2,A2)<2),R OW(),"")

Put in C2:
=IF(ROWS($1:1)COUNT(B:B),"",INDEX(A:A,SMALL(B:B,R OWS($1:1))))
Copy B2:C2 down to the last row of data in col A. Hide/minimize col B. Col A
will return the expected results all neatly packed at the top. Success? hit
the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Roadtripper902902V3V" wrote:
Or if it would be easier to have all the info on one sheet,
I could put info on Sheet 2 into some columns on Sheet 1. And I do not mind
having the Sheet3 data (the "pairs") onto some colum(s) on sheet 1, as well.



  #6   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Create a 3rd sheet containing cells in both Sheets 1 and 2

oops, typo:
.. Col A will return the expected results all neatly packed at the top.

It should read Col C (not Col A). But of course
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default Create a 3rd sheet containing cells in both Sheets 1 and 2

13181543
  #8   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default SOLUTION

Thanks, everyone.
I was able to find the solution by putting this in
C2: =VLOOKUP(A2,$B$2:$B$400,1,FALSE)
C3: =VLOOKUP(A3,$B$2:$B$400,1,FALSE)

Column 1 had all the account numbers from one source. (last row: 348)
Column 2 had all the acount numbers from a different source. (last row 311)
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
Copy Sheet to new Sheet and clear cells on original sheets Boiler-Todd Excel Discussion (Misc queries) 7 September 23rd 09 10:02 PM
copying text on sheet 1 to corresponding cells on sheets 2 to 5 Lisa New Users to Excel 5 October 1st 08 06:01 AM
Create summary sheet of last row of info from other sheets Lisa Excel Worksheet Functions 5 December 14th 07 03:57 PM
How do I create a formula using cells from two different sheets? Elaine Z Excel Worksheet Functions 2 October 31st 07 02:41 AM
Create a single sheet from many sheets MS Office Excel Worksheet Functions 1 September 7th 05 08:07 AM


All times are GMT +1. The time now is 06:45 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"