SOLVED

Formula/Formatting to populate adjacent cell based on initial cell contents

%3CLINGO-SUB%20id%3D%22lingo-sub-1171726%22%20slang%3D%22en-US%22%3EFormula%2FFormatting%20to%20populate%20adjacent%20cell%20based%20on%20initial%20cell%20contents%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1171726%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Everyone%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20creating%20a%20template%20for%20a%20report%20we%20are%20developing%20and%20i'm%20trying%20to%20add%20as%20many%20'tricks'%20in%20the%20background%20as%20possible%20to%20make%20it%20easy%20for%20all%20involved%20and%20reduce%20the%20amount%20of%20queries%20we%20will%20receive%20back%20from%20it.%26nbsp%3B%3C%2FP%3E%3CP%3E(Please%20see%20screenshot%20below%20for%20references)%3C%2FP%3E%3CP%3EColumns%20F-H%20are%20populated%20by%20the%20end%20user%20via%20set%20answers%20in%20a%20drop%20down%20list%20however%2C%20depending%20on%20the%20answer%20given%20in%20column%20F%2C%20the%20other%202%20columns%20may%20not%20need%20to%20be%20completed.%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20add%20some%20kind%20of%20formula%2Fconditional%20formatting%2Fdata%20validation%20that%20auto%20populates%20a%20cells%20in%20columns%20G%26amp%3BH%20when%20the%20exact%20phrase%20'Completed%20on%20DS'%20is%20selected%20in%20the%20adjacent%26nbsp%3B%20cell%20in%20column%20F%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20case%20other%20formatting%20makes%20a%20difference%20-%20i%20already%20have%20conditional%20formatting%20set%20on%20all%20three%20columns%20to%20highlight%20certain%20answers.%20(e.g.%20answer%20'Not%20Listed%20in%20DS'%20in%20column%20F%20auto%20formats%20to%20Red%20Bold%20text)%20and%20my%20'lists'%20are%20saved%20on%20a%20separate%20tab%20in%20the%20same%20workbook.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20medium%20understanding%20of%20formula%20in%20excel%20and%20can%20usually%20string%20something%20together%20through%20trial%20and%20error.%20I've%20tried%20several%20variations%20of%20IF%20formula%20for%20this%20but%20can't%20seem%20to%20find%20anything%20that%20works%20how%20i%20want%20it%20to.%20(%20last%20thing%20i%20tried%20was%20'(%3DIF(F2%3D%22Completed%20on%20DS%22%2CG2%2BH2%3D%22N%2FA%22%2C0)'%20)%20so%20i'm%20not%20sure%20if%20my%20formula%20knowledge%20just%20doesn't%20go%20deep%20enough%20or%20if%20its%20impossible%20to%20do%20in%20this%20way.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20that%20makes%20sense%2C%20please%20feel%20free%20to%20ask%20further%20questions%20if%20I've%20not%20explained%20it%20clearly%20enough.%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20your%20time%20and%20assistance.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1171726%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%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-1171887%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%2FFormatting%20to%20populate%20adjacent%20cell%20based%20on%20initial%20cell%20contents%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1171887%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F266710%22%20target%3D%22_blank%22%3E%40JenSmith%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPerhaps%20this%20might%20be%20what%20you're%20looking%20for%3A%3C%2FP%3E%3CP%3EIn%20cell%20G2...%3C%2FP%3E%3CPRE%3E%3CSPAN%3E%3DIF(%24F2%3D%22Completed%20on%20DS%22%2C%22N%2FA%22%2CIF(%24F2%3D%22Not%20Listed%20on%20DS%22%2C%22Statement%20if%20true%22%2C0))%3C%2FSPAN%3E%26nbsp%3B%3C%2FPRE%3E%3CP%3ECopy%20over%20to%20H2%20and%20down%20as%20necessary.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1171932%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%2FFormatting%20to%20populate%20adjacent%20cell%20based%20on%20initial%20cell%20contents%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1171932%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3B%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20response!%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20this%20work%20whilst%20also%20having%20drop%20down%20options%20for%20all%20cells%20in%20columns%20G%20%26amp%3B%20H%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%26nbsp%3B%3CBR%20%2F%3EJen%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1172465%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%2FFormatting%20to%20populate%20adjacent%20cell%20based%20on%20initial%20cell%20contents%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1172465%22%20slang%3D%22en-US%22%3EAs%20long%20as%20the%20data%20validation%20list%20includes%20%E2%80%9CN%2FA%E2%80%9D%20and%20the%20%E2%80%9CStatement%20if%20true%E2%80%9D%20from%20the%20second%20if%20statement%2C%20then%20yes%2C%20this%20would%20work%20whilst%20having%20a%20drop%20down%20in%20the%20same%20cell.%3CBR%20%2F%3EHowever...%20as%20soon%20as%20an%20option%20is%20chosen%20from%20the%20data%20validation%20list%20the%20formula%20would%20be%20removed%20from%20the%20cell.%3CBR%20%2F%3EI%20would%20recommend%20keeping%20the%20drop%20down%20and%20formula%20in%20separate%20cells.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1173770%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%2FFormatting%20to%20populate%20adjacent%20cell%20based%20on%20initial%20cell%20contents%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1173770%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3B%20Great%2C%20thanks%20so%20much%20for%20the%20help!%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1174072%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%2FFormatting%20to%20populate%20adjacent%20cell%20based%20on%20initial%20cell%20contents%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1174072%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F266710%22%20target%3D%22_blank%22%3E%40JenSmith%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20pleasure!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi Everyone, 

 

I am creating a template for a report we are developing and i'm trying to add as many 'tricks' in the background as possible to make it easy for all involved and reduce the amount of queries we will receive back from it. 

(Please see screenshot below for references)

Columns F-H are populated by the end user via set answers in a drop down list however, depending on the answer given in column F, the other 2 columns may not need to be completed. 

Is it possible to add some kind of formula/conditional formatting/data validation that auto populates a cells in columns G&H when the exact phrase 'Completed on DS' is selected in the adjacent  cell in column F?

 

In case other formatting makes a difference - i already have conditional formatting set on all three columns to highlight certain answers. (e.g. answer 'Not Listed in DS' in column F auto formats to Red Bold text) and my 'lists' are saved on a separate tab in the same workbook. 

 

I have a medium understanding of formula in excel and can usually string something together through trial and error. I've tried several variations of IF formula for this but can't seem to find anything that works how i want it to. ( last thing i tried was '(=IF(F2="Completed on DS",G2+H2="N/A",0)' ) so i'm not sure if my formula knowledge just doesn't go deep enough or if its impossible to do in this way. 

 

I hope that makes sense, please feel free to ask further questions if I've not explained it clearly enough. 

Thanks in advance for your time and assistance. 

5 Replies
Highlighted

Hello @JenSmith,

 

Perhaps this might be what you're looking for:

In cell G2...

=IF($F2="Completed on DS","N/A",IF($F2="Not Listed on DS","Statement if true",0)) 

Copy over to H2 and down as necessary. 

Highlighted

Hi @PReagan , 

 

Thank you for your response! 

Would this work whilst also having drop down options for all cells in columns G & H? 

 

Thanks, 
Jen

Highlighted
Solution
As long as the data validation list includes “N/A” and the “Statement if true” from the second if statement, then yes, this would work whilst having a drop down in the same cell.
However... as soon as an option is chosen from the data validation list the formula would be removed from the cell.
I would recommend keeping the drop down and formula in separate cells.
Highlighted

@PReagan  Great, thanks so much for the help!  

Highlighted