How to Combine Data in 2 Table of different Worksheets?

ameenakbar

New Member
Joined
Mar 15, 2014
Messages
30
I have two worksheet in excel file. in Sheet 1, there are Identity in Column A and Names on Column B. In Sheet 2 there is Identity in Column A and Score in Column B. There are 45000+ records (rows) in Sheet 1 and 22000+ records (rows) in Sheet 2. Mean Sheet 2 is half from Sheet 1. I want to put SCORE in Column C of Sheet 1. This column will half blank after completion, as its source is not complete. I dont want to use VLookup formula. That give nearest answer, but i want exact. I want that Identity which match from both sheets show in Column C of Sheet A. The Identity which are not in Sheet 2, show blank in Column C of Sheet A.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
ameenakbar,

Welcome to the MrExcel forum.

What version of Excel and Windows are you using?

Are you using a PC or a Mac?

Can you post a screenshot of each of the actual raw data worksheets?

And, can you post a screenshot of the worksheet results (manually formatted by you) that you are looking for?

To post your data, you can download and install one of the following two programs:
Excel Jeanie
MrExcel.com | Excel Resources | Excel Seminars | Excel Products

Or, when using Internet Explorer, just put borders around your data in Excel and copy those cells into your post.
See reply #2 the BLUE text in the following link:
http://www.mrexcel.com/forum/about-board/444901-how-create-table-like-aladin.html#post2198045


If you are not able to give us screenshots:
You can upload your workbook to Box Net,
sensitive data changed
mark the workbook for sharing
and provide us with a link to your workbook.
 
Upvote 0
ameenakbar,

Sample raw data in worksheet Sheet2:


Excel 2007
AB
1IdentityScore
226
337
458
575
697
7114
81256
91516
101612
111811
122010
13229
14236
15268
163012
173111
183321
193524
204123
214315
224512
23
Sheet2


And, in worksheet Sheet1:


Excel 2007
ABC
1IdentityNameScore
21Mr. Name 1 
32Mr. Name 26
43Mr. Name 37
54Mr. Name 4
65Mr. Name 58
76Mr. Name 6
87Mr. Name 75
98Mr. Name 8
109Mr. Name 97
1110Mr. Name 10
1211Mr. Name 114
1312Mr. Name 1256
1413Mr. Name 13
1514Mr. Name 14
1615Mr. Name 1516
1716Mr. Name 1612
1817Mr. Name 17
1918Mr. Name 1811
2019Mr. Name 19
2120Mr. Name 2010
Sheet1
Cell Formulas
RangeFormula
C2=IF(ISERROR(VLOOKUP(A2,Sheet2!A:B,2,)),"",VLOOKUP(A2,Sheet2!A:B,2,))



The following VLOOKUP formula in cell C2, copied down:
=IF(ISERROR(VLOOKUP(A2,Sheet2!A:B,2,)),"",VLOOKUP(A2,Sheet2!A:B,2,))
 
Upvote 0
Its works, greatttttttt. Thank you, thank you, thank You, sooooooooooooooo much, Thank dear hiker 95, Mr. Excel and all other members, Its really a great forum for excel. I will keep in touch with this. Thanks again.
 
Upvote 0
Thanks alot, By the way, what is the formula if i want text "Not Available" instead of blank cell in C2 of Sheet 1?
 
Upvote 0
Great, and what is the formula if i want in D2 of Sheet1 that, If C2 is blank then D2 is Not Available, if not blank then put value of C2.
 
Upvote 0
ameenakbar,

Something like this?


Excel 2007
ABCD
1IdentityNameScore
21Mr. Name 1Not AvailableNot Available
32Mr. Name 266
43Mr. Name 377
54Mr. Name 4Not AvailableNot Available
65Mr. Name 588
76Mr. Name 6Not AvailableNot Available
87Mr. Name 755
98Mr. Name 8Not AvailableNot Available
109Mr. Name 977
1110Mr. Name 10Not AvailableNot Available
1211Mr. Name 1144
1312Mr. Name 125656
1413Mr. Name 13Not AvailableNot Available
1514Mr. Name 14Not AvailableNot Available
1615Mr. Name 151616
1716Mr. Name 161212
1817Mr. Name 17Not AvailableNot Available
1918Mr. Name 181111
2019Mr. Name 19Not AvailableNot Available
2120Mr. Name 201010
22
Sheet1
Cell Formulas
RangeFormula
C2=IF(ISERROR(VLOOKUP(A2,Sheet2!A:B,2,)),"Not Available",VLOOKUP(A2,Sheet2!A:B,2,))
D2=IF(C2="","Not Available",IF(C2<>"",C2))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top