Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Microsoft Support > Microsoft Office support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Microsoft Office support MS Office support forum

Reply
 
LinkBack Thread Tools
Old 05-10-2006, 07:03 AM   #1 (permalink)
PRP
Registered User
 
Join Date: May 2006
Posts: 86
OS: xp


Look Up Problem!!!

Hello,

I want to match the same numbers from two Sheets.

Sheet1 have 10000 mobile numbers
and
Sheet2 got 4000 mobile numbers

Now, all the 4000 mobile numbers in sheet2 are in 10000 numbers from Sheet1
Can we know which mobile no. are matching from sheet1.

Is there any formula or code which will show the same number from sheet1

Please help,

Thanks in Advance,
PRP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 05-10-2006, 07:59 AM   #2 (permalink)
Superhuman Computer
 
ReeKorl's Avatar
 
Join Date: Mar 2005
Location: 6th Circle, The City of Dis, Hell
Posts: 1,610
OS: WinXP Pro SP2

My System

Are all of the numbers (the 10000) unique, or are there multiple instances of a particular number in that list of 10000? If they're all unique, it will be quite simple to look them up from the second page.

Assumptions: Sheet 1 is called Sheet1 in Excel. On sheet 1, you have a list of phone numbers in column A, from cell A1 to cell A10000. You have the information you want transferred onto sheet 2 in column B, alongside the numbers in column A. On sheet 2, you have the list of 4000 numbers in column A, from cell A1 to A4000. You want the information put alongside these numbers in column B.

The formula you need to put into column B on sheet 2 is as follows:

Code:
=INDEX(Sheet1!$B$1:$B$10000,MATCH(A1,Sheet1!$A$1:$A$10000,0))
Enter this formula into cell B1 on sheet 2, auto fill it to the bottom of the phone numbers on the sheet, and you'll get the info you need.

You can customise the formula I've supplied to point it at the right places, but it should work perfectly.

Note: The phone numbers need to be in the same format, so if one is in the format 1800-800-8000 and on the other sheet it is 18008008000, it will not recognise them as being the same.

Brief explanation of the formula: INDEX is looking up a value that you want - in this case it's somewhere on Sheet1 in cells B1 through B10000. MATCH is telling it which value to look up, by referencing the value directly to the left of it on Sheet2, and finding it on Sheet1. The final 0 in the MATCH formula is saying do an exact find, so if the exact same value comes up, it takes it. If there are multiple values the same in Sheet1, it will take the first matching value it finds.

-EDIT

After reading over your problem again, it's possible I've misunderstood what you want... do you want to show on sheet 1 which numbers match with a number on sheet 2? If so, you can use the same type of formula to check this.

Code:
=INDEX(Sheet2!$A$1:$A$4000,MATCH(A1,Sheet2!$A$1:Sheet2!$A$4000,0))
Put this formula in B1 on sheet 1 and it will return the phone number in Sheet2 which matches the one next to the one on sheet 1. You can go one step further and put an =IF in there too, as if it can't find the number it will return an #N/A error.

Therefore:

Code:
=IF(ISERR(INDEX(Sheet2!$A$1:$A$4000,MATCH(A1,Sheet2!$A$1:Sheet2!$A$4000,0))),"No Match","Match")
will bring up the word "Match" if the number is on both sheet 1 and sheet 2, or "No Match" if it is only on sheet 1.

Hope this helps (and that I haven't confused you too much!). If anything is too confusing, let me know and I'll make a sample spreadsheet for you to look at.
__________________
"Sorry, the number you have dialled is imaginary. Please rotate dial by 90 degrees and try again."

Last edited by ReeKorl; 05-10-2006 at 08:00 AM.
ReeKorl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-10-2006, 09:55 AM   #3 (permalink)
PRP
Registered User
 
Join Date: May 2006
Posts: 86
OS: xp


Hello,

Hello, I understood the basic now,...It was not confusing but I learned something from u....

your 1st formula was okay to me,....

What I understand and got the result after the formula I entered is :
I got the match if there any from both the sheets which is perfect,...

Now what I need to find out is :
I want to delete the mobile numbers from sheet1 which is repeating in
sheet2

For eg:
Some of the numbers in sheet1 is repeated in Sheet2

Sheet1 Sheet2
7887670102 7887670103
7887670103 7887670104
7887670104 7887670109
7887670105 7887670110
7887670106 7887670115
7887670107 7887670116
7887670108 7887670117
7887670109
7887670110
7887670111
7887670112
7887670113
7887670114
7887670115
7887670116
7887670117
7887670118
7887670119
7887670120

Is there any way where I can remove the same repeated numbers from
Sheet1

Thanks in Advance,
PRP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-12-2006, 02:21 AM   #4 (permalink)
Superhuman Computer
 
ReeKorl's Avatar
 
Join Date: Mar 2005
Location: 6th Circle, The City of Dis, Hell
Posts: 1,610
OS: WinXP Pro SP2

My System

The best way to do this would be to flag the repeated numbers on sheet 1. The second method up there should do the job.

Once this is done, make sure each column has a title in the top cell, then click on one of them. Select Autofilter by going Data -> Filter -> Autofilter (or shortcut Alt+DFF) and some arrows will appear on the top row. Click on the arrow at the top of the column showing match or no match, and select Match. This will auto hide any columns which aren't on both pages.

Now, select all rows with data in, then right click and delete them. Click the filter arrow again and select (all) and it will show everything again, but this time it will only show ones which aren't on both sheets as you've just deleted the matching ones.

ALT+DFF again will turn off the autofilter, and you can also delete the header row now.

Hopefully this should do what you're after.
__________________
"Sorry, the number you have dialled is imaginary. Please rotate dial by 90 degrees and try again."
ReeKorl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-12-2006, 06:51 AM   #5 (permalink)
PRP
Registered User
 
Join Date: May 2006
Posts: 86
OS: xp


Hello!!!

Hello,

I am going somewhere wrong I guess,....

When I put the following formula it shows Match which is fine. But when I drag down till my datas, it shows the same answer Match instead of "No Match" for some rows where numbers are different,

=IF(ISERR(INDEX(Sheet2!$A$1:$A$4000,MATCH(A1,Sheet2!$A$1:Sheet2!$A$4000,0))),"No Match","Match")


Secondly how do I do flag,....?

Sorry if its really simple but 'm still learning,.....

Thanks,...
PRP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-12-2006, 06:59 AM   #6 (permalink)
Superhuman Computer
 
ReeKorl's Avatar
 
Join Date: Mar 2005
Location: 6th Circle, The City of Dis, Hell
Posts: 1,610
OS: WinXP Pro SP2

My System

Oops, my bad. Should be ISNA rather than ISERR at the start in that formula. (the result dosn't actually return an 'error' as they define #N/A as a result rather than the error it actually is)

Flagging was just my way of saying you visibly display which match and which don't. Nothing technical, just how I described it.

Hope this sorts things out!
__________________
"Sorry, the number you have dialled is imaginary. Please rotate dial by 90 degrees and try again."
ReeKorl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-12-2006, 07:31 AM   #7 (permalink)
PRP
Registered User
 
Join Date: May 2006
Posts: 86
OS: xp


hEY mATE, gOT IT,.... i TRIED "ISNA" WHICH WORKED,....

tHANK YOU,...

cHEERS!!!
PRP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-12-2006, 07:32 AM   #8 (permalink)
Superhuman Computer
 
ReeKorl's Avatar
 
Join Date: Mar 2005
Location: 6th Circle, The City of Dis, Hell
Posts: 1,610
OS: WinXP Pro SP2

My System

No problem. Glad to have helped
__________________
"Sorry, the number you have dialled is imaginary. Please rotate dial by 90 degrees and try again."
ReeKorl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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




All times are GMT -7. The time now is 09:16 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85