SOLVED
Home

Returning list from 3D array

%3CLINGO-SUB%20id%3D%22lingo-sub-195549%22%20slang%3D%22en-US%22%3EReturning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195549%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20weekly%20(Saturday)%20market%20and%2040%20vendors.%20I%20have%20a%20matrix%20with%20months%20as%20the%20rows%20and%20Saturday%20dates%20as%20the%20columns%20(1-5).%20I%20ask%20vendors%20to%20check%20the%20dates%20they%20want%20to%20be%20there.%20I%20create%20worksheets%201-40%20for%20the%20vendors%2C%20where%20the%20vendors%20are%20either%20the%20worksheet%20name%20or%20in%20a%20NAME%20field%20on%20the%20worksheet.%20The%20worksheets%20have%20identical%20arrays%2C%20showing%20which%20Saturdays%20a%20vendor%20has%20checked.%3C%2FP%3E%3CP%3EHow%20do%20I%20return%20a%20list%20of%20vendors%20who%E2%80%99ve%20checked%20a%20given%20Saturday%20(I%E2%80%99m%20clicking%20on)%3F%3C%2FP%3E%3CP%3E(a)%20Is%20there%20a%20more%20elegant%20way%20to%20do%20this%3F%3C%2FP%3E%3CP%3E(b)%20What%20function%20do%20I%20need%20to%20generate%20that%20list%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-195549%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20%26amp%3B%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFunctions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-202285%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-202285%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%2C%20yes!%20Also%2C%20the%20information%20on%20the%20%E2%80%9Cnew%E2%80%9D%20functionality%20was%20very%20helpful.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-202282%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-202282%22%20slang%3D%22en-US%22%3E%3CP%3EPaul-%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJust%20wanted%20to%20check%20back%20in%20and%20see%20if%20you%20were%20able%20to%20resolve%20your%20issue%20with%20the%20sample%20file%20provided%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201516%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201516%22%20slang%3D%22en-US%22%3E%3CP%3EPaul-%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETry%20looking%20at%20the%20file%20I%20have%20attached.%26nbsp%3B%20I%20have%20provided%20all%20three%20outputs%20you%20requested.%26nbsp%3B%20Hope%20this%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201507%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201507%22%20slang%3D%22en-US%22%3EI%20really%20did%20a%20lousy%20job%20describing%20my%20problem%20-%20sorry!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201506%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201506%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20does%2C%20but%20it%20only%20shows%20vendors%20if%20I%20have%20just%20entered%20them%20in%20%E2%80%9Cdata%E2%80%9D%20for%20the%20specific%20date.%20If%20I%20enter%20another%20date%2C%20that%20vendor%20disappears%20from%20the%20%E2%80%9Cquery%E2%80%9D%20output.%3C%2FP%3E%3CP%3EAs%20the%20goal%20is%20to%20enter%20all%20the%20dates%20the%20vendors%20want%20to%20participate%20and%20then%20use%20the%20%E2%80%9Cquery%E2%80%9D%20output%20for%20individual%20dates%20to%20see%26nbsp%3Bhow%20many%20(and%20which)%20have%20applied%20for%20a%20given%20date%20(will%20the%20market%20be%20too%20crowded%2C%20do%20we%20need%20to%20expand%20street%20closures%20etc)%2C%20this%20doesn%E2%80%99t%20quite%20work%20for%20this%20purpose.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201458%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201458%22%20slang%3D%22en-US%22%3E%3CP%3EPaul-%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETry%20using%20the%20setup%20on%20the%20%22Query%22%20Sheet.%26nbsp%3B%20I%20believe%20it%20matches%20your%20Ideal%20Output%20%231.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201139%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201139%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20the%20file%20with%20a%20worksheet%20showing%20my%20ideal%20output.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201117%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201117%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20you%20sent%20in%20the%20first%20place%20looked%20as%20if%20it%20did%20what%20I%20needed!%20The%20data%20isn%E2%80%99t%20sensitive%2C%20and%20you%20have%20most%20of%20it%20already.%20What%20I%20want%20to%20enter%20is%20the%20list%20of%20vendors%20(1-40)%2C%20which%20I%20assumed%20I%20could%20do%20in%20worksheet%203.%20You%E2%80%99d%20already%20entered%20the%20dates%2C%20which%20I%20truncated%20to%20show%20May-December.%3C%2FP%3E%3CP%3EWhat%20I%20want%20-%20and%20thought%20I%20could%20do%20-%20is%20to%20select%20a%20vendor%20in%20worksheet%201%2C%20select%20a%20month%20and%20then%20select%20the%20dates%20which%20the%20vendor%20applied%20for%20(for%20example%2C%20the%20first%20Saturday%20in%20each%20month%2C%20first%20and%20third%20Saturday%2C%20Saturdays%20between%20October%20and%20December%20for%20seasonal%20items%20%E2%80%A6).%26nbsp%3B%3C%2FP%3E%3CP%3EI%20then%20expected%20to%20be%20able%20to%20select%20a%20Saturday%20in%20worksheet%202%20and%20see%20a%20list%20of%20vendors%20who%20applied%20for%20that%20date%2C%20select%20another%20Saturday%20and%20see%20another%20list.%3C%2FP%3E%3CP%3ERepeating%20(to%20be%20sure%20I%E2%80%99m%20clear%20this%20time)%3A%20I%20want%20to%20pick%20a%20vendor%20from%20the%20dropdown%20list%20in%20w%2Fsheet%201%20and%20use%20the%20dropdown%20lists%20to%20enter%20a%20series%20of%20Saturdays%20(the%20vendor%E2%80%99s%20ideal%20selection)%20which%20are%20then%20stored.%20After%20entering%20all%20the%20vendors%20and%20Saturdays%2C%20I%20want%20to%20select%20a%20Saturday%20in%20w%2Fsheet%202%20and%20get%20a%20list%20of%20vendors%20requesting%20that%20Saturday.%3C%2FP%3E%3CP%3EInput%3A%20vendor%20applications%2C%20checking%20requested%20Saturdays%20in%20a%205-week%20by%208-month%20grid.%3C%2FP%3E%3CP%3EManual%20entry%20in%20Excel.%3C%2FP%3E%3CP%3EOutput%3A%20list%20of%20vendors%20for%20a%20given%20Saturday%20(this%20is%20why%20my%20first%20thought%20was%20the%203D%20array).%3C%2FP%3E%3CP%3EIdeal%20additional%20output%20(can%20be%20done%20manually%2C%20but%20%E2%80%A6)%3A%20list%20of%20vendors%20for%20a%20given%20month%20showing%20the%20number%20of%20days%20requested%20(as%20a%20basis%20for%20monthly%20billing).%3C%2FP%3E%3CP%3EI%20hope%20I%20got%20it%20right%20this%20time!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201064%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201064%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20Paul-%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20you%20mentioned%20I%20believe%20there%20is%20a%20disconnect%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Can%20you%20identify%20the%20inputs%20and%20what%20format%20you%20would%20like%20to%20enter%20them%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20Can%20you%20please%20provide%20an%20example%20of%20how%20you%20would%20like%20the%20data%20displayed%3F%3C%2FP%3E%0A%3CP%3E3.%20A%20non-sensitive%20example%20of%20the%20data%20may%20help%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBasically%20I%20need%20a%20before%20and%20after.%26nbsp%3B%20What%20you%20plan%20to%20enter%20and%20what%20you%20expect%20to%20get%20back.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201052%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201052%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20size%3D%22%2B1%22%3E%3CFONT%20face%3D%22Verdana%22%3EHi%20Matt%20Mickle%2C%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%22%2B1%22%3E%3CFONT%20face%3D%22Verdana%22%3EI%E2%80%99m%20sorry%20-%20I%20must%20have%20expressed%20myself%20badly.%20I%20need%20to%20enter%20all%20the%20data%20in%20advance%20for%20the%20vendors.%20As%20it%20stands%2C%20I%20seem%20to%20be%20able%20to%20enter%20data%20in%20the%20%E2%80%9Cdata%E2%80%9D%20worksheet%20for%20a%20given%20date%2C%20and%20pull%20up%20the%20vector%20of%20vendors%20who%E2%80%99ll%20be%20there%20on%20that%20date%20in%20the%20%E2%80%9Cquery%E2%80%9D%20worksheet%20-%20provided%20that%20all%20the%20vendors%20in%20the%20%E2%80%9Cdata%E2%80%9D%20worksheet%20are%20showing%20that%20date.%3CBR%20%2F%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%22%2B1%22%3E%3CFONT%20face%3D%22Verdana%22%3EI%20don%E2%80%99t%20seem%20to%20be%20able%20to%20enter%20a%20matrix%20of%20dates%20for%20the%20vendors%20(vendor%201%20will%20be%20there%20on%20June%2002%2C%2009%2C%2016%2C%2023%2C%20July%2007%2C%2014%2C%2021%20etc%2C%20vendor%202%20will%20be%20there%20on%20June%2002%2C%20July%2007%20etc)%20and%20subsequently%20click%20on%20a%20date%20in%20the%20dropdown%20menu%20in%20the%20%E2%80%9Cquery%E2%80%9D%20worksheet%20and%20get%20a%20vector%20of%20vendors%20FOR%20THAT%20DATE.%3CBR%20%2F%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%22%2B1%22%3E%3CFONT%20face%3D%22Verdana%22%3EHere%E2%80%99s%20the%20example%20I%E2%80%99ve%20been%20working%20with.%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%22%2B1%22%3E%3CFONT%20face%3D%22Verdana%22%3EAm%20I%20missing%20a%20step%20somewhere%2C%20please%3F%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%22%2B1%22%3E%3CFONT%20face%3D%22Verdana%22%3EBest%2C%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%22%2B1%22%3E%3CFONT%20face%3D%22Verdana%22%3EPaul%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195775%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195775%22%20slang%3D%22en-US%22%3EOh%2C%20beautiful!%20This%20would%20have%20been%20very%20useful%2030%20years%20ago%2C%20when%20I%20was%20picking%20my%20way%20through%20ranges%20in%20nested%20functions.%3CBR%20%2F%3EThank%20you!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195768%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195768%22%20slang%3D%22en-US%22%3E%3CP%3EPaul-%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20are%20a%20few%20resources%20to%20help%20learn%20about%20array%20formulas.%26nbsp%3B%20The%20most%20important%20thing%20is%20that%20you%20enter%20them%20using%20the%20key%20combination%20CTRL%20%2B%20SHIFT%20%2B%20ENTER.%26nbsp%3B%20It%20may%20also%20help%20to%20go%20to%20the%20formulas%20tab%20and%20use%20the%20evaluate%20formula%20option%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fguidelines-and-examples-of-array-formulas-7d94a64e-3ff3-4686-9372-ecfd5caa57c7%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fguidelines-and-examples-of-array-formulas-7d94a64e-3ff3-4686-9372-ecfd5caa57c7%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.ablebits.com%2Foffice-addins-blog%2F2015%2F02%2F25%2Farray-formulas-functions-excel%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.ablebits.com%2Foffice-addins-blog%2F2015%2F02%2F25%2Farray-formulas-functions-excel%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195751%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195751%22%20slang%3D%22en-US%22%3EThank%20you%20-%20I%E2%80%99ll%20get%20my%20second%20cup%20of%20coffee%20and%20look%20at%20the%20change%20in%20the%20query%20-%20I%20used%20mostly%20nested%20functions%20back%20in%20the%20day%2C%20and%20I%20need%20a%20bit%20of%20time%20to%20get%20my%20head%20around%20the%20new%20stuff.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195749%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195749%22%20slang%3D%22en-US%22%3E%3CP%3EPaul-%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20went%20ahead%20and%20updated%20the%20formula.%26nbsp%3B%20There%20was%20a%20reference%20issue%20that%20was%20preventing%20the%20formula%20from%20pulling%20in%20Vendor%201.%26nbsp%3B%20It%20should%20work%20without%20issue%20now.%26nbsp%3B%20I%20used%201%2F6%20and%201%2F20%20as%20test%20cases.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195672%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195672%22%20slang%3D%22en-US%22%3EA%20quick%20question%3A%20why%20doesn%E2%80%99t%20vendor%201%20show%20up%20in%20the%20list%20for%202018-01-06%3F%20The%20Query%20seems%20as%20if%20it%20should%20return%20them%20as%20well.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195651%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195651%22%20slang%3D%22en-US%22%3EThnk%20you!%20I%20will%20brood%20on%20this%20after%20coffee.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195621%22%20slang%3D%22en-US%22%3ERe%3A%20Returning%20list%20from%203D%20array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195621%22%20slang%3D%22en-US%22%3E%3CP%3EPaul-%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20think%20this%20is%20a%20better%20setup.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETry%20these%20modifications%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Have%20one%20worksheet%20for%20all%20vendors%3C%2FP%3E%0A%3CP%3E2.%20Have%20a%20Vendor%20Dropdown%3C%2FP%3E%0A%3CP%3E3.%20Have%20a%20month%20Drop%20Down%3C%2FP%3E%0A%3CP%3E4.%20Have%20a%20weekend%20Dropdown%3C%2FP%3E%0A%3CP%3E5.%20Have%20a%20Query%20Worksheet%20that%20will%20tell%20you%2C%20who%20will%20perform%20or%20be%20in%20attendance%20on%20X%20date.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI've%20set%20it%20up%20where%20the%20dates%20of%20the%20Saturday's%20will%20narrow%20down%20to%20a%20specific%20month%20when%20the%20month%20is%20selected.%26nbsp%3B%20i.e.%20If%20you%20select%20February%20it%20will%20only%20show%20Saturday's%20in%20February.%26nbsp%3B%20If%20you%20select%20March%20it%20will%20only%20show%20Saturday's%20in%20March.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUse%20an%20array%20formula%20to%20help%20identify%20the%20vendors%20for%20a%20particular%20Saturday%3A%3C%2FP%3E%0A%3CP%3E%3D%7BIFERROR(INDEX(Data!%24A%242%3A%24C%24100%2CSMALL(IF(Data!%24C%242%3A%24C%24100%3DCriteria%2CROW(Data!%24A%242%3A%24C%24100)-1)%2CROW(2%3A2))%2CCOLUMN())%2C%22%22)%7D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20381px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F34501i89F83F98F0AD5ED8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Saturday.png%22%20title%3D%22Saturday.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EPlease%20see%20the%20attached%20file%20for%20an%20example%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I have a weekly (Saturday) market and 40 vendors. I have a matrix with months as the rows and Saturday dates as the columns (1-5). I ask vendors to check the dates they want to be there. I create worksheets 1-40 for the vendors, where the vendors are either the worksheet name or in a NAME field on the worksheet. The worksheets have identical arrays, showing which Saturdays a vendor has checked.

How do I return a list of vendors who’ve checked a given Saturday (I’m clicking on)?

(a) Is there a more elegant way to do this?

(b) What function do I need to generate that list?

 

17 Replies
Highlighted

Paul-

 

I think this is a better setup. 

 

Try these modifications:

 

1. Have one worksheet for all vendors

2. Have a Vendor Dropdown

3. Have a month Drop Down

4. Have a weekend Dropdown

5. Have a Query Worksheet that will tell you, who will perform or be in attendance on X date.

 

I've set it up where the dates of the Saturday's will narrow down to a specific month when the month is selected.  i.e. If you select February it will only show Saturday's in February.  If you select March it will only show Saturday's in March.

 

Use an array formula to help identify the vendors for a particular Saturday:

={IFERROR(INDEX(Data!$A$2:$C$100,SMALL(IF(Data!$C$2:$C$100=Criteria,ROW(Data!$A$2:$C$100)-1),ROW(2:2)),COLUMN()),"")}

 

Saturday.png

 

 

Please see the attached file for an example

 

 

 

Highlighted
Thnk you! I will brood on this after coffee.
A quick question: why doesn’t vendor 1 show up in the list for 2018-01-06? The Query seems as if it should return them as well.
Highlighted

Paul-

 

I went ahead and updated the formula.  There was a reference issue that was preventing the formula from pulling in Vendor 1.  It should work without issue now.  I used 1/6 and 1/20 as test cases.

 

 

Highlighted
Thank you - I’ll get my second cup of coffee and look at the change in the query - I used mostly nested functions back in the day, and I need a bit of time to get my head around the new stuff.
Highlighted

Paul-

 

Here are a few resources to help learn about array formulas.  The most important thing is that you enter them using the key combination CTRL + SHIFT + ENTER.  It may also help to go to the formulas tab and use the evaluate formula option:

 

https://support.office.com/en-us/article/guidelines-and-examples-of-array-formulas-7d94a64e-3ff3-468...

 

https://www.ablebits.com/office-addins-blog/2015/02/25/array-formulas-functions-excel/

Highlighted
Oh, beautiful! This would have been very useful 30 years ago, when I was picking my way through ranges in nested functions.
Thank you!
Highlighted

Hi Matt Mickle,

I’m sorry - I must have expressed myself badly. I need to enter all the data in advance for the vendors. As it stands, I seem to be able to enter data in the “data” worksheet for a given date, and pull up the vector of vendors who’ll be there on that date in the “query” worksheet - provided that all the vendors in the “data” worksheet are showing that date.

I don’t seem to be able to enter a matrix of dates for the vendors (vendor 1 will be there on June 02, 09, 16, 23, July 07, 14, 21 etc, vendor 2 will be there on June 02, July 07 etc) and subsequently click on a date in the dropdown menu in the “query” worksheet and get a vector of vendors FOR THAT DATE.

Here’s the example I’ve been working with.

Am I missing a step somewhere, please?

Best,

Paul

Highlighted

Hey Paul-

 

As you mentioned I believe there is a disconnect:

 

1. Can you identify the inputs and what format you would like to enter them? 

2. Can you please provide an example of how you would like the data displayed?

3. A non-sensitive example of the data may help

 

Basically I need a before and after.  What you plan to enter and what you expect to get back.

Highlighted

What you sent in the first place looked as if it did what I needed! The data isn’t sensitive, and you have most of it already. What I want to enter is the list of vendors (1-40), which I assumed I could do in worksheet 3. You’d already entered the dates, which I truncated to show May-December.

What I want - and thought I could do - is to select a vendor in worksheet 1, select a month and then select the dates which the vendor applied for (for example, the first Saturday in each month, first and third Saturday, Saturdays between October and December for seasonal items …). 

I then expected to be able to select a Saturday in worksheet 2 and see a list of vendors who applied for that date, select another Saturday and see another list.

Repeating (to be sure I’m clear this time): I want to pick a vendor from the dropdown list in w/sheet 1 and use the dropdown lists to enter a series of Saturdays (the vendor’s ideal selection) which are then stored. After entering all the vendors and Saturdays, I want to select a Saturday in w/sheet 2 and get a list of vendors requesting that Saturday.

Input: vendor applications, checking requested Saturdays in a 5-week by 8-month grid.

Manual entry in Excel.

Output: list of vendors for a given Saturday (this is why my first thought was the 3D array).

Ideal additional output (can be done manually, but …): list of vendors for a given month showing the number of days requested (as a basis for monthly billing).

I hope I got it right this time!

Highlighted

This is the file with a worksheet showing my ideal output.

Highlighted

Paul-

 

Try using the setup on the "Query" Sheet.  I believe it matches your Ideal Output #1.

Highlighted

It does, but it only shows vendors if I have just entered them in “data” for the specific date. If I enter another date, that vendor disappears from the “query” output.

As the goal is to enter all the dates the vendors want to participate and then use the “query” output for individual dates to see how many (and which) have applied for a given date (will the market be too crowded, do we need to expand street closures etc), this doesn’t quite work for this purpose.

Highlighted
I really did a lousy job describing my problem - sorry!
Highlighted

Paul-

 

Try looking at the file I have attached.  I have provided all three outputs you requested.  Hope this helps.

Highlighted
Solution

Paul-

 

Just wanted to check back in and see if you were able to resolve your issue with the sample file provided?

Highlighted

Thank you, yes! Also, the information on the “new” functionality was very helpful.