Home

Data validation in Excel

%3CLINGO-SUB%20id%3D%22lingo-sub-756326%22%20slang%3D%22en-US%22%3EData%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756326%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20big%20problem.%20I%20am%20making%20some%20Excel%20shets%20for%20my%20work%2C%20and%20I%20am%20using%20some%20data%20validation%20lists.%20The%20problem%20is%20that%20I%20set%20up%20some%20lists%20and%20two%20days%20later%2C%20I%20did%20nothing%2C%20but%20the%20lists%20are%20refering%20to%20different%20cells%20than%20the%20ones%20I%20set%20up.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20have%20any%20idea%20how%20to%20fix%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot%2C%3C%2FP%3E%3CP%3EAuriane%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-756326%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-756360%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756360%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F376895%22%20target%3D%22_blank%22%3E%40auriane78%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%3C%2FP%3E%3CP%3ECan%20you%20upload%20a%20copy%20of%20your%20file%20so%20we%20can%20see%20what%20you%20have%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756367%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756367%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20is%20the%20D%20and%20E%20collumns%20of%20the%2012%20first%20tabs%20which%20refer%20to%20'Parametrage'N61%3AN68%20and%20'Parametrage'M61%3AM%3A68'%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756461%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756461%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F376895%22%20target%3D%22_blank%22%3E%40auriane78%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'm%20not%20sure%20why%20do%20you%20need%20both%20VLOOKUP%20and%20data%20validation%20list%20in%20D%20and%20E%2C%20VLOOKUP%20is%20enough.%3C%2FP%3E%0A%3CP%3EAnyway%2C%20in%20D%20your%20data%20validation%20list%20refers%20on%20the%20same%20table%2C%20not%20on%20Parameters.%20In%20addition%2C%20better%20to%20use%20dynamic%20list%2C%20as%20variant%20with%20OFFSET%20as%3C%2FP%3E%0A%3CPRE%3E%3DOFFSET(Param%C3%A9trage!I%2460%3A%24I%2490%2C0%2C0%2CCOUNTA(Param%C3%A9trage!%24I%2460%3A%24I%2490))%3C%2FPRE%3E%0A%3CP%3Ein%20C6%20on%2003.19.%20I%20also%20adjusted%20lists%20in%20D6%20and%20E6%20in%20the%20same%20sheet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756504%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756504%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%3B%3C%2FP%3E%3CP%3E1.%20The%20Vlookup%20permits%20to%20find%20the%20correspondancy%2C%20and%20sometimes%20this%20correspondancy%20is%20multiple%20so%20the%20text%20that%20appears%20is%20'to%20define'%20and%20there%20you%20use%20the%20list%20to%20define%20whih%20prescriptor%2F%20country%20it%20is.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Effectively%2C%20the%20list%20does%20not%20correpond%20to%20the%20parameter%20page%20as%20define%20and%20that%20is%20my%20problem.%20I%20set%20it%20up%20so%20that%20it%20corresponds%20to%20the%20parameter%20page%20and%20out%20of%20nowhere%20it%20doesn't%20work%20anymore.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E3.%20I%20do%20not%20get%20the%20Offset%20formula%2C%20could%20you%20developp%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot%20for%20your%20time%20and%20energy%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756545%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756545%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F376895%22%20target%3D%22_blank%22%3E%40auriane78%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOFFSET()%20is%20available%20on%20all%20versions%20of%20Excel%20starting%20from%202007%20(Windows)%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Foffset-function-c8de19ae-dd79-4b9b-a14e-b4d906d11b66%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Foffset-function-c8de19ae-dd79-4b9b-a14e-b4d906d11b66%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%2C%20since%20you%20have%20a%20lot%20of%20cells%20with%20data%20validation%2C%20from%20performance%20point%20of%20view%20better%20to%20use%20INDEX()%20for%20the%20dynamic%20list.%20For%20the%20first%20list%20enter%20the%20formula%3C%2FP%3E%0A%3CPRE%3E%3DParam%C3%A9trage!%24I%2460%3AINDEX(Param%C3%A9trage!%24I%2460%3A%24I%2490%2CCOUNTA(Param%C3%A9trage!%24I%2460%3A%24I%2490))%3C%2FPRE%3E%0A%3CP%3Ein%20Formulas-%26gt%3BName%20Manager%20and%20give%20it%20the%20name%2C%20e.g%20TacheList%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20548px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123374iB9C6BF5188C77FA2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAfter%20that%20you%20may%20use%20it%20in%20Data%20Validation%20list%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20391px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123375iE55C04D9B272B218%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ESame%20for%20other%20two%20lists%20(I%20didn't%20change%20it%2C%20just%20take%20above%20formula%2C%20adjust%20the%20ranges%20and%20add%20with%20new%20names).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756591%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756591%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F376895%22%20target%3D%22_blank%22%3E%40auriane78%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%3C%2FP%3E%3CP%3EI%20posted%20a%20reply%20around%2010%3A30%20but%20it%20does%20not%20seem%20to%20have%20come%20through.%3C%2FP%3E%3CP%3EBasically%2C%20what%20I%20had%20said%20was%20you%20would%20be%20better%20off%20using%20defined%20names%20to%20hold%20the%20DV%20lists.%3C%2FP%3E%3CP%3EI%20created%20three%20new%20ones%20in%20your%20file%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3ELookups%3C%2FTD%3E%3CTD%3E%3DParam%C3%A9trage!%24I%2459%3AINDEX(Param%C3%A9trage!%24K%3A%24K%2CMATCH(%22zzzz%22%2CParam%C3%A9trage!%24I%3A%24I))%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ESaisie_horaire%3C%2FTD%3E%3CTD%3E%3DParam%C3%A9trage!%24B%2460%3A%24B%2480%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ET%C3%A2ches%3C%2FTD%3E%3CTD%3E%3DParam%C3%A9trage!%24I%2460%3AINDEX(Param%C3%A9trage!%24I%3A%24I%2CMATCH(%22ZZZZ%22%2CParam%C3%A9trage!%24I%3A%24I))%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20applied%20these%20on%20your%20sheet%2001.19%20in%20rows%206%3A30%20in%20column%20C%20with%20DV%26nbsp%3B%20%3DT%C3%A2ches%3C%2FP%3E%3CP%3EI%20removed%20DV%20from%20columns%20D%20and%20E%20as%20their%20values%20are%20being%20returned%20by%20formulae%2C%20which%20I%20amended%20to%3C%2FP%3E%3CP%3E%3DIFERROR(VLOOKUP(C6%2CLookups%2C2%2CFALSE)%2C%22%22)%3C%2FP%3E%3CP%3E%3DIFERROR(VLOOKUP(C6%2CLookups%2C3%2CFALSE)%2C%22%22)%3C%2FP%3E%3CP%3Eand%20columns%20G%3AJ%20had%20the%20DV%20%3DSaisie_horaire%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20would%20need%20to%20copy%20these%20DV's%20to%20the%20other%20areas%20of%20you%20sheet%2C%20and%20to%20the%20other%20sheets%20in%20the%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20suggested%2C%20that%20I%20would%20take%20a%20different%20approach%20to%20entering%20the%20data%20and%20not%20have%20separate%20sheets%20for%20each%20month%20and%20several%20sections%20to%20be%20able%20to%20hold%20all%20the%20days%20of%20the%20Month.%3C%2FP%3E%3CP%3EI%20would%20prefer%20to%20have%20a%20single%20Table%20holding%20all%20of%20the%20data%20set%20out%20as%20I%20have%20shown%20on%20sheet%20Suggestion.%3C%2FP%3E%3CP%3ETee%20table%20would%20automatically%20have%20the%20DV%20and%20formulae%20applied%20as%20you%20create%20more%20rows.%3C%2FP%3E%3CP%3ETHis%20can%20then%20be%20filtered%20to%20show%20your%20totals%20for%20each%20month%20or%20any%20other%20selection%20or%20you%20could%20produce%20a%20Pivot%20Table%20to%20summarise%20all%20results.%20I%20have%20shown%20an%20example.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHolding%20all%20the%20data%20in%20a%20single%20table%20makes%20it%20much%20easier%20to%20produce%20any%20summaries%20that%20you%20want.%3C%2FP%3E%3CP%3EThe%20Summaries%20that%20you%20have%20in%20N117%3AS191%20could%20easily%20be%20produced%20on%20a%20separate%20sheet%2C%20with%20a%20simple%20selection%20cell%20for%20the%20month%2C%20which%20would%20alter%20the%20result%20according%20to%20month%20selected.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETake%20a%20look%20at%20the%20attached%20file%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756674%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756674%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%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot%2C%20I%20will%20try%20this.%3C%2FP%3E%3CP%3EBest%20Auriane%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756681%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756681%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F200080%22%20target%3D%22_blank%22%3E%40Roger%20Govier%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%20I%20will%20try%20to%20use%20the%20function%20'Offset'.%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20the%20rest%2C%20the%20problem%20is%20that%20my%20boss%20wants%20it%20in%20this%20format%2C%20I%20don't%20have%20a%20word%20to%20say%20bout%20it..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again%3C%2FP%3E%3CP%3EAuriane%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756698%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756698%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F376895%22%20target%3D%22_blank%22%3E%40auriane78%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat's%20the%20problem%20with%20bosses!!!%3C%2FP%3E%3CP%3ERather%20than%20use%20Offset%2C%20use%20Index%20(as%20Sergei%20agreed%2C%20this%20is%20not%20volatile)%3C%2FP%3E%3CP%3ECopy%20the%20formulae%20in%20my%20file%20for%20the%20names%20ranges%20to%20your%20file%20and%20all%20should%20work%20OK.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756705%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756705%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F200080%22%20target%3D%22_blank%22%3E%40Roger%20Govier%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhere%20exactly%20in%20my%20file%3F%20Can't%20find%20it%20%5E%5E'%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756725%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756725%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F376895%22%20target%3D%22_blank%22%3E%40auriane78%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20created%20three%20new%20ones%20in%20your%20file%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3ELookups%3C%2FTD%3E%3CTD%3E%3DParam%C3%A9trage!%24I%2459%3AINDEX(Param%C3%A9trage!%24K%3A%24K%2CMATCH(%22zzzz%22%2CParam%C3%A9trage!%24I%3A%24I))%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ESaisie_horaire%3C%2FTD%3E%3CTD%3E%3DParam%C3%A9trage!%24B%2460%3A%24B%2480%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ET%C3%A2ches%3C%2FTD%3E%3CTD%3E%3DParam%C3%A9trage!%24I%2460%3AINDEX(Param%C3%A9trage!%24I%3A%24I%2CMATCH(%22ZZZZ%22%2CParam%C3%A9trage!%24I%3A%24I))%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBasically%20the%20Match%20%22ZZZZ%22%20just%20finds%20the%20last%20cell%20in%20the%20column%20with%20any%20text%20it%20it%2C%20so%20it%20defines%20the%20row%20in%20the%20column%20to%20use%20for%20the%20end%20of%20the%20range.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFormulas%20tab%20%26gt%3B%20Name%20Manager%20%26gt%3B%20New%20%26gt%3BEnter%20name%20and%20then%20Paste%20he%20formula%20into%20the%20Refers_to%20box%20and%20click%20Close%3C%2FP%3E%3CP%3ERepeat%20for%20all%20three%20names.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20file%20I%20sent%2C%20already%20has%20that%20done%20and%20the%20validation%20has%20been%20altered%20on%20the%2001.19%20sheet%20in%20cells%20C6%3AJ30%20so%20you%20can%20test%20it%20there.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20get%20stuck%2C%20feel%20free%20to%20email%20me%20direct%20at%20roger%40technology4u.co.uk%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756780%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20validation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756780%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F200080%22%20target%3D%22_blank%22%3E%40Roger%20Govier%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot%20%3A)%20i%20think%20it%20should%20be%20ok.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%3C%2FP%3E%3CP%3EAuriane%3C%2FP%3E%3C%2FLINGO-BODY%3E
auriane78
Occasional Contributor

Hi all,

 

I have a big problem. I am making some Excel shets for my work, and I am using some data validation lists. The problem is that I set up some lists and two days later, I did nothing, but the lists are refering to different cells than the ones I set up.

 

Do you have any idea how to fix this?

 

Thanks a lot,

Auriane

12 Replies

@auriane78 

 

Hi

Can you upload a copy of your file so we can see what you have?

It is the D and E collumns of the 12 first tabs which refer to 'Parametrage'N61:N68 and 'Parametrage'M61:M:68' 

 

Thanks a lot !

@auriane78 

I'm not sure why do you need both VLOOKUP and data validation list in D and E, VLOOKUP is enough.

Anyway, in D your data validation list refers on the same table, not on Parameters. In addition, better to use dynamic list, as variant with OFFSET as

=OFFSET(Paramétrage!I$60:$I$90,0,0,COUNTA(Paramétrage!$I$60:$I$90))

in C6 on 03.19. I also adjusted lists in D6 and E6 in the same sheet.

@Sergei Baklan 

1. The Vlookup permits to find the correspondancy, and sometimes this correspondancy is multiple so the text that appears is 'to define' and there you use the list to define whih prescriptor/ country it is.

 

2. Effectively, the list does not correpond to the parameter page as define and that is my problem. I set it up so that it corresponds to the parameter page and out of nowhere it doesn't work anymore.

 

3. I do not get the Offset formula, could you developp?

 

Thanks a lot for your time and energy !

@auriane78 

OFFSET() is available on all versions of Excel starting from 2007 (Windows) https://support.office.com/en-us/article/offset-function-c8de19ae-dd79-4b9b-a14e-b4d906d11b66

 

However, since you have a lot of cells with data validation, from performance point of view better to use INDEX() for the dynamic list. For the first list enter the formula

=Paramétrage!$I$60:INDEX(Paramétrage!$I$60:$I$90,COUNTA(Paramétrage!$I$60:$I$90))

in Formulas->Name Manager and give it the name, e.g TacheList

image.png

After that you may use it in Data Validation list

image.png

Same for other two lists (I didn't change it, just take above formula, adjust the ranges and add with new names).

@auriane78 

 

Hi

I posted a reply around 10:30 but it does not seem to have come through.

Basically, what I had said was you would be better off using defined names to hold the DV lists.

I created three new ones in your file

Lookups=Paramétrage!$I$59:INDEX(Paramétrage!$K:$K,MATCH("zzzz",Paramétrage!$I:$I))
Saisie_horaire=Paramétrage!$B$60:$B$80
Tâches=Paramétrage!$I$60:INDEX(Paramétrage!$I:$I,MATCH("ZZZZ",Paramétrage!$I:$I))

 

I applied these on your sheet 01.19 in rows 6:30 in column C with DV  =Tâches

I removed DV from columns D and E as their values are being returned by formulae, which I amended to

=IFERROR(VLOOKUP(C6,Lookups,2,FALSE),"")

=IFERROR(VLOOKUP(C6,Lookups,3,FALSE),"")

and columns G:J had the DV =Saisie_horaire

 

You would need to copy these DV's to the other areas of you sheet, and to the other sheets in the file.

 

I also suggested, that I would take a different approach to entering the data and not have separate sheets for each month and several sections to be able to hold all the days of the Month.

I would prefer to have a single Table holding all of the data set out as I have shown on sheet Suggestion.

Tee table would automatically have the DV and formulae applied as you create more rows.

THis can then be filtered to show your totals for each month or any other selection or you could produce a Pivot Table to summarise all results. I have shown an example.

 

Holding all the data in a single table makes it much easier to produce any summaries that you want.

The Summaries that you have in N117:S191 could easily be produced on a separate sheet, with a simple selection cell for the month, which would alter the result according to month selected.

 

Take a look at the attached file

@Sergei Baklan 

 

Thanks a lot, I will try this.

Best Auriane

@Roger Govier 

Thank you, I will try to use the function 'Offset'. 

For the rest, the problem is that my boss wants it in this format, I don't have a word to say bout it..

 

Thanks again

Auriane

@auriane78 

 

That's the problem with bosses!!!

Rather than use Offset, use Index (as Sergei agreed, this is not volatile)

Copy the formulae in my file for the names ranges to your file and all should work OK.

@Roger Govier 

 

Where exactly in my file? Can't find it ^^'

@auriane78 

I created three new ones in your file

Lookups=Paramétrage!$I$59:INDEX(Paramétrage!$K:$K,MATCH("zzzz",Paramétrage!$I:$I))
Saisie_horaire=Paramétrage!$B$60:$B$80
Tâches=Paramétrage!$I$60:INDEX(Paramétrage!$I:$I,MATCH("ZZZZ",Paramétrage!$I:$I))

 

Basically the Match "ZZZZ" just finds the last cell in the column with any text it it, so it defines the row in the column to use for the end of the range.

 

Formulas tab > Name Manager > New >Enter name and then Paste he formula into the Refers_to box and click Close

Repeat for all three names.

 

The file I sent, already has that done and the validation has been altered on the 01.19 sheet in cells C6:J30 so you can test it there.

 

If you get stuck, feel free to email me direct at roger@technology4u.co.uk

@Roger Govier 

 

Thanks a lot :) i think it should be ok.

 

Best

Auriane

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
38 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
11 Replies