SOLVED

match two criteria and return multiple records in a list

%3CLINGO-SUB%20id%3D%22lingo-sub-1300324%22%20slang%3D%22en-US%22%3Ematch%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1300324%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20problem%20set%20where%20I%20have%20a%20table%20of%20three%20columns.%20I%20need%20all%20the%20values%20in%20Column%20A%20that%20meet%20my%20selected%20criteria%20from%20both%20Column%20B%20and%20Column%20C%20to%20be%20returned%20in%20a%20format%20that%20I%20can%20put%20into%20Data%20Validation%20in%20list%20form.%20I've%20tried%20a%20variety%20of%20different%20way%20but%20this%20problem%20is%20just%20beyond%20me%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1300324%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1300339%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1300339%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F618121%22%20target%3D%22_blank%22%3E%40amAnnunz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20have%20a%20spreadsheet%20created%2C%20even%20if%20it's%20not%20functional%20yet%2C%20it%20would%20help%20us%20visualize%20what%20you're%20trying%20to%20describe%20if%20we%20could%20see%20it.%20But%20you%20should%20expect%20that%20we%20might%20come%20back%20and%20ask%20for%20a%20more%20complete%20description%20of%20what%20you%20are%20actually%20trying%20to%20do.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20it%20would%20help%20if%20in%20addition%20to%20posting%20your%20spreadsheet%20as%20it%20is%2C%20if%20you%20could%20also%20give%20an%20example%20or%20two%20of%20what%20your%20sentence%20(in%20italics%20below)%20means%20%3CU%3Ein%20practice%3C%2FU%3E.%20That%20is%2C%20show%20what%20the%20values%20in%20A%20might%20be%2C%20both%20the%20selected%20and%20the%20unselected%3B%20are%20those%20values%20in%20column%20A%20in%20the%20form%20of%20words%2C%20numbers%2C%20codes%2C%20etc.%3F%20What%20are%20the%20entries%20in%20Col%20B%20and%20C%20that%20serve%20as%20criteria%3F%20How%20would%20the%20extracted%20values%20be%20used%20(together%2C%20in%20combination%2C%20or%20as%20individual%20entries%20in%20a%20data%20validation%20list%3F....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CEM%3EI%20need%20all%20the%20values%20in%20Column%20A%20that%20meet%20my%20selected%20criteria%20from%20both%20Column%20B%20and%20Column%20C%20to%20be%20returned%20in%20a%20format%20that%20I%20can%20put%20into%20Data%20Validation%20in%20list%20form.%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1300355%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1300355%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20table%20is%20%24A%242%3A%24C%2425.%20I%20have%202%20dropdowns%20in%20cell%20locations%20F2%20and%20F3%20that%20correspond%20to%20B2%3AB35%20and%20C2%3AC35%2C%20respectively.%20What%20I%20want%20is%20a%20formula%20that%20takes%20both%20of%20those%20criteria%20from%20F2%20and%20F3%20into%20account%20and%20creates%20a%20new%20drop%20down%20list%20in%20cell%20F5%20that%20pulls%20all%20the%20options%20in%20A2%3AA35%20that%20meet%20both%20of%20those%20criteria.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20I'm%20being%20clear.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1300403%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1300403%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F618121%22%20target%3D%22_blank%22%3E%40amAnnunz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFILTER%20did%20it.%20Here's%20the%20result.%20The%20formula%20is%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DFILTER(A2%3AA35%2C(B2%3AB35%3DF2)*(C2%3AC35%3DF3)%2C%22No%20match%22)%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1300410%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1300410%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%20That%20accomplished%20part%20of%20what%20I%20was%20saying%20but%20the%20formula%20doesn't%20work%20when%20copied%20in%20data%20validation%20to%20have%20a%20list%20just%20in%20cell%20F5.%20I%20didn't%20make%20that%20clear%20the%20first%20time%20and%20I%20apologize.%20Any%20thoughts%20on%20that%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1300465%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1300465%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F618121%22%20target%3D%22_blank%22%3E%40amAnnunz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20list%20wouldn't%20be%20just%20in%20cell%20F5%2C%20it%20would%20be%20F5%3AF10%20or%20whatever%20column%20length%20you%20need%20to%20accommodate%20the%20longest%20list.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20could%20write%20some%20formulas%20to%20make%20the%20dimensions%20of%20a%20named%20range%20change%20according%20to%20what's%20there........%20I'm%20sorry%2C%20but%20I%20can't%20devote%20more%20time%20to%20it%20until%20later%20tomorrow%3B%20maybe%20someone%20else%20can...but%20in%20the%20meantime%20you%20could%20just%20designate%20a%20range%20of%20cells%20sufficient%20to%20accommodate%20the%20longest%20possible%20list%2C%20as%20noted%20above.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1300522%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1300522%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F618121%22%20target%3D%22_blank%22%3E%40amAnnunz%3C%2FA%3E%26nbsp%3BI%20believe%20the%20attached%20file%20(%20_rev%20)%20contains%20what%20you%20ask%20for.%20First%20create%20the%20filter%20as%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3Bdescribed.%20Then%20link%20the%20data%20validation%20source%20to%20the%20cell%20that%20holds%20the%20filter%20formula%20and%20add%20the%20hash-sign%20(i.e.%20%23).%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202020-04-12%20at%2006.18.05.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183757i8CE5C4B04CEA0530%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Screenshot%202020-04-12%20at%2006.18.05.png%22%20alt%3D%22Screenshot%202020-04-12%20at%2006.18.05.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThis%20will%20create%20a%20drop-down%20that%20follows%20whatever%20the%20FILTER%20function%20comes%20up%20with.%3C%2FP%3E%3CP%3EIn%20the%20second%20version%20of%20the%20file%20(%20_ver2%20)%2C%20I%20took%20it%20one%20step%20further%20by%20making%20the%20drop-downs%20dependant%20on%20the%20Functions%20and%20Modes%20that%20are%20included%20in%20the%20table%20(changed%20it%20to%20a%20structured%20table%20though).%20That%20way%2C%20you%20don't%20need%20the%20named%20ranges%20anymore.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1301015%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1301015%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20actually%20already%20done%20that%20but%20I%20didn't%20fully%20explain%20why%20it%20wouldn't%20work%20for%20me.%20The%20example%20I%20sent%20you%20is%20only%20one%20of%20many.%20I%20need%20the%20original%20selection%20(i.e.%20the%20results%20from%20the%20two%20criteria)%20to%20be%20in%20a%20single%2C%20contained%20cell.%20It's%20hard%20to%20explain%20exactly%20why%20but%20that's%20what%20i%20need.%20So%20even%20though%20the%20list%20is%20in%20a%20single%2C%20contained%20cell%2C%20using%20the%20FILTER%20function%20initially%20still%20requires%20more%20than%20one%20cell.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20other%20help%20would%20be%20much%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1301016%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1301016%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20finishing%20that%20off%2C%20Riny.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20wondered%20whether%20the%20FILTER%20function%20could%20be%20put%20into%20the%20Data%20Validation%20dialog%20box%20directly.%20Just%20tried%20it%20and%20it%20didn't%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20hastag%20after%20the%20cell%20reference%20in%20the%20way%20you%20resolved%20it%20is%20good%20to%20know%20about.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20keep%20learning%20and%20appreciating%20how%20much%20Excel%20has%20added%20over%20the%20last%2018%20years%20since%20I%20retired%20..%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1301029%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1301029%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F618121%22%20target%3D%22_blank%22%3E%40amAnnunz%3C%2FA%3E%26nbsp%3BIf%20it's%20hard%20to%20explain%20what%20you%20need%2C%20can%20you%20perhaps%20make%20an%20example%20without%20any%20formula%20or%20actual%20drow-down%20how%20it%20should%20look%20like.%20Whatever%20it%20is.%3C%2FP%3E%3CP%3EOr%20perhaps%2C%20upload%20you%20real%20workbook%20(stripped%20of%20any%20confidential%20information)%20so%20that%20we%20can%20understand%20what%20you%20are%20talking%20about.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1301035%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1301035%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3BNot%20finished%20yet%2C%20I%20believe.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1301041%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1301041%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20not%20exactly%20what%20I%20was%20looking%20for%20but%20it's%20a%20really%20good%20option%20and%20I'm%20going%20to%20make%20it%20work%2C%20at%20least%20for%20now.%20Thank%20you%20both%20very%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1301096%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1301096%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F618121%22%20target%3D%22_blank%22%3E%40amAnnunz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewell%2C%20I'm%20sincerely%20hoping%20you%20can%20explain%20why%20you%20wanted%20it%20this%20way%2C%20but%20in%20the%20attached%20I've%20taken%20all%20the%20work%20done%20earlier%20in%20this%20chain%20and%20created%20a%20way%20for%20your%20filtered%20result%20to%20all%20appear%20in%20one%20cell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEssentially%20it%20involved%20three%20steps%2C%20and%20you'll%20see%20them%20in%20the%20highlighted%20cells%20in%20the%20attached.%3C%2FP%3E%3CP%3E%3CSTRONG%3ETRANSPOSE%3C%2FSTRONG%3E%20the%20results%20of%20the%20%3CSTRONG%3EFILTER%3C%2FSTRONG%3E%2C%20which%20leaves%20everything%20in%20adjacent%20cells%3C%2FP%3E%3CP%3E%3CSTRONG%3ECONCATENATE%3C%2FSTRONG%3E%20the%20results%20of%20the%20transposition%3C%2FP%3E%3CP%3EThen%20use%20%3CSTRONG%3ELEFT%3C%2FSTRONG%3E%20and%20%3CSTRONG%3ELEN%3C%2FSTRONG%3E%20and%20%3CSTRONG%3EFIND%3C%2FSTRONG%3E%20to%20trim%20off%20the%20trailing%20zeroes%20in%20the%20concatenate.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThese%20would%20need%20to%20be%20adjusted%20for%20a%20set%20longer%20than%20what%20I%20provided%20for%2C%20but%20it%20works%20I%20think%20with%20all%20your%20combinations.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENOW%20Please%20tell%20us%20why%20you%20need%20it%20this%20way.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1301125%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1301125%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20short%20answer%20to%20why%20I%20need%20it%20completely%20self%20contained%20in%20one%20drop%20down%20list%20is%20because%20I'm%20duplicating%20this%20process%20hundreds%20of%20times%20in%20hundreds%20of%20cells.%20Honestly%2C%20the%20answer%20you%20and%20the%20other%20gentleman%20came%20up%20with%20before%20is%20a%20really%20good%20option%20for%20me.%20It's%20going%20to%20take%20more%20legwork%20than%20I%20initially%20wanted%20but%20Data%20Validation%20just%20doesn't%20play%20nice%20with%20Table%20information.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1301159%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1301159%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F618121%22%20target%3D%22_blank%22%3E%40amAnnunz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20wrote%3A%20%3CEM%3EData%20Validation%20just%20doesn't%20play%20nice%20with%20Table%20information.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhich%20surprised%20me.%20My%20impression%20is%20that%20Data%20Validation%20DOES%20work%20well%20with%20tables%20(as%20lists).%20Then%20when%20you%20add%20the%20way%20we%20were%20able%20to%20come%20up%20with%20FILTER%20to%20create%20a%26nbsp%3B%20%3CU%3E%3CEM%3Edynamic%20list%3C%2FEM%3E%3C%2FU%3E%20based%20on%20two%20(and%20it%20could%20be%20even%20more)%20prior%20drop%20down%20(Data%20Validation)%20lists....%20it%20seems%20to%20me%20this%20is%20a%20fantastic%20capability%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20seen%20other%20ways%20to%20have%20Data%20Validation%20refer%20to%20secondary%20tables%20(e.g.%2C%20having%20a%20formula%20refer%20to%20a%20named%20range)%2C%20but%20this%20is%20a%20step%20ahead%2C%20because%20not%20only%20is%20it%20a%20secondary%20(or%20tertiary)%20table%2C%20but%20it's%20dynamic.%20You%20could%20extend%20the%20original%20or%20basic%20database%20and%20have%20it%20automatically%20accounted%20for.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyway%2C%20thanks%20for%20presenting%20the%20challenge.%20It's%20always%20fun%20to%20discover%20new%20(buried)%20capabilities%20within%20Excel.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1302604%22%20slang%3D%22en-US%22%3ERe%3A%20match%20two%20criteria%20and%20return%20multiple%20records%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1302604%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F618121%22%20target%3D%22_blank%22%3E%40amAnnunz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWait%2C%20I%20just%20missed%20something%20you%20said%20here%20in%20your%20last%20message.%20You've%20been%20talking%20of%20having%20the%20results%20of%20the%20dual%20selection--that%20third%20set%20of%20exercises%20that%20meet%20both--as%20present%20in%20one%20cell%2C%20stretched%20out%20horizontally%2C%20but%20you've%20also%20referred%2C%20right%20from%20the%20beginning%2C%20to%20having%20them%20in%20a%20drop%20down%20as%20a%20third%20Data%20Validation%20item....and%20that%20would%20appear%20in%20one%20cell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20when%20you%20wrote%20this%3A%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CEM%3E%22The%20short%20answer%20to%20why%20I%20need%20it%20completely%20self%20contained%20in%20one%20drop%20down%20list%20is%20because%20I'm%20duplicating%20this%20process%20hundreds%20of%20times%20in%20hundreds%20of%20cells%22%3C%2FEM%3E%3C%2FP%3E%3CP%3Esomething%20clicked%20with%20me.%20Although%20I%20can't%20imagine%20the%20application%20where%20you'd%20have%20this%20DataValidation%20process%2C%20especially%20with%20each%20of%20them%20two%20or%20three%20levels%20deep%2C%20running%20to%20hundreds%20of%20cells%2C%20that's%20your%20business%20and%20I%20can%20see%20that%20you%20know%20what%20you're%20doing.%20What%20I'm%20wondering%2C%20though%2C%20since%20the%20solution%20Riny%20and%20I%20were%20able%20to%20give%20you%20DOES%20give%20you%20that%20third%20level%20drop-down%20dynamic%20selection%20you%20wanted%2C%20is%20whether%20you're%20worrying%20about%20the%20screen%20getting%20cluttered%20with%20all%20the%20%22real%20estate%22%20needed%20to%20accomplish%20something%20like%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20that's%20the%20case%2C%20then%20surely%20you%20realize%20you%20can%20put%20all%20the%20%22sausage%20making%22%20aspect%20of%20it%20backstage%2C%20on%20a%20separate%2C%20and%20even%20a%20separate%20AND%20hidden%20spreadsheet%20of%20its%20own.%20What%20the%20user%20sees%20could%20be%20very%20clean%2C%20and%20all%20those%20three%20drop-downs%20can%20be%20adjacent%20to%20one%20another%20on%20one%20row%2C%20or%20adjacent%20to%20one%20another%20in%20one%20column...or%20adjacent%20to%20one%20another%20in%20some%20other%20aesthetically%20appealing%20and%20functional%20layout....%20Nobody%20needs%20to%20see%20the%20naked%20lists%20themselves.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20I%20do%20realize%20you%20may%20be%20fully%20aware%20of%20that....I'm%20writing%20partly%20for%20the%20sake%20of%20other%20people%20who%20may%20come%20across%20this%20(public)%20thread%2C%20facing%20similar%20situations%20(though%20hopefully%20not%20in%20the%20hundreds)%20who%20may%20not%20have%20thought%20of%20using%20separate%2Fhidden%20sheets%20for%20the%20working%20of%20the%20magic.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I have a problem set where I have a table of three columns. I need all the values in Column A that meet my selected criteria from both Column B and Column C to be returned in a format that I can put into Data Validation in list form. I've tried a variety of different way but this problem is just beyond me 

15 Replies
Highlighted

@amAnnunz 

 

If you have a spreadsheet created, even if it's not functional yet, it would help us visualize what you're trying to describe if we could see it. But you should expect that we might come back and ask for a more complete description of what you are actually trying to do.

 

So it would help if in addition to posting your spreadsheet as it is, if you could also give an example or two of what your sentence (in italics below) means in practice. That is, show what the values in A might be, both the selected and the unselected; are those values in column A in the form of words, numbers, codes, etc.? What are the entries in Col B and C that serve as criteria? How would the extracted values be used (together, in combination, or as individual entries in a data validation list?....

 

I need all the values in Column A that meet my selected criteria from both Column B and Column C to be returned in a format that I can put into Data Validation in list form.

Highlighted

@mathetes 

 

My table is $A$2:$C$25. I have 2 dropdowns in cell locations F2 and F3 that correspond to B2:B35 and C2:C35, respectively. What I want is a formula that takes both of those criteria from F2 and F3 into account and creates a new drop down list in cell F5 that pulls all the options in A2:A35 that meet both of those criteria.

 

I hope I'm being clear.

Highlighted
Solution

@amAnnunz 

 

FILTER did it. Here's the result. The formula is:

=FILTER(A2:A35,(B2:B35=F2)*(C2:C35=F3),"No match")

Highlighted

@mathetes 

 

Thank you. That accomplished part of what I was saying but the formula doesn't work when copied in data validation to have a list just in cell F5. I didn't make that clear the first time and I apologize. Any thoughts on that?

Highlighted

@amAnnunz 

 

The list wouldn't be just in cell F5, it would be F5:F10 or whatever column length you need to accommodate the longest list. 

 

We could write some formulas to make the dimensions of a named range change according to what's there........ I'm sorry, but I can't devote more time to it until later tomorrow; maybe someone else can...but in the meantime you could just designate a range of cells sufficient to accommodate the longest possible list, as noted above.

Highlighted

@amAnnunz I believe the attached file ( _rev ) contains what you ask for. First create the filter as @mathetes described. Then link the data validation source to the cell that holds the filter formula and add the hash-sign (i.e. #).

Screenshot 2020-04-12 at 06.18.05.png

This will create a drop-down that follows whatever the FILTER function comes up with.

In the second version of the file ( _ver2 ), I took it one step further by making the drop-downs dependant on the Functions and Modes that are included in the table (changed it to a structured table though). That way, you don't need the named ranges anymore.

Highlighted

@Riny_van_Eekelen 

 

I had actually already done that but I didn't fully explain why it wouldn't work for me. The example I sent you is only one of many. I need the original selection (i.e. the results from the two criteria) to be in a single, contained cell. It's hard to explain exactly why but that's what i need. So even though the list is in a single, contained cell, using the FILTER function initially still requires more than one cell. 

 

Any other help would be much appreciated.

Highlighted

@Riny_van_Eekelen 

 

Thank you for finishing that off, Riny.

 

I had wondered whether the FILTER function could be put into the Data Validation dialog box directly. Just tried it and it didn't work.

 

That hastag after the cell reference in the way you resolved it is good to know about.

 

I keep learning and appreciating how much Excel has added over the last 18 years since I retired ..

Highlighted

@amAnnunz If it's hard to explain what you need, can you perhaps make an example without any formula or actual drow-down how it should look like. Whatever it is.

Or perhaps, upload you real workbook (stripped of any confidential information) so that we can understand what you are talking about.

Highlighted

@mathetes Not finished yet, I believe.

Highlighted

@mathetes @Riny_van_Eekelen 

 

It's not exactly what I was looking for but it's a really good option and I'm going to make it work, at least for now. Thank you both very much!

Highlighted

@amAnnunz 

 

well, I'm sincerely hoping you can explain why you wanted it this way, but in the attached I've taken all the work done earlier in this chain and created a way for your filtered result to all appear in one cell.

 

Essentially it involved three steps, and you'll see them in the highlighted cells in the attached.

TRANSPOSE the results of the FILTER, which leaves everything in adjacent cells

CONCATENATE the results of the transposition

Then use LEFT and LEN and FIND to trim off the trailing zeroes in the concatenate.

 

These would need to be adjusted for a set longer than what I provided for, but it works I think with all your combinations.

 

NOW Please tell us why you need it this way.

Highlighted

@mathetes 

 

The short answer to why I need it completely self contained in one drop down list is because I'm duplicating this process hundreds of times in hundreds of cells. Honestly, the answer you and the other gentleman came up with before is a really good option for me. It's going to take more legwork than I initially wanted but Data Validation just doesn't play nice with Table information.

Highlighted

@amAnnunz 

 

You wrote: Data Validation just doesn't play nice with Table information.

 

Which surprised me. My impression is that Data Validation DOES work well with tables (as lists). Then when you add the way we were able to come up with FILTER to create a  dynamic list based on two (and it could be even more) prior drop down (Data Validation) lists.... it seems to me this is a fantastic capability,

 

I've seen other ways to have Data Validation refer to secondary tables (e.g., having a formula refer to a named range), but this is a step ahead, because not only is it a secondary (or tertiary) table, but it's dynamic. You could extend the original or basic database and have it automatically accounted for.

 

Anyway, thanks for presenting the challenge. It's always fun to discover new (buried) capabilities within Excel.

Highlighted

@amAnnunz 

 

Wait, I just missed something you said here in your last message. You've been talking of having the results of the dual selection--that third set of exercises that meet both--as present in one cell, stretched out horizontally, but you've also referred, right from the beginning, to having them in a drop down as a third Data Validation item....and that would appear in one cell.

 

So when you wrote this:

"The short answer to why I need it completely self contained in one drop down list is because I'm duplicating this process hundreds of times in hundreds of cells"

something clicked with me. Although I can't imagine the application where you'd have this DataValidation process, especially with each of them two or three levels deep, running to hundreds of cells, that's your business and I can see that you know what you're doing. What I'm wondering, though, since the solution Riny and I were able to give you DOES give you that third level drop-down dynamic selection you wanted, is whether you're worrying about the screen getting cluttered with all the "real estate" needed to accomplish something like this.

 

If that's the case, then surely you realize you can put all the "sausage making" aspect of it backstage, on a separate, and even a separate AND hidden spreadsheet of its own. What the user sees could be very clean, and all those three drop-downs can be adjacent to one another on one row, or adjacent to one another in one column...or adjacent to one another in some other aesthetically appealing and functional layout.... Nobody needs to see the naked lists themselves.

 

And I do realize you may be fully aware of that....I'm writing partly for the sake of other people who may come across this (public) thread, facing similar situations (though hopefully not in the hundreds) who may not have thought of using separate/hidden sheets for the working of the magic.