Lookup values based on 2 different search criteria

%3CLINGO-SUB%20id%3D%22lingo-sub-2250442%22%20slang%3D%22en-US%22%3ELookup%20values%20based%20on%202%20different%20search%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250442%22%20slang%3D%22en-US%22%3E%3CUL%3E%3CLI%3EI%20am%20using%20Excel%202013%3C%2FLI%3E%3CLI%3EI%20oversee%20multiple%20retail%20locations%20with%20various%20retail%20brands%20in%20each%3C%2FLI%3E%3CLI%3ESome%20brands%20appear%20in%20more%20than%20one%20location%3C%2FLI%3E%3CLI%3EI%20have%20surveyed%20all%20retailers%20across%20all%20locations%20in%20one%20survey%3C%2FLI%3E%3CLI%3Ethe%20responses%20are%20beginning%20to%20come%20through%2C%20but%20I%20need%20to%20map%20the%20responses%20to%20each%20brand%2C%20in%20their%20correct%20location%3C%2FLI%3E%3CLI%3EIn%20my%20document%2C%20I%20have%20tab%201%20which%20is%20where%20I%20will%20paste%20responses%20from%20the%20survey%3C%2FLI%3E%3CLI%3EI%20need%20the%20location%20tabs%20to%20have%20a%20formula%20which%20will%20lookup%20the%20data%20from%20the%20survey%20responses%20and%20place%20the%20correct%20information%20against%20the%20correct%20retail%20brand%20in%20the%20correct%20location%20tab.%3C%2FLI%3E%3CLI%3EThe%20location%20tabs%20currently%20have%20all%20the%20retail%20brands%20listed%20with%20other%20key%20information%20applied%20against%20them%20and%20I%20want%20to%20build%20this%20new%20data%20in%20amongst%20the%20existing%20data%20-%20so%20I%20cant%20start%20a%20fresh%20sheet.%3C%2FLI%3E%3CLI%3EI%20originally%20started%20to%20build%20using%20Index%20and%20Match%20function%2C%20but%20the%20issue%20is%20the%20retail%20brand%20name%20appears%20in%20multiple%20locations%20and%20so%20'Match'%20has%20to%20correctly%20identify%20first%20the%20location%20and%20then%20also%20the%20retailer%20brand%2C%20which%20I%20am%20not%20sure%20how%20to%20create%20that%20functionality.%3C%2FLI%3E%3CLI%3EI%20have%20been%20given%20some%20help%20for%20a%20formula%20in%20Google%20Sheets%20which%20works%2C%20but%20this%20doesn't%20transpose%20to%20Excel%20(I%20have%20pasted%20the%20sheets%20formula%20as%20an%20image%20in%20the%20attached)%3C%2FLI%3E%3CLI%3ELooking%20for%20assistance%20to%20find%20a%20formula%20that%20can%20achieve%20the%20result%20in%20Excel.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2250442%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-2250472%22%20slang%3D%22en-US%22%3ERe%3A%20Lookup%20values%20based%20on%202%20different%20search%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250472%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1015452%22%20target%3D%22_blank%22%3E%40Gareth_Durbridge%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20try%20this...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20F2%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DINDEX('Survey%20Response'!C%242%3AC%2434%2CMATCH(1%2CINDEX(('Survey%20Response'!%24A%242%3A%24A%2434%3D%24A2)*('Survey%20Response'!%24B%242%3A%24B%2434%3D%24B2)%2C)%2C0))%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Eand%20then%20copy%20it%20across%20and%20down.%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-2250534%22%20slang%3D%22en-US%22%3ERe%3A%20Lookup%20values%20based%20on%202%20different%20search%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250534%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1015452%22%20target%3D%22_blank%22%3E%40Gareth_Durbridge%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%20correct%20word%20Location%20in%20sheet%20Survey%20Response.%20Then%20you%20can%20use%20these%20formulas%3A%3C%2FP%3E%3CUL%3E%3CLI%3ESheet%20Location%201%2C%202%2C%203%3C%2FLI%3E%3C%2FUL%3E%3CP%3Ein%20cell%20F2%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DINDEX('Survey%20Response'!%24C%242%3A%24C%24100%2CMATCH(A2%26amp%3BB2%2CINDEX('Survey%20Response'!%24A%242%3A%24A%24100%26amp%3B'Survey%20Response'!%24B%242%3A%24B%24100%2C)%2C0))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ein%20cell%20G2%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DINDEX('Survey%20Response'!%24D%242%3A%24D%24100%2CMATCH(A2%26amp%3BB2%2CINDEX('Survey%20Response'!%24A%242%3A%24A%24100%26amp%3B'Survey%20Response'!%24B%242%3A%24B%24100%2C)%2C0))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eboth%20data%20in%20column%20F%20and%20G%20format%20as%20Time.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ein%20cell%20H2%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DINDEX('Survey%20Response'!%24D%242%3A%24D%24100%2CMATCH(A2%26amp%3BB2%2CINDEX('Survey%20Response'!%24A%242%3A%24A%24100%26amp%3B'Survey%20Response'!%24B%242%3A%24B%24100%2C)%2C0))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20download%20my%20file%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2F1drv.ms%2Fx%2Fs!Ah_p7p0xkR5RnXQWftJ48LS0sKso%3Fe%3DnQCXZe%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2F1drv.ms%2Fx%2Fs!Ah_p7p0xkR5RnXQWftJ48LS0sKso%3Fe%3DnQCXZe%3C%2FA%3E%26nbsp%3B.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EIlirU%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2252584%22%20slang%3D%22en-US%22%3ERe%3A%20Lookup%20values%20based%20on%202%20different%20search%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2252584%22%20slang%3D%22en-US%22%3EThank%20you%20Subodh%20for%20your%20support%3C%2FLINGO-BODY%3E
New Contributor
  • I am using Excel 2013
  • I oversee multiple retail locations with various retail brands in each
  • Some brands appear in more than one location
  • I have surveyed all retailers across all locations in one survey
  • the responses are beginning to come through, but I need to map the responses to each brand, in their correct location
  • In my document, I have tab 1 which is where I will paste responses from the survey
  • I need the location tabs to have a formula which will lookup the data from the survey responses and place the correct information against the correct retail brand in the correct location tab.
  • The location tabs currently have all the retail brands listed with other key information applied against them and I want to build this new data in amongst the existing data - so I cant start a fresh sheet.
  • I originally started to build using Index and Match function, but the issue is the retail brand name appears in multiple locations and so 'Match' has to correctly identify first the location and then also the retailer brand, which I am not sure how to create that functionality.
  • I have been given some help for a formula in Google Sheets which works, but this doesn't transpose to Excel (I have pasted the sheets formula as an image in the attached)
  • Looking for assistance to find a formula that can achieve the result in Excel.
5 Replies

@Gareth_Durbridge 

 

Please try this...

 

In F2

=INDEX('Survey Response'!C$2:C$34,MATCH(1,INDEX(('Survey Response'!$A$2:$A$34=$A2)*('Survey Response'!$B$2:$B$34=$B2),),0))

and then copy it across and down.

 

 

@Gareth_Durbridge 

 

First correct word Location in sheet Survey Response. Then you can use these formulas:

  • Sheet Location 1, 2, 3

in cell F2 

 

=INDEX('Survey Response'!$C$2:$C$100,MATCH(A2&B2,INDEX('Survey Response'!$A$2:$A$100&'Survey Response'!$B$2:$B$100,),0))

 

in cell G2

 

=INDEX('Survey Response'!$D$2:$D$100,MATCH(A2&B2,INDEX('Survey Response'!$A$2:$A$100&'Survey Response'!$B$2:$B$100,),0))

 

both data in column F and G format as Time.

 

in cell H2

 

=INDEX('Survey Response'!$D$2:$D$100,MATCH(A2&B2,INDEX('Survey Response'!$A$2:$A$100&'Survey Response'!$B$2:$B$100,),0))

 

You can download my file here: https://1drv.ms/x/s!Ah_p7p0xkR5RnXQWftJ48LS0sKso?e=nQCXZe .

 

Hope this helps.

 

Regards,

IlirU

Thank you Subodh for your support
Thank you Ilir for your support

You're welcome @Gareth_Durbridge! Glad I could help.

 

Please take a minute to accept the post with the proposed solution as a Best Response to mark your question as Solved.