Home

Some cells keep showing #N/A after VLOOKUP formula - all data correct

%3CLINGO-SUB%20id%3D%22lingo-sub-769969%22%20slang%3D%22en-US%22%3ESome%20cells%20keep%20showing%20%23N%2FA%20after%20VLOOKUP%20formula%20-%20all%20data%20correct%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-769969%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20an%20excel%20sheet%20which%20contains%20items%20database%20in%20one%20sheet%20and%20an%20%22invoice%20creator%22%20on%20another.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnce%20part%20numbers%20and%20quantities%20are%20pasted%20from%20an%20external%20source%2C%20what%20the%20formula%20does%20is%20extracts%20information%20from%20different%20cells%20from%20the%20database%20and%20populates%20it%20in%20the%20invoice%20creator%20with%20various%20rules%20(IFs%2C%20VLOOKUP%20and%20copy%20paste%20and%20combine).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20from%20320%20items%20i%20pasted%2099%20are%20just%20not%20being%20found%20by%20the%20same%20formula%20and%20keep%20showing%20up%20as%20%23N%2FA.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20gone%20step%20by%20step%20in%20the%20HELP%20%26gt%3B%20HELP%20ON%20THIS%20ERROR%20(verified%20record%20exists%20in%20the%20databaase%2C%20same%20cell%20format%2C%20no%20spaces%20and%20extra%20signs%20and%20etc)%20and%20still%2099%20items%20fall%20under%20%23N%2FA.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20also%20tried%20doing%20it%20in%20a%20new%20separate%20tab.%3C%2FP%3E%3CP%3EAttached%20a%20part%20of%20the%20report%26nbsp%3B%20-%20please%20see%20column%20C.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWill%20appreciate%20your%20assistance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-769969%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-770002%22%20slang%3D%22en-US%22%3ERe%3A%20Some%20cells%20keep%20showing%20%23N%2FA%20after%20VLOOKUP%20formula%20-%20all%20data%20correct%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-770002%22%20slang%3D%22en-US%22%3EYou%20seem%20to%20have%202117%20rows%20of%20data%20but%20only%20look%20at%202018%20rows%20in%20the%20VLOOKUP.%20Consider%20formatting%20the%20tabvle%20on%20H.S.%20sheet%20as%20a%20table%20to%20avoid%20this%20problem%20in%20future.%20All%20about%20tables%3A%20%3CA%20href%3D%22https%3A%2F%2Fjkp-ads.com%2Farticles%2Fexcel2007tables.asp%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fjkp-ads.com%2Farticles%2Fexcel2007tables.asp%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-770077%22%20slang%3D%22en-US%22%3ERe%3A%20Some%20cells%20keep%20showing%20%23N%2FA%20after%20VLOOKUP%20formula%20-%20all%20data%20correct%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-770077%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%26nbsp%3Bis%20correct.%20Change%20the%20formula%20in%20cell%20D2%20to%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DVLOOKUP(B2%2C'H.S.%20sheet'!%24B%242%3A%24I%242117%2C8%2C0)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20copy%20the%20formula%20down%3C%2FP%3E%3C%2FLINGO-BODY%3E
alextairoboticsdrones
Occasional Visitor

Hi all,

 

Have an excel sheet which contains items database in one sheet and an "invoice creator" on another.

 

Once part numbers and quantities are pasted from an external source, what the formula does is extracts information from different cells from the database and populates it in the invoice creator with various rules (IFs, VLOOKUP and copy paste and combine).

 

So from 320 items i pasted 99 are just not being found by the same formula and keep showing up as #N/A.

 

Have gone step by step in the HELP > HELP ON THIS ERROR (verified record exists in the databaase, same cell format, no spaces and extra signs and etc) and still 99 items fall under #N/A.

 

Have also tried doing it in a new separate tab.

Attached a part of the report  - please see column C.

 

Will appreciate your assistance.

 

Thanks

 

2 Replies
You seem to have 2117 rows of data but only look at 2018 rows in the VLOOKUP. Consider formatting the tabvle on H.S. sheet as a table to avoid this problem in future. All about tables: https://jkp-ads.com/articles/excel2007tables.asp

@Jan Karel Pieterse is correct. Change the formula in cell D2 to this:

 

=VLOOKUP(B2,'H.S. sheet'!$B$2:$I$2117,8,0)

 

and copy the formula down

Related Conversations