Find a match in one column with other column and then replace it with a value

cerebral

New Member
Joined
Jun 16, 2015
Messages
9
Hello,

I am trying to match Phone numbers from Customers sheet to the records in Calls_Logs sheet. I want the name in Call Logs sheet to get updated according to matching phone number. I have close to 300000 records so it is impossible for me to do it manually. I tried using this code: =VLOOKUP(B3,Patient!A:C,2,FALSE) but it is not able to find out. Please some one help me out

Customers sheet
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Last[/TD]
[TD]First[/TD]
[TD]Other Phone[/TD]
[TD]Work Phone[/TD]
[TD]Home Phone[/TD]
[/TR]
[TR]
[TD]Mysterio[/TD]
[TD]Rey[/TD]
[TD]7864866789[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Steiner[/TD]
[TD]Scott[/TD]
[TD][TABLE="width: 88"]
<tbody>[TR]
[TD="width: 88, align: right"]9546329085[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD]3972598[/TD]
[/TR]
[TR]
[TD]Cold[/TD]
[TD]Stone[/TD]
[TD][TABLE="width: 88"]
<tbody>[TR]
[TD="width: 88, align: right"]6612628976[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD]78630585356[/TD]
[/TR]
[TR]
[TD]Lisa [/TD]
[TD]Ray[/TD]
[TD][TABLE="width: 88"]
<tbody>[TR]
[TD="width: 88, align: right"]3619455588[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 78"]
<tbody>[TR]
[TD="width: 78, align: right"]2249332353[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Call_Logs Sheet
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Phone Number[/TD]
[TD]Date[/TD]
[TD]Time[/TD]
[TD]Duration[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD][TABLE="width: 104"]
<tbody>[TR]
[TD="width: 104, align: right"]3972598[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 112"]
<tbody>[TR]
[TD="width: 112"]Mon 05/11/2015[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64, align: right"]3:51 PM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64, align: right"]0:02:51[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 104"]
<tbody>[TR]
[TD="width: 104, align: right"]6612628976[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 112"]
<tbody>[TR]
[TD="width: 112"]Fri 04/24/2015[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64, align: right"]4:27 PM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64, align: right"]0:01:18[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 104"]
<tbody>[TR]
[TD="width: 104, align: right"]7864866789[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 112"]
<tbody>[TR]
[TD="width: 112"]Tue 03/31/2015[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64, align: right"]12:02 PM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64, align: right"]0:03:53[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
No I am not using merged data. But the problem I think maybe is that all phone numbers are not in same format for eg. there is one phone number which is 31244432988 the other is in 7899800 and some other are in 1119007788. So basically they have different length.
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
That shouldn't matter as all we are doing is looking for a match for the number and returning the name that goes with it. This formula is working perfectly for me and I set up my sheets exactly the way you have them... maybe you could post a link to download the file and I can see what the problem is?
 
Upvote 0
That shouldn't matter as all we are doing is looking for a match for the number and returning the name that goes with it. This formula is working perfectly for me and I set up my sheets exactly the way you have them... maybe you could post a link to download the file and I can see what the problem is?

Hey thanks a lot, but still I am getting names for wrong phone numbers. I cannot upload data about contacts of patients. Maybe there is some problem in data, anyways thanks a lot for your help
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,999
Members
452,373
Latest member
TimReeks

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