Need Match Formula

CARBOB

Well-known Member
Joined
Jun 6, 2005
Messages
1,870
Need formula for column J, using column D:F, to find the values that match the values in column K, using G:I.
Excel Workbook
CDEFGHIJK
207/26/11933C1C9B130C3
307/25/11796B1D4C31B5
407/24/11707B4B1B72D4
507/23/11052B4B2C25C4
607/22/11164D5C9D34D5
707/21/11529C2B3C16D2
807/20/11799B3D4D67B2
907/19/11054D10C4C18D9
1007/18/11248D3C6B39B1
113C1
120B4
Sheet1
Excel 2007
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Need formula for column J, using column D:F, to find the values that match the values in column K, using G:I.

Excel Workbook
CDEFGHIJK
207/26/11933C1C9B130C3
307/25/11796B1D4C31B5
407/24/11707B4B1B72D4
507/23/11052B4B2C25C4
607/22/11164D5C9D34D5
707/21/11529C2B3C16D2
807/20/11799B3D4D67B2
907/19/11054D10C4C18D9
1007/18/11248D3C6B39B1
113C1
120B4
Sheet1
Excel 2007
CARBOB,

What would be the expected result?

Note: you have repeated values in the region G:I.

Markmzz
 
Upvote 0
Lets look at B5:

B5 => 1 in columns J:K, but I can't see B5 in the range G:I.

Could you give more informations?

Markmzz
 
Upvote 0
Lets look at B5:

B5 => 1 in columns J:K, but I can't see B5 in the range G:I.

Could you give more informations?

Markmzz



A different image where the info in the columns match. Using column I as example C3, the value 0 in Col J comes from Col C-3 rows down. The values BX,CX,DX represent the column and the row where value came from. Another example, look at value 9 in H10, comes from B1.
Excel Workbook
ABCDEFGHI
207/26/11933C1C9B130C3
307/25/11796B1D4C31B5
407/24/11707B4B1B72D4
507/23/11052B4B2C25C4
607/22/11164D5C9D34D5
707/21/11529C2B3C16D2
807/20/11799B3D4D67B2
907/19/11054D10C4C18D9
1007/18/11248D3C6B39B1
113C1
120B4
Sheet1
Excel 2007
 
Last edited:
Upvote 0
Tried to get the formula below to work, getting #NA error. The value in H2 should be 0.



=INDEX($B$2:$D$10,MATCH($I2,$E$2:$G$10,0))
Excel Workbook
ABCDEFGHI
1
207/26/11933C1C9B13#N/AC3
307/25/11796B1D4C31B5
407/24/11707B4B1B72D4
507/23/11052B4B2C25C4
607/22/11164D5C9D34D5
707/21/11529C2B3C16D2
807/20/11799B3D4D67B2
907/19/11054D10C4C18D9
1007/18/11248D3C6B39B1
113C1
120B4
Sheet1
Excel 2007
Cell Formulas
RangeFormula
H2=INDEX($B$2:$D$10,MATCH($I2,$E$2:$G$10,0))
 
Upvote 0
CARBOB,

Try this:


<b>Excel 2007</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th><th>I</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: center;;">7/26/2011</td><td style="text-align: center;background-color: #FFFF00;;">9</td><td style="text-align: center;background-color: #FFFF00;;">3</td><td style="text-align: center;background-color: #FFFF00;;">3</td><td style="text-align: center;;">C1</td><td style="text-align: center;;">C9</td><td style="text-align: center;;">B13</td><td style="text-align: center;;">0</td><td style="text-align: center;background-color: #FFFF00;;">C3</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: center;;">7/25/2011</td><td style="text-align: center;background-color: #FFFF00;;">7</td><td style="text-align: center;background-color: #FFFF00;;">9</td><td style="text-align: center;background-color: #FFFF00;;">6</td><td style="text-align: center;;">B1</td><td style="text-align: center;;">D4</td><td style="text-align: center;;">C3</td><td style="text-align: center;;">1</td><td style="text-align: center;background-color: #FFFF00;;">B5</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: center;;">7/24/2011</td><td style="text-align: center;background-color: #FFFF00;;">7</td><td style="text-align: center;background-color: #FFFF00;;">0</td><td style="text-align: center;background-color: #FFFF00;;">7</td><td style="text-align: center;;">B4</td><td style="text-align: center;;">B1</td><td style="text-align: center;;">B7</td><td style="text-align: center;;">2</td><td style="text-align: center;background-color: #FFFF00;;">D4</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: center;;">7/23/2011</td><td style="text-align: center;background-color: #FFFF00;;">0</td><td style="text-align: center;background-color: #FFFF00;;">5</td><td style="text-align: center;background-color: #FFFF00;;">2</td><td style="text-align: center;;">B4</td><td style="text-align: center;;">B2</td><td style="text-align: center;;">C2</td><td style="text-align: center;;">5</td><td style="text-align: center;background-color: #FFFF00;;">C4</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: center;;">7/22/2011</td><td style="text-align: center;background-color: #FFFF00;;">1</td><td style="text-align: center;background-color: #FFFF00;;">6</td><td style="text-align: center;background-color: #FFFF00;;">4</td><td style="text-align: center;;">D5</td><td style="text-align: center;;">C9</td><td style="text-align: center;;">D3</td><td style="text-align: center;;">4</td><td style="text-align: center;background-color: #FFFF00;;">D5</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: center;;">7/21/2011</td><td style="text-align: center;background-color: #FFFF00;;">5</td><td style="text-align: center;background-color: #FFFF00;;">2</td><td style="text-align: center;background-color: #FFFF00;;">9</td><td style="text-align: center;;">C2</td><td style="text-align: center;;">B3</td><td style="text-align: center;;">C1</td><td style="text-align: center;;">6</td><td style="text-align: center;background-color: #FFFF00;;">D2</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: center;;">7/20/2011</td><td style="text-align: center;background-color: #FFFF00;;">7</td><td style="text-align: center;background-color: #FFFF00;;">9</td><td style="text-align: center;background-color: #FFFF00;;">9</td><td style="text-align: center;;">B3</td><td style="text-align: center;;">D4</td><td style="text-align: center;;">D6</td><td style="text-align: center;;">7</td><td style="text-align: center;background-color: #FFFF00;;">B2</td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: center;;">7/19/2011</td><td style="text-align: center;background-color: #FFFF00;;">0</td><td style="text-align: center;background-color: #FFFF00;;">5</td><td style="text-align: center;background-color: #FFFF00;;">4</td><td style="text-align: center;;">D10</td><td style="text-align: center;;">C4</td><td style="text-align: center;;">C1</td><td style="text-align: center;;">8</td><td style="text-align: center;background-color: #FFFF00;;">D9</td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="text-align: center;;">7/18/2011</td><td style="text-align: center;background-color: #FFFF00;;">2</td><td style="text-align: center;background-color: #FFFF00;;">4</td><td style="text-align: center;background-color: #FFFF00;;">8</td><td style="text-align: center;;">D3</td><td style="text-align: center;;">C6</td><td style="text-align: center;;">B3</td><td style="text-align: center;;">9</td><td style="text-align: center;background-color: #FFFF00;;">B1</td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;">3</td><td style="text-align: center;background-color: #FFFF00;;">C1</td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;">0</td><td style="text-align: center;background-color: #FFFF00;;">B4</td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet5</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><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: #E0E0F0;color: #161120">H2</th><td style="text-align:left">=OFFSET(<font color="Blue">INDIRECT(<font color="Red">I2</font>),ROW(<font color="Red">$I$2</font>)-1,COLUMN(<font color="Red">$B$2</font>)-2</font>)</td></tr></tbody></table></td></tr></table><br />
Markmzz
 
Upvote 0
I think you got it, let me work with it, because column I has more values than shown. Appreciate this very much, thank you!!!
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,862
Members
452,948
Latest member
UsmanAli786

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