Match ID and fill down with data

philmatth

Board Regular
Joined
Oct 6, 2008
Messages
123
Office Version
  1. 2003 or older
Platform
  1. Windows
I need to fill down column E (Phone 2) with the phone number where the client ID in column A matches the Phone ID in column C

Column A has 184 records, column C and D have 13,022 records. Any help would be greatly appreciated

Client IDNamePhone IDPhonephone2
3​
Gregory
3​
717 203 0044717 203 0044
29​
Therese
29​
845-677-8886845-677-8886
269​
Cheryl
345​
70747912337074791233
345​
Edward
346​
3607946070
401​
Susanna
347​
706-291-9428
439​
Gilles
348​
6314231982
451​
Nancy
349​
604-615-5640
452​
Thomas
350​
253-638-2548
522​
Dr. Marji
351​
8286809606
530​
Leigh
352​
617-869-0862
531​
Laurie
353​
516 665-9678
876​
Pamela
354​
707-758-3319
1031​
jolie
355​
5104077806
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
=IF(COUNTIF($A$3:$A$15,C3),D3,"")

i have put formula in F - just to compare to your expected results

Book6
ABCDEF
2Client IDNamePhone IDPhonephone2
33Gregory3717 203 0044717 203 0044717 203 0044
429Therese29845-677-8886845-677-8886845-677-8886
5269Cheryl345707479123370747912337074791233
6345Edward3463607946070 
7401Susanna347706-291-9428 
8439Gilles3486314231982 
9451Nancy349604-615-5640 
10452Thomas350253-638-2548 
11522Dr. Marji3518286809606 
12530Leigh352617-869-0862 
13531Laurie353516 665-9678 
14876Pamela354707-758-3319 
151031jolie3555104077806 
Sheet1
Cell Formulas
RangeFormula
F3:F15F3=IF(COUNTIF($A$3:$A$15,C3),D3,"")
 
Upvote 0
=IF(COUNTIF($A$3:$A$15,C3),D3,"")

i have put formula in F - just to compare to your expected results

Book6
ABCDEF
2Client IDNamePhone IDPhonephone2
33Gregory3717 203 0044717 203 0044717 203 0044
429Therese29845-677-8886845-677-8886845-677-8886
5269Cheryl345707479123370747912337074791233
6345Edward3463607946070 
7401Susanna347706-291-9428 
8439Gilles3486314231982 
9451Nancy349604-615-5640 
10452Thomas350253-638-2548 
11522Dr. Marji3518286809606 
12530Leigh352617-869-0862 
13531Laurie353516 665-9678 
14876Pamela354707-758-3319 
151031jolie3555104077806 
Sheet1
Cell Formulas
RangeFormula
F3:F15F3=IF(COUNTIF($A$3:$A$15,C3),D3,"")
Hi Etaf,
sorry that's not working for me, The phone number 7074791233 is assigned to the phone ID 345 but the client ID is 269, the phone ID 269 is further down the sheet
 
Upvote 0
your example needs to show expectred results

how about
=IFERROR(INDEX($D$2:$D$14,MATCH(A2,$C$2:$C$14,0)),"")

As only 3 IDS match i changed 1 further down 522 to match and get the number


Book1
ABCDE
1Client IDNamePhone IDPhonephone2
23Gregory3717 203 0044717 203 0044
329Therese29845-677-8886845-677-8886
4269Cheryl3457074791233 
5345Edward34636079460707074791233
6401Susanna347706-291-9428 
7439Gilles3486314231982 
8451Nancy349604-615-5640 
9452Thomas350253-638-2548 
10522Dr. Marji3518286809606707-758-3319
11530Leigh352617-869-0862 
12531Laurie353516 665-9678 
13876Pamela522707-758-3319 
141031jolie3555104077806 
Sheet1
Cell Formulas
RangeFormula
E2:E14E2=IFERROR(INDEX($D$2:$D$14,MATCH(A2,$C$2:$C$14,0)),"")
 
Upvote 0
your example needs to show expectred results

how about
=IFERROR(INDEX($D$2:$D$14,MATCH(A2,$C$2:$C$14,0)),"")

As only 3 IDS match i changed 1 further down 522 to match and get the number


Thanks for the quick reply and sorry for the confudsion. I've entered that in E2 and I just get #NAME?
 
Upvote 0
did you copy and paste the formula , or retype it ??? Name usually means a typing error, function NOT known, range not a real range typo

no need to copy my post into a reply
 
Upvote 0
ok, it works for me

CONFIRM
what version of excel - you say 2003 or older - not sure when index/match was released - but i suspect earlier .....


it maybe IFERROR

try without the iferror

=INDEX($D$2:$D$14,MATCH(A2,$C$2:$C$14,0))

or this will work - but give n/a where no match

=VLOOKUP(A2,$C$2:$D$14,2,FALSE)

then we can think about the error

Book3
ABCDEF
1Client IDNamePhone IDPhonephone2
23Gregory3717 203 0044717 203 0044717 203 0044
329Therese29845-677-8886845-677-8886845-677-8886
4269Cheryl3457074791233 #N/A
5345Edward346360794607070747912337074791233
6401Susanna347706-291-9428 #N/A
7439Gilles3486314231982 #N/A
8451Nancy349604-615-5640 #N/A
9452Thomas350253-638-2548 #N/A
10522Dr. Marji3518286809606707-758-3319707-758-3319
11530Leigh352617-869-0862 #N/A
12531Laurie353516 665-9678 #N/A
13876Pamela522707-758-3319 #N/A
141031jolie3555104077806 #N/A
Sheet1
Cell Formulas
RangeFormula
E2:E14E2=IFERROR(INDEX($D$2:$D$14,MATCH(A2,$C$2:$C$14,0)),"")
F2:F14F2=VLOOKUP(A2,$C$2:$D$14,2,FALSE)
 
Upvote 0
Solution
Perfect, thanks so much, =VLOOKUP(A2,$C$2:$D$14,2,FALSE) worked for me. I really do appreciate the help here, once again thank you!
 
Upvote 0
you are welcome

it must be the IFERROR issue , as added in version 2007

ISERROR is available in earlier versions
=IF(ISERROR(VLOOKUP(A2,$C$2:$D$14,2,FALSE)),"",VLOOKUP(A2,$C$2:$D$14,2,FALSE))

Book3
ABCDEF
1Client IDNamePhone IDPhonephone2
23Gregory3717 203 0044717 203 0044717 203 0044
329Therese29845-677-8886845-677-8886845-677-8886
4269Cheryl3457074791233  
5345Edward346360794607070747912337074791233
6401Susanna347706-291-9428  
7439Gilles3486314231982  
8451Nancy349604-615-5640  
9452Thomas350253-638-2548  
10522Dr. Marji3518286809606707-758-3319707-758-3319
11530Leigh352617-869-0862  
12531Laurie353516 665-9678  
13876Pamela522707-758-3319  
141031jolie3555104077806  
Sheet1
Cell Formulas
RangeFormula
E2:E14E2=IF(ISERROR(INDEX($D$2:$D$14,MATCH(A2,$C$2:$C$14,0))),"",INDEX($D$2:$D$14,MATCH(A2,$C$2:$C$14,0)))
F2:F14F2=IF(ISERROR(VLOOKUP(A2,$C$2:$D$14,2,FALSE)),"",VLOOKUP(A2,$C$2:$D$14,2,FALSE))
 
Upvote 0

Forum statistics

Threads
1,215,108
Messages
6,123,132
Members
449,098
Latest member
Doanvanhieu

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