Home

VLOOKUP Assistance?

%3CLINGO-SUB%20id%3D%22lingo-sub-718485%22%20slang%3D%22en-US%22%3EVLOOKUP%20Assistance%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-718485%22%20slang%3D%22en-US%22%3E%3CP%3EAny%20suggestion%20on%20fixing%20the%20formula%20or%20another%20formula%20that%20might%20work%20better%3F%20In%20the%20attached%20file%2C%20I%20have%20a%20VLOOKUP%20in%20Column%20G%20of%20the%20%22Incidents%22%20tab%20which%20should%20return%20data%20from%20Column%20D%20of%20the%20Nodes%20tab%20using%20the%20Store%20Number%20(or%20Node%20Number%20on%20the%20other%20tab)%20as%20the%20lookup%20data.%20I%20am%20getting%20%23N%2FA%20as%20the%20result.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-718485%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-718499%22%20slang%3D%22en-US%22%3ERe%3A%20VLOOKUP%20Assistance%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-718499%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F365851%22%20target%3D%22_blank%22%3E%40sbsimp1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%3C%2FP%3E%3CP%3EThe%20numbers%20in%20Column%20F%20are%20not%20recognized%20by%20Excel%20as%20numbers%2C%20because%20Excel%20expects%20a%20text%20result%20from%20the%20Mid%20function%2C%20that%20is%20why%20they%20are%20left%20aligned%20as%20text.So%20you%20need%20to%20let%20Excel%20deal%20with%20the%20result%20of%20the%20Mid%20function%20as%20numbers%20(there%20are%20different%20ways%20to%20do%20that)%20by%20multiplying%20your%20lookup%20value%20by%201.%3C%2FP%3E%3CP%3E%3DVLOOKUP(%24F2*1%2CNodes!%24C%3A%24D%2C2%2C0)%3C%2FP%3E%3CP%3EI%20also%20added%20the%20last%20argument%200%20for%20an%20exact%20match%3C%2FP%3E%3CP%3EHope%20that%20helps%3C%2FP%3E%3CP%3ENabil%20Mourad%3C%2FP%3E%3C%2FLINGO-BODY%3E
sbsimp1
Occasional Visitor

Any suggestion on fixing the formula or another formula that might work better? In the attached file, I have a VLOOKUP in Column G of the "Incidents" tab which should return data from Column D of the Nodes tab using the Store Number (or Node Number on the other tab) as the lookup data. I am getting #N/A as the result.

1 Reply
Highlighted

@sbsimp1 

Hi

The numbers in Column F are not recognized by Excel as numbers, because Excel expects a text result from the Mid function, that is why they are left aligned as text.So you need to let Excel deal with the result of the Mid function as numbers (there are different ways to do that) by multiplying your lookup value by 1.

=VLOOKUP($F2*1,Nodes!$C:$D,2,0)

I also added the last argument 0 for an exact match

Hope that helps

Nabil Mourad

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies