missing item find out

majidsiddique

Board Regular
Joined
Oct 22, 2018
Messages
164
hi all,
kindly help me to find out missing item below mention data.
i use formula, Vlookup(B2&"*",sheet2!A2:E45,5,0) to pick KIP No exact match item + invoice BUT formula break and give #N/A because item is not match. so i have to find out actual item from sheet2 criteria match invoice and qty then pick right item in next column sheet1. you can see missing item.


ITEMMerge Inv + ItemINVOICE NOQUANTITYKip-01Missing Item
MD-ENSP27530A2370MD-ENSP27530A23701KIP-A00104
MD-ENSP30018A2370MD-ENSP30018A23701#N/AA2370MD-INT30018X
MD-INT30026XA2370MD-INT30026XA23701KIP-A00045
MD-NCSP3009XA2370MD-NCSP3009XA23701KIP-A00010
MD-SPL20020XA2370MD-SPL20020XA23701KIP/A00198
MD-SPL25015XA2370MD-SPL25015XA23701KIP-A00148
KIP-A00104
MD-DRSP30018A2392MD-DRSP30018A23921#N/AA2392MD-DRSP25014
MD-DRSP30030A2392MD-DRSP30030A23921#N/AA2392MD-DRSP25018
MD-DRSP35015A2392MD-DRSP35015A23921#N/AA2392MD-DRSP25024
MD-DRSP35018A2392MD-DRSP35018A23921#N/AA2392MD-DRSP27514
MD-INT25014XA2392MD-INT25014XA23921#N/AA2392MD-DRSP27518
KIP-A00104
MD-BB841000A2453MD-BB841000A24534KIP-A00194
MD-M110706CA2453MD-M110706CA24534#N/ABI-300894210
MD-RCL841000A2453MD-RCL841000A24534KIP-A00194


<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>

Sheet2 DATA.
Merge Inv + ItemINVOICE NOITEMQUANTITYKIP
A2370MD-ENSP27530A2370MD-ENSP275301KIP-A00104
A2370MD-INT30018XA2370MD-INT30018X1KIP-A00075
A2370MD-INT30026XA2370MD-INT30026X1KIP-A00045
A2370MD-NCSP3009XA2370MD-NCSP3009X1KIP-A00010
A2370MD-SPL20020XA2370MD-SPL20020X1KIP/A00198
A2370MD-SPL25015XA2370MD-SPL25015X1KIP-A00148
A2392MD-DRSP25014A2392MD-DRSP250141KIP-2073
A2392MD-DRSP25018A2392MD-DRSP250181KIP-2073
A2392MD-DRSP25024A2392MD-DRSP250241KIP-2073
A2392MD-DRSP27514A2392MD-DRSP275141KIP-2086
A2392MD-DRSP27518A2392MD-DRSP275181KIP-2073
A2453BI-300894210A2453BI-3008942104KIP-A00218
A2453MD-BB8410000A2453MD-BB84100004KIP-A00194
A2453MD-RCL841000A2453MD-RCL8410004KIP-A00194

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
in your bottom table add a helper column that shows 1 if a match with the top table and 0 if no match, then in another helper put invoice number&0 ie it will show A23700

then search bottom table for A23700
 
Upvote 0
just find A23700 in helper column with offset - say helper is in column K from K3 down

=offset($k$2,match("A23700",$k$4:$k$100,0),-6)

this gives you whatever is in column C
 
Upvote 0
hi oldbrewer,
kindly explain more, helper column values. i want find sheet2 and paste it sheet1 match invoice no A2370 sheet1.
 
Upvote 0
your 5th column in the top table uses a formula to pull the kip number. Where this formula brings back #na you need to pull the kip number in a different way. The helper1 column sees if rows in the lower table match the top table and if no match returns a 0 - then helper2 wherever there is a 0 in helper 1 returns the invoice number - then helper3 where helper2 is not blank returns the kip number

so your formula needs to be .......=if(iserror(yourformula)),go find the kip number in helper3, your formula)

use offset(match) to match the invoice number to helper2 column offsetting one column to the right ie to helper3
 
Upvote 0
hi oldbrewer,
please do it on a sheet. i am doing but not get result. please do it on excel sheet. where value put and how to apply formula with helper?
 
Upvote 0
ITEMMerge Inv + ItemINVOICE NOQUANTITYKip-01
MD-ENSP27530A2370MD-ENSP27530A23701KIP-A00104
MD-ENSP30018A2370MD-ENSP30018A23701KIP-A00075correct
MD-INT30026XA2370MD-INT30026XA23701KIP-A00045
MD-NCSP3009XA2370MD-NCSP3009XA23701KIP-A00010
MD-SPL20020XA2370MD-SPL20020XA23701KIP/A00198
MD-SPL25015XA2370MD-SPL25015XA23701KIP-A00148
MD-DRSP30018A2392MD-DRSP30018A23921KIP-2073where there are consecutive errors my approach fails
MD-DRSP30030A2392MD-DRSP30030A23921KIP-2073I will thik on….
MD-DRSP35015A2392MD-DRSP35015A23921KIP-2073
MD-DRSP35018A2392MD-DRSP35018A23921KIP-2073col % top table now formula driven
MD-INT25014XA2392MD-INT25014XA23921KIP-2073
KIP-A00104#N/A
MD-BB841000A2453MD-BB841000A24534KIP-A00218
MD-M110706CA2453MD-M110706CA24534KIP-A00218
MD-RCL841000A2453MD-RCL841000A24534KIP-A00194
(if not return inv num)
Sheet2 DATA.
Merge Inv + ItemINVOICE NOITEMQUANTITYKIPdoes col A match to col B table 1if inv num ret kip num
A2370MD-ENSP27530A2370MD-ENSP275301KIP-A00104
A2370MD-INT30018XA2370MD-INT30018X1KIP-A00075A2370KIP-A00075
A2370MD-INT30026XA2370MD-INT30026X1KIP-A00045
A2370MD-NCSP3009XA2370MD-NCSP3009X1KIP-A00010
A2370MD-SPL20020XA2370MD-SPL20020X1KIP/A00198
A2370MD-SPL25015XA2370MD-SPL25015X1KIP-A00148
A2392MD-DRSP25014A2392MD-DRSP250141KIP-2073A2392KIP-2073
A2392MD-DRSP25018A2392MD-DRSP250181KIP-2073A2392KIP-2073
A2392MD-DRSP25024A2392MD-DRSP250241KIP-2073A2392KIP-2073
A2392MD-DRSP27514A2392MD-DRSP275141KIP-2086A2392KIP-2086
A2392MD-DRSP27518A2392MD-DRSP275181KIP-2073A2392KIP-2073
A2453BI-300894210A2453BI-3008942104KIP-A00218A2453KIP-A00218
A2453MD-BB8410000A2453MD-BB84100004KIP-A00194A2453KIP-A00194
A2453MD-RCL841000A2453MD-RCL8410004KIP-A00194

<colgroup><col><col><col><col><col><col><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0
ITEMMerge Inv + ItemINVOICE NOQUANTITYKip-01target row num
MD-ENSP27530A2370MD-ENSP27530A23701KIP-A0010423
MD-ENSP30018A2370MD-ENSP30018A23701KIP-A0007524
MD-INT30026XA2370MD-INT30026XA23701KIP-A0004525
MD-NCSP3009XA2370MD-NCSP3009XA23701KIP-A0001026
MD-SPL20020XA2370MD-SPL20020XA23701KIP/A0019827
MD-SPL25015XA2370MD-SPL25015XA23701KIP-A0014828
MD-DRSP30018A2392MD-DRSP30018A23921KIP-207329
MD-DRSP30030A2392MD-DRSP30030A23921KIP-207330
MD-DRSP35015A2392MD-DRSP35015A23921KIP-207331
MD-DRSP35018A2392MD-DRSP35018A23921KIP-208632
MD-INT25014XA2392MD-INT25014XA23921KIP-207333
KIP-A00104KIP-A0021834
MD-BB841000A2453MD-BB841000A24534KIP-A0019435
MD-M110706CA2453MD-M110706CA24534KIP-A0019436
col Ecol G
Sheet2 DATA.
Merge Inv + ItemINVOICE NOITEMQUANTITYKIProw num
A2370MD-ENSP27530A2370MD-ENSP275301KIP-A0010423
A2370MD-INT30018XA2370MD-INT30018X1KIP-A0007524
A2370MD-INT30026XA2370MD-INT30026X1KIP-A0004525
A2370MD-NCSP3009XA2370MD-NCSP3009X1KIP-A0001026
A2370MD-SPL20020XA2370MD-SPL20020X1KIP/A0019827
A2370MD-SPL25015XA2370MD-SPL25015X1KIP-A0014828
A2392MD-DRSP25014A2392MD-DRSP250141KIP-207329
A2392MD-DRSP25018A2392MD-DRSP250181KIP-207330
A2392MD-DRSP25024A2392MD-DRSP250241KIP-207331
A2392MD-DRSP27514A2392MD-DRSP275141KIP-208632
A2392MD-DRSP27518A2392MD-DRSP275181KIP-207333
A2453BI-300894210A2453BI-3008942104KIP-A0021834
A2453MD-BB8410000A2453MD-BB84100004KIP-A0019435
A2453MD-RCL841000A2453MD-RCL8410004KIP-A0019436
formula in cell E2
=IF(ISERROR(OFFSET($A$22,MATCH(B2,$A$23:$A$36,0),4)),OFFSET($G$22,MATCH(F2,$G$23:$G$36,0),-2),OFFSET($A$22,MATCH(B2,$A$23:$A$36,0),4))
this is a much simpler approach requiring only one helper cell in col G of lower table
check accuracy please

<colgroup><col><col><col><col><col><col><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0
Hi Oldbrewer,
its really a good and fantastic approach, But tell me one thing, whatabout -2 show column no where to to item pick or anything else?

=IF(ISERROR(OFFSET($A$22,MATCH(B2,$A$23:$A$36,0),4)),OFFSET($G$22,MATCH(F2,$G$23:$G$36,0),-2),OFFSET($A$22,MATCH(B2,$A$23:$A$36,0),4))
OFFSET($G$22,MATCH(F2,$G$23:$G$36,0),-2)

i use this,
=IF(ISERROR(OFFSET(Sheet2!$A$1,MATCH(B2,Sheet2!$A$2:$A$15,0),4)),OFFSET(Sheet2!$F$1,MATCH(G2,Sheet2!$F$2:$F$15,0),-1),OFFSET(Sheet2!$A$1,MATCH(B2,Sheet2!$A$2:$A$15,0),4))
anwer if OK,

BUT i use this, answer is not OK,

=IF(ISERROR(OFFSET(Sheet2!$A$1,MATCH(B2,Sheet2!$A$2:$A$15,0),4)),OFFSET(Sheet2!$H$1,MATCH(G2,Sheet2!$H$2:$H$15,0),-1),OFFSET(Sheet2!$A$1,MATCH(B2,Sheet2!$A$2:$A$15,0),4))
can you tell me where is mistake.
first formula pick KIP No OK.

and second i want to pick item no. see the result.
sheet 2 H2 same copy 23 to 36 no and before one column G copy and paste item no.

KIP-A00104
MD-INT30018X
KIP-A00045
KIP-A00010
KIP/A00198
KIP-A00148
MD-DRSP25014
MD-DRSP25018
MD-DRSP25024
MD-DRSP27514
MD-RINT30018X
BI-300894210
MD-BB8410000
KIP-A00194


<colgroup><col></colgroup><tbody>
</tbody>




 
Upvote 0

Forum statistics

Threads
1,214,627
Messages
6,120,610
Members
448,973
Latest member
ChristineC

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