2 cells in on row match 2 cells in another row. Take other data and copy

TylerH

New Member
Joined
Mar 15, 2018
Messages
1
Hello,

i have tried to do this but can’t seem to figure it out.

i have a work book with 2 sheets and I want it to match two columns with two columns on anouthher sheet and if they are the same then to copy anouthrr column. Example bellow

sheet1
A................. B. .... E
Cable#.......Side......unit
1. Cable1 _____. Unit1.
2. Cable 1 _____. Unit2.
3. Cable 2. ______. Unit1.
4. Cable2. ______. Unit3.

sheet 2
A. ............B. ..........C
Cable#. Unit#..... Side
1. Cable1 Unit1. SideA
2. Cable 1 Unit2. SideB
3. Cable 2. Unit1. SideA
4. Cable2. Unit3. SideB

So what I need is if sheet1 A1&E1 are the same as sheet2 A1&B1 then sheet2 C1 will copy to sheet1 B1


note the lines on sheet 2 are all over the place but the unit will always go with the cabl# on both sheets. There are multiple lines with the same unit which is why it has to match the cable#. The side a & b of the cable # will always be different unit #s

Also sheet 2 is in a table if that helps


thanks in advance

tyler
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
try


Excel 2010
ABCDE
1Cable1SideAUnit1
2Cable1SideBunit2
3Cable2SideAUnit1
4Cable2SideBunit3
Sheet1
Cell Formulas
RangeFormula
B1{=IFERROR(INDEX(Sheet2!$C$1:$C$4,MATCH(A1&E1,Sheet2!$A$1:$A$4&Sheet2!$B$1:$B$4,0)),"no match")}
B2{=IFERROR(INDEX(Sheet2!$C$1:$C$4,MATCH(A2&E2,Sheet2!$A$1:$A$4&Sheet2!$B$1:$B$4,0)),"no match")}
B3{=IFERROR(INDEX(Sheet2!$C$1:$C$4,MATCH(A3&E3,Sheet2!$A$1:$A$4&Sheet2!$B$1:$B$4,0)),"no match")}
B4{=IFERROR(INDEX(Sheet2!$C$1:$C$4,MATCH(A4&E4,Sheet2!$A$1:$A$4&Sheet2!$B$1:$B$4,0)),"no match")}
Press CTRL+SHIFT+ENTER to enter array formulas.



Excel 2010
ABC
1Cable1Unit1SideA
2Cable1unit2SideB
3Cable2Unit1SideA
4Cable2unit3SideB
Sheet2
 
Upvote 0
Cross posted https://www.ozgrid.com/forum/forum/...-row-match-2-cells-in-another-row-copy-a-cell

Cross-Posting
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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