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

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Scott T

Well-known Member
Joined
Dec 14, 2016
Messages
2,623
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
try

<b>Excel 2010</b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">1</td><td style=";">Cable1</td><td style=";">SideA</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";">Unit1</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style=";">Cable1</td><td style=";">SideB</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";">unit2</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">3</td><td style=";">Cable2</td><td style=";">SideA</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";">Unit1</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">4</td><td style=";">Cable2</td><td style=";">SideB</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";">unit3</td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Array Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">B1</th><td style="text-align:left">{=IFERROR(<font color="Blue">INDEX(<font color="Red">Sheet2!$C$1:$C$4,MATCH(<font color="Green">A1&E1,Sheet2!$A$1:$A$4&Sheet2!$B$1:$B$4,0</font>)</font>),"no match"</font>)}</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">B2</th><td style="text-align:left">{=IFERROR(<font color="Blue">INDEX(<font color="Red">Sheet2!$C$1:$C$4,MATCH(<font color="Green">A2&E2,Sheet2!$A$1:$A$4&Sheet2!$B$1:$B$4,0</font>)</font>),"no match"</font>)}</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">B3</th><td style="text-align:left">{=IFERROR(<font color="Blue">INDEX(<font color="Red">Sheet2!$C$1:$C$4,MATCH(<font color="Green">A3&E3,Sheet2!$A$1:$A$4&Sheet2!$B$1:$B$4,0</font>)</font>),"no match"</font>)}</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">B4</th><td style="text-align:left">{=IFERROR(<font color="Blue">INDEX(<font color="Red">Sheet2!$C$1:$C$4,MATCH(<font color="Green">A4&E4,Sheet2!$A$1:$A$4&Sheet2!$B$1:$B$4,0</font>)</font>),"no match"</font>)}</td></tr></tbody></table><b>Entered with Ctrl+Shift+Enter.</b> If entered correctly, Excel will surround with curly braces {}.
<b>Note: Do not try and enter the {} manually yourself</b></td></tr></table><br />

<b>Excel 2010</b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">1</td><td style=";">Cable1</td><td style=";">Unit1</td><td style=";">SideA</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style=";">Cable1</td><td style=";">unit2</td><td style=";">SideB</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">3</td><td style=";">Cable2</td><td style=";">Unit1</td><td style=";">SideA</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">4</td><td style=";">Cable2</td><td style=";">unit3</td><td style=";">SideB</td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet2</p><br /><br />
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
59,920
Office Version
  1. 365
Platform
  1. Windows
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.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
59,920
Office Version
  1. 365
Platform
  1. Windows
Resolved on Ozgrid
 

Forum statistics

Threads
1,136,327
Messages
5,675,127
Members
419,551
Latest member
thangxpm

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
Top