find and show from list

%3CLINGO-SUB%20id%3D%22lingo-sub-2270705%22%20slang%3D%22en-US%22%3Efind%20and%20show%20from%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270705%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20I%20have%20a%20drop%20down%20menu%20with%20items.%20I%20am%20looking%20for%20a%20fourmula%20to%20help%20with%3A%3C%2FP%3E%3CP%3EOnce%20selecting%20an%20item%20on%20the%20drop%20down%20menu%20a%20want%20the%20next%20cell%20to%20do%20the%20following%3A%3C%2FP%3E%3CP%3Esearch%20for%20the%20same%20text%20in%20a%20list%20on%20the%20next%20sheet%20and%20then%20show%20the%20value%20next%20to%20the%20text%20found%2C%20can%20someone%20help%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2270705%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%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2270745%22%20slang%3D%22en-US%22%3ERe%3A%20find%20and%20show%20from%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270745%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1025004%22%20target%3D%22_blank%22%3E%40marthinusnel11%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20use%20the%20VLOOKUP%20function%20for%20this.%3C%2FP%3E%0A%3CP%3ELet's%20say%20the%20dropdown%20is%20in%20cell%20B2.%3C%2FP%3E%0A%3CP%3EAnd%20the%20list%20is%20in%20A2%3AB100%20on%20a%20sheet%20named%20Sheet%202.%3C%2FP%3E%0A%3CP%3EIn%20C2%2C%20next%20to%20the%20dropdown%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DIFERROR(VLOOKUP(A2%2C%20'Sheet%202'!%24A%242%3A%24B%24100%2C%202%2C%20FALSE)%2C%20%22%22)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20can%20be%20filled%20down%20if%20required.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2356842%22%20slang%3D%22en-US%22%3ERe%3A%20find%20and%20show%20from%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2356842%22%20slang%3D%22en-US%22%3EThank%20you%20hans%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20also%20trying%20to%20do%20the%20following%20if%20you%20can%20assist%3F%20I%20want%20a%20formula%20that%20does%20the%20following%3A%3CBR%20%2F%3ESay%20the%20value%20in%20D%20is%20equal%20to%20the%20list%20name%20on%20sheet%202%20then%20i%20want%20to%20use%20the%20formula%20you%20gave%20before%20to%20search%20in%20that%20specific%20list%2C%20I%20have%203%20different%20list%20i%20want%20to%20search%20and%20return%20a%20value%20from.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2356846%22%20slang%3D%22en-US%22%3ERe%3A%20find%20and%20show%20from%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2356846%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1025004%22%20target%3D%22_blank%22%3E%40marthinusnel11%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDoes%20this%20do%20what%20you%20want%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DIFERROR(VLOOKUP(A2%2C%20INDIRECT(D2)%2C%202%2C%20FALSE)%2C%20%22%22)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2359830%22%20slang%3D%22en-US%22%3ERe%3A%20find%20and%20show%20from%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2359830%22%20slang%3D%22en-US%22%3ENot%20exactly!%20I%20will%20explain%20in%20a%20bit%20more%20detail%3A%3CBR%20%2F%3ESheet%202%20contains%20three%20lists%20named%20list1%2C%20list2%20and%20list3.%20On%20sheet%201%20I%20have%20three%20columns%2C%20column%201%20with%20containing%20the%20option%20list1%2C%20list2%20or%20list%203%2C%20column%202%20containing%20a%20dropdown%20menu%20with%20brands%20and%20column%203%20containing%20the%20formula%20a%20require.%20If%20for%20example%20I%20select%20list%201%20in%20column%201%20and%20a%20specific%20brand%20in%20column%202%2C%20then%20the%20formula%20should%20go%20to%20list1%20on%20sheet%20to%20and%20search%20for%20the%20brand%20and%20return%20the%20value%20next%20to%20the%20brand!%20Hope%20this%20helps%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2360030%22%20slang%3D%22en-US%22%3ERe%3A%20find%20and%20show%20from%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2360030%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1025004%22%20target%3D%22_blank%22%3E%40marthinusnel11%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20variant%20for%20such%20model%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20943px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281018iDA13F045107B56CF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eformula%20is%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DXLOOKUP(%5B%40Brand%5D%2C%0A%20INDEX(CHOOSE((%5B%40Brands%5D%3D%22Brands1%22)%2B2*(%5B%40Brands%5D%3D%22Brands2%22)%2B3*(%5B%40Brands%5D%3D%22Brands3%22)%2CBrands1%2CBrands2%2CBrands3)%2C0%2C1)%2C%0A%20INDEX(CHOOSE((%5B%40Brands%5D%3D%22Brands1%22)%2B2*(%5B%40Brands%5D%3D%22Brands2%22)%2B3*(%5B%40Brands%5D%3D%22Brands3%22)%2CBrands1%2CBrands2%2CBrands3)%2C0%2C2)%0A)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2365738%22%20slang%3D%22en-US%22%3ERe%3A%20find%20and%20show%20from%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2365738%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%3Bsee%20attached.%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20tracker%20sheet.%20I%20want%20column%20F%20to%20have%20the%20formula%3A%3C%2FP%3E%3CP%3EIt%20should%20search%20for%20material%20in%20column%20C%20using%20Column%20B%20%22C%22%20as%20list%20name%20within%20sheet%203%20below%20List%20C%20for%20the%20material%20and%20either%20return%20Yes%20when%20found%20or%20Not%20found.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You%20for%20your%20assistance.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello, I have a drop down menu with items. I am looking for a fourmula to help with:

Once selecting an item on the drop down menu a want the next cell to do the following:

search for the same text in a list on the next sheet and then show the value next to the text found, can someone help?

8 Replies

@marthinusnel11 

You can use the VLOOKUP function for this.

Let's say the dropdown is in cell B2.

And the list is in A2:B100 on a sheet named Sheet 2.

In C2, next to the dropdown:

 

=IFERROR(VLOOKUP(A2, 'Sheet 2'!$A$2:$B$100, 2, FALSE), "")

 

This can be filled down if required.

Thank you hans

I am also trying to do the following if you can assist? I want a formula that does the following:
Say the value in D is equal to the list name on sheet 2 then i want to use the formula you gave before to search in that specific list, I have 3 different list i want to search and return a value from.

@marthinusnel11 

Does this do what you want?

 

=IFERROR(VLOOKUP(A2, INDIRECT(D2), 2, FALSE), "")

Not exactly! I will explain in a bit more detail:
Sheet 2 contains three lists named list1, list2 and list3. On sheet 1 I have three columns, column 1 with containing the option list1, list2 or list 3, column 2 containing a dropdown menu with brands and column 3 containing the formula a require. If for example I select list 1 in column 1 and a specific brand in column 2, then the formula should go to list1 on sheet to and search for the brand and return the value next to the brand! Hope this helps

@marthinusnel11 

As variant for such model

image.png

formula is

=XLOOKUP([@Brand],
 INDEX(CHOOSE(([@Brands]="Brands1")+2*([@Brands]="Brands2")+3*([@Brands]="Brands3"),Brands1,Brands2,Brands3),0,1),
 INDEX(CHOOSE(([@Brands]="Brands1")+2*([@Brands]="Brands2")+3*([@Brands]="Brands3"),Brands1,Brands2,Brands3),0,2)
)

@Sergei Baklan see attached. 

On tracker sheet. I want column F to have the formula:

It should search for material in column C using Column B "C" as list name within sheet 3 below List C for the material and either return Yes when found or Not found.

 

Thank You for your assistance.

@marthinusnel1180 

In F10:

 

=IFERROR(VLOOKUP(C10,IFS(B10="A",'ABC MAY'!$A$2:$B$10,B10="B",'ABC MAY'!$D$2:$E$18,B10="C",'ABC MAY'!$G$2:$H$411),2,FALSE),"")

 

Fill down.

@marthinusnel1180 

As variant

=IF(ISNA(XMATCH(C10,
      XLOOKUP($B10,'ABC MAY'!$A$1:$H$1,'ABC MAY'!$A$2:$H$500)
   ) ),"","Yes")