Vlookup not working properly?!

afc171

Board Regular
Joined
Jan 14, 2017
Messages
143
Office Version
  1. 2013
Platform
  1. Windows
Hi all,

I these two sheets to lookup a product and to show if it is in the list or not, for some reason for example PKG0017 is in stock but shows as No..

4Despatch Consumables V1 (1).xlsm
ABCDE
2productlong_descriptionstock unitBook Out QTYIn Stock?
3GEN0023AzowipesEACH1 EACHYes
4GEN0030Absorbent Spill MatEACH1 EACHNo
5PKG0001BUF BOX 120 X 79 X 60MMEACH1 EACHYes
6PKG0002CARDICE 11.5KG BAG 10MM PELLETSEACH1 EACHYes
7PKG0003BUF BOX SLEEVES LIT.BUFEACH1 EACHYes
8PKG0004BOVINE KIT SLEEVE LIT.KIT BOVEACH1 EACHYes
9PKG0005ICT KIT SLEEVE LIT.KIT PACKEACH1 EACHYes
10PKG0006MMT/RMT KIT SLEEVE LIT.MMTEACH1 EACHYes
11PKG0007MED DRY ICE BOX 283X283X259MMEACH1 EACHYes
12PKG0008SINGLE WALL BROWN BOX 305X228X130MM L25EACH1 EACHYes
13PKG0009DOUBLE WALL BROWN BOX 305X305X305MM L49EACH1 EACHYes
14PKG0010A4 PLAIN DOC ENCLOSED WALLETS 1000/BOXEACH1 (BOX 1000)Yes
15PKG0011A7 PLAIN DOC ENCLOSED WALLETS 1000/BOXEACH1 (BOX 1000)Yes
16PKG0012SINGLE WALL BROWN BOX - DELETEDEACH1 EACHNo
17PKG0013BROWN TAPE LOW NOISE 48MMX66M 36/BOXEACH1 (PACK 6)Yes
18PKG0014BUBBLE BAG 130MMX185MM 500/BOXEACH1 (BOX 500)Yes
19PKG0015SMALL BUBBLE WRAP - 3X500MMX200MEACH1 ROLLYes
20PKG0016CLEAR TAPE LOW NOISE 48MMX66M 36/BOXEACH1 (PACK 6)Yes
21PKG0017 WHITE M/LITE ENV MLPF/3 220X330MM 50/BOXEACH1 (BOX 50)No
22PKG0018WHITE M/LITE ENV MLPH/5 270X360MM 50/BOXEACH1 (BOX 50)Yes
23PKG0019150W/TE DIECUT CARTON 513X365MM ICTEACH1 EACHYes
24PKG0020WHITE M/LITE ENV MLPK/7 350X470MM 50/BOXEACH50 (BOX)Yes
ProductList
Cell Formulas
RangeFormula
E3:E24E3=IF(ISNA(VLOOKUP(A3,'Despatch-LC-Stock'!B:H,1,FALSE)),"No","Yes")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E3:E55Cell Valuecontains "No"textNO



4Despatch Consumables V1 (1).xlsm
BCDEFGH
2productlong_descriptionlot_numberbin_numberquantityinspection_dateexpiry_date
3GEN0023Azowipes15278LC14COSH820/Jun/202231/May/2024
4GEN0023Azowipes15852LC14COSH1929/Jul/202230/Jun/2024
5GEN0023Azowipes15959LC14COSH2026/Aug/202230/Jun/2024
6PKG0001BUF BOX 120 X 79 X 60MM300421LC/P813530/Apr/2021
7PKG0001BUF BOX 120 X 79 X 60MM260422LC/P8182126/Apr/2022
8PKG0002CARDICE 11.5KG BAG 10MM PELLETS051022KD80305/Oct/2022
9PKG0003BUF BOX SLEEVES LIT.BUF170566KSCLC/P829427/May/2021
10PKG0004BOVINE KIT SLEEVE LIT.KIT BOV090719LC/P86809/Jul/2019
11PKG0004BOVINE KIT SLEEVE LIT.KIT BOV031019LC/P815403/Oct/2019
12PKG0005ICT KIT SLEEVE LIT.KIT PACK031019LC/P831203/Oct/2019
13PKG0006MMT/RMT KIT SLEEVE LIT.MMT169162LCLC/P894930/Sep/2020
14PKG0007MED DRY ICE BOX 283X283X259MM041022LC/P86004/Oct/2022
15PKG0008SINGLE WALL BROWN BOX 305X228X130MM L25170367KSCLC/P81422/Apr/2021
16PKG0008SINGLE WALL BROWN BOX 305X228X130MM L25211021LC/P810021/Oct/2021
17PKG0009DOUBLE WALL BROWN BOX 305X305X305MM L49167212KSCLC/P87101/Oct/2019
18PKG0010A4 PLAIN DOC ENCLOSED WALLETS 1000/BOX150720LC/P8300015/Jul/2020
19PKG0011A7 PLAIN DOC ENCLOSED WALLETS 1000/BOX091019LC/P8509/Oct/2019
20PKG0013BROWN TAPE LOW NOISE 48MMX66M 36/BOX161121LC/P818016/Nov/2021
21PKG0014BUBBLE BAG 130MMX185MM 500/BOX081221LC/P836008/Dec/2021
22PKG0015SMALL BUBBLE WRAP - 3X500MMX200M210422LC/P8221/Apr/2022
23PKG0016CLEAR TAPE LOW NOISE 48MMX66M 36/BOX031019LC/P810203/Oct/2019
24PKG0017WHITE M/LITE ENV MLPF/3 220X330MM 50/BOX170274KSCLC/P880026/Mar/2021
25PKG0018WHITE M/LITE ENV MLPH/5 270X360MM 50/BOX100621LC/P830010/Jun/2021
26PKG0019150W/TE DIECUT CARTON 513X365MM ICT170565KSCLC/P8238921/Jul/2021
27PKG0020WHITE M/LITE ENV MLPK/7 350X470MM 50/BOX031019LC/P815003/Oct/2019
Despatch-LC-Stock
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
In A21 it looks as though there is a space after PKG0017 which is why it says No.
 
Upvote 0
Solution
Fluff to the rescue, I even ran Text to columns but used space this time and it sorted it. Thanks mate.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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