Home

VLookup or Equivalent

%3CLINGO-SUB%20id%3D%22lingo-sub-749597%22%20slang%3D%22en-US%22%3EVLookup%20or%20Equivalent%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749597%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20familiar%20with%20VLookup%20and%20it's%20basic%20functions%2C%20however%20I%20am%20looking%20for%20someone%20that%20could%20help%20with%20the%20follows.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20attached%20is%20the%20basic%20premis%20for%20the%20spreadsheet%2C%20one%20sheet%20is%20the%20invoicing%20information%20the%20other%20tab%20is%20the%20cost%20for%20the%20drops%20by%20the%20haulier.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20formula%20or%20query%20I%20am%20hoping%20for%20is%20the%20VLookup%20or%20Equivalent%20to%20read%20multi%20pieces%20of%20data%20and%20return%20the%20price%20for%20the%20drop.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EColumns%20C%20(Haulier)%2C%20E%20(Town)%20and%20K%20(Truck)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20am%20hoping%20it%20would%20do%20is%20Read%20the%20haulier%2C%20match%20the%20town%20and%20truck%2C%20then%20in%20column%20J%20(Cost)%20pull%20through%20the%20cost%20from%20the%202nd%20tab%20to%20match%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20reason%20this%20is%20complicated%20is%20due%20to%20having%20two%20hauliers%2C%20I%20only%20need%20it%20to%20read%20the%20one%20haulier%20being%20%22A%20Roberts%22%2C%20which%20is%20their%20data%20on%20the%202nd%20tab.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-749597%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749609%22%20slang%3D%22en-US%22%3ERe%3A%20VLookup%20or%20Equivalent%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749609%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F374673%22%20target%3D%22_blank%22%3E%40AdamUKSaint%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20INDEX%20and%20MATCH.%20You%20can%20use%20them%20both.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20also%20plug%20your%20data-set%20into%20Power%20Pivot%20enabling%20DAX%20and%20use%20the%20RELATED%20function.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20help%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749618%22%20slang%3D%22en-US%22%3ERe%3A%20VLookup%20or%20Equivalent%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749618%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F374673%22%20target%3D%22_blank%22%3E%40AdamUKSaint%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20variant%3C%2FP%3E%0A%3CPRE%3E%3DIFERROR(INDEX(Haulier!%24A%241%3A%24F%2476%2CMATCH(%24E2%2CHaulier!%24A%241%3A%24A%2476%2C0)%2CMATCH(%24K2%2CHaulier!%24A%241%3A%24F%241%2C0))%2C%22no%20such%22)%3C%2FPRE%3E%0A%3CP%3EPlease%20see%20in%20column%20O%20attached%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749632%22%20slang%3D%22en-US%22%3ERe%3A%20VLookup%20or%20Equivalent%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749632%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20getting%20back%20to%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20seems%20to%20be%20along%20the%20right%20lines%2C%20is%20there%20a%20way%20of%20doing%20as%20a%20range%20on%20the%20columns%2C%20rather%20than%20a%20specific%20cell%2C%20please.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749750%22%20slang%3D%22en-US%22%3ERe%3A%20VLookup%20or%20Equivalent%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749750%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F362203%22%20target%3D%22_blank%22%3E%40Theo_Bear%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20getting%20back%20to%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20could%20you%20possibly%20provide%20an%20example%3F%20As%20I%20am%20struggling%20to%20match%20the%20Array%20against%20the%20lookup%2C%20for%20it%20to%20return%20a%20result.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749754%22%20slang%3D%22en-US%22%3ERe%3A%20VLookup%20or%20Equivalent%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749754%22%20slang%3D%22en-US%22%3EActually%20on%20second%20glance%2C%20I%20can%20see%20what%20you%20have%20done%20and%20breakdown%20the%20formula.%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20your%20help.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749783%22%20slang%3D%22en-US%22%3ERe%3A%20VLookup%20or%20Equivalent%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749783%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F374673%22%20target%3D%22_blank%22%3E%40AdamUKSaint%3C%2FA%3E%26nbsp%3B%2C%20good%2C%20you%20are%20welcome%3C%2FP%3E%3C%2FLINGO-BODY%3E
AdamUKSaint
New Contributor

Hello,

 

I am familiar with VLookup and it's basic functions, however I am looking for someone that could help with the follows.

 

The attached is the basic premis for the spreadsheet, one sheet is the invoicing information the other tab is the cost for the drops by the haulier.

 

The formula or query I am hoping for is the VLookup or Equivalent to read multi pieces of data and return the price for the drop.

 

Columns C (Haulier), E (Town) and K (Truck)

 

What I am hoping it would do is Read the haulier, match the town and truck, then in column J (Cost) pull through the cost from the 2nd tab to match this.

 

The reason this is complicated is due to having two hauliers, I only need it to read the one haulier being "A Roberts", which is their data on the 2nd tab.

6 Replies

@AdamUKSaint 

 

Hi 

Try INDEX and MATCH. You can use them both. 

 

You can also plug your data-set into Power Pivot enabling DAX and use the RELATED function. 

 

Hope that help 

@AdamUKSaint 

As variant

=IFERROR(INDEX(Haulier!$A$1:$F$76,MATCH($E2,Haulier!$A$1:$A$76,0),MATCH($K2,Haulier!$A$1:$F$1,0)),"no such")

Please see in column O attached

@Sergei Baklan 

 

Thank you for getting back to me.

 

This seems to be along the right lines, is there a way of doing as a range on the columns, rather than a specific cell, please.

 

 

@Theo_Bear 

 

Thank you for getting back to me.

 

Please could you possibly provide an example? As I am struggling to match the Array against the lookup, for it to return a result.

Actually on second glance, I can see what you have done and breakdown the formula.

Thank you for your help.

@AdamUKSaint , good, you are welcome

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Tabs and Dark Mode
cjc2112 in Discussions 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
7 Replies