Matching Two Columns with a twist

redmanx03

New Member
Joined
Jun 23, 2010
Messages
17
I have 3 columns two cloumns are ACCT numbers and third is comments
Column A has a longer list of acct numbers than does B, But column B had the same amount of rows as does C,(I copied and pasted from another sheet) How can i match A to B while still keeping C intact to B?

Column A Column B Column C
123 456 ihjh
345 123 jkjh
745 346 wqpeou
897
346
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Move the Column A to a new sheet use vlookup to match waht is in Column B
 
Upvote 0
What did you mean by "match A to B while still keeping C"
 
Upvote 0
i used this code and it worked

=IF(ISNUMBER(MATCH(A2,$B$2:$B$400,0)),INDEX($C$2:$C$400,MATCH(A2,$B$2:$B$400,0)),"Not Found")
 
Upvote 0
i used this code and it worked

=IF(ISNUMBER(MATCH(A2,$B$2:$B$400,0)),INDEX($C$2:$C$400,MATCH(A2,$B$2:$B$400,0)),"Not Found")


Try this

Excel Workbook
ABCD
1ABCE
2123456ihjhjkjh
3345123jkjhNot Found
4745346wqpeouNot Found
5897Not Found
6346wqpeou
Sheet3
Excel 2007
Cell Formulas
RangeFormula
D2=IFERROR(VLOOKUP(A2,$B$2:$C$6,2,0),"Not Found")
D3=IFERROR(VLOOKUP(A3,$B$2:$C$6,2,0),"Not Found")
D4=IFERROR(VLOOKUP(A4,$B$2:$C$6,2,0),"Not Found")
D5=IFERROR(VLOOKUP(A5,$B$2:$C$6,2,0),"Not Found")
D6=IFERROR(VLOOKUP(A6,$B$2:$C$6,2,0),"Not Found")




Produce Same Result as you want
 
Upvote 0

Forum statistics

Threads
1,213,496
Messages
6,113,995
Members
448,539
Latest member
alex78

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