Complex If/Then assistance

%3CLINGO-SUB%20id%3D%22lingo-sub-1483644%22%20slang%3D%22en-US%22%3EComplex%20If%2FThen%20assistance%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1483644%22%20slang%3D%22en-US%22%3E%3CP%3ESituation%3A%3C%2FP%3E%3CP%3EAs%20with%20many%20offices%20we%20are%20operating%20under%20a%20half%20on%2Fhalf%20off%20rotation%20and%20I%20am%20trying%20to%20build%20a%20spreadsheet%20that%20can%20show%20who%20is%20teleworking%20and%20who%20is%20not%20on%20a%20given%20week%20based%20on%20the%20team%20they%20are%20on.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDesired%20result%3A%3C%2FP%3E%3CP%3EA%20drop%20down%20menu%20that%20I%20can%20select%20which%20team%20should%20be%20teleworking.%20Once%20selected%2C%20personnel%20from%20that%20team%20listed%20in%20rows%20will%20have%20a%20column%20auto-populated%20with%20'teleworking'.%20Additionally%2C%20personnel%20from%20the%20opposite%20team%20will%20have%20that%20column's%20text%20removed%20from%20the%20previous%20week.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1483644%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-1483864%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20If%2FThen%20assistance%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1483864%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F707826%22%20target%3D%22_blank%22%3E%40Robert_Ennaco%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20a%20solution%20for%20part%20of%20that%2C%20a%20drop%20down%20box%20that%20goes%20through%20a%20list%20of%20names%20and%20team%20assignments%20and%2C%20based%20on%20selection%20of%20team%20A%20or%20B%2C%20lists%20the%20names%20associated%20with%20that%20team.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20does%20use%20the%20functions%20FILTER%20and%20SORT%2C%20which%20are%20only%20available%20to%20those%20who%20have%20the%20newest%20version%20of%20Excel%2C%20so%20if%20it%20doesn't%20work%20for%20you%2C%20that%20would%20be%20why.%20Come%20back%20and%20let%20us%20know%20if%20that's%20the%20case%2C%20so%20another%20solution%20can%20be%20created.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20didn't%20incorporate%20dates%20and%20other%20features%20because%20it%20wasn't%20clear%20how%20exactly%20you%20were%20wanting%20that%20to%20operate.%20I%20was%20tackling%20only%20the%20basic%20problem%20of%20getting%20a%20drop%20down%20to%20select%20a%20team%20and%20have%20the%20members%20listed.%20The%20rest%20of%20that%20is%20refinement%20for%20which%20I'd%20ask%20a%20more%20complete%20description.%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-1483894%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20If%2FThen%20assistance%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1483894%22%20slang%3D%22en-US%22%3Ea%20sample%20of%20how%20your%20sheet%20is%20set%20up%20might%20help%20but%20if%20you%20have%20people%20listed%20then%20have%20a%20column%20for%20%22Team%22%20then%20in%20the%20corresponding%20weeks%20you%20can%20do%20a%20check%20that%20looks%20at%20the%20week%20and%20'calculates'%20if%20they%20are%20teleworking.%20if%20you%20have%20date%20field%20you%20can%20use%20something%20like%3CBR%20%2F%3E%3DIF(XOR(ISEVEN(WEEKNUM(C%242))%2C%24B3%3D%22RED%22)%2C%22teleworking%22%2C%22in%20office%22)%3CBR%20%2F%3Ewhere%20row%202%20are%20your%20dates%20and%20then%20column%20B%20is%20your%20Team%20designator%20(e.g.%20%22BLUE%22%20or%20%22RED%22).%3C%2FLINGO-BODY%3E
Visitor

Situation:

As with many offices we are operating under a half on/half off rotation and I am trying to build a spreadsheet that can show who is teleworking and who is not on a given week based on the team they are on.

 

Desired result:

A drop down menu that I can select which team should be teleworking. Once selected, personnel from that team listed in rows will have a column auto-populated with 'teleworking'. Additionally, personnel from the opposite team will have that column's text removed from the previous week.

 

Thank you in advance.

2 Replies

@Robert_Ennaco 

 

Here's a solution for part of that, a drop down box that goes through a list of names and team assignments and, based on selection of team A or B, lists the names associated with that team.

 

This does use the functions FILTER and SORT, which are only available to those who have the newest version of Excel, so if it doesn't work for you, that would be why. Come back and let us know if that's the case, so another solution can be created.

 

I didn't incorporate dates and other features because it wasn't clear how exactly you were wanting that to operate. I was tackling only the basic problem of getting a drop down to select a team and have the members listed. The rest of that is refinement for which I'd ask a more complete description.

 

 

a sample of how your sheet is set up might help but if you have people listed then have a column for "Team" then in the corresponding weeks you can do a check that looks at the week and 'calculates' if they are teleworking. if you have date field you can use something like
=IF(XOR(ISEVEN(WEEKNUM(C$2)),$B3="RED"),"teleworking","in office")
where row 2 are your dates and then column B is your Team designator (e.g. "BLUE" or "RED").