Home

#REF! Informular when Cut/Paste the reference cells

%3CLINGO-SUB%20id%3D%22lingo-sub-391197%22%20slang%3D%22en-US%22%3E%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391197%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20make%20a%20score%20template.%20The%20score%20will%20be%20calculated%20from%20the%20x%20in%20the%20scale%20column%20that%20someone%20else%20will%20fill%20in%20later.%20(Right-most%20column%20is%20the%20calculated%20score.)%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F100637iF3E42E6256174DE7%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22F6EE675E-0708-4BF5-885D-56DD0B67DA80.jpeg%22%20title%3D%22F6EE675E-0708-4BF5-885D-56DD0B67DA80.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20issue%20is%20there%20will%20be%20users%20who%20will%20cut%2Fpaste%20the%20x%20to%20other%20column%20if%20they%20change%20their%20mind.%3C%2FP%3E%3CP%3EWhen%20the%20happen%20the%20cell%20that%20was%20cut%20in%20will%20become%20%23REF!%20in%20the%20formula.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20formula%20I%20am%20using%20is%20as%20follow%3A%3C%2FP%3E%3CP%3E%3DIFS(E15%26lt%3B%26gt%3B%22%22%2C0%2CF15%26lt%3B%26gt%3B%22%22%2C0.2*D15%2CG15%26lt%3B%26gt%3B%22%22%2C0.5*D15%2CH15%26lt%3B%26gt%3B%22%22%2C0.8*D15%2CI15%26lt%3B%26gt%3B%22%22%2CD15%2CTRUE%2C%22%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20will%20become%20like%20this%20if%20I%20cut%20x%20from%20E15%20and%20paste%20to%20other%20column%3C%2FP%3E%3CP%3E%3DIFS(%23REF!%26lt%3B%26gt%3B%22%22%2C0%2CF15%26lt%3B%26gt%3B%22%22%2C0.2*D15%2CG15%26lt%3B%26gt%3B%22%22%2C0.5*D15%2CH15%26lt%3B%26gt%3B%22%22%2C0.8*D15%2CI15%26lt%3B%26gt%3B%22%22%2CD15%2CTRUE%2C%22%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20%24E15%20and%20it%20didn%E2%80%99t%20work.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20INDIRECT(%E2%80%9CE15%E2%80%9D)%20and%20it%20works%20but%20when%20I%20coppy%20to%20the%20next%20row%20it%20didn%E2%80%99t%20auto%20change%20E15%20to%20E16%20for%20me%20and%20my%20template%20has%20multiple%20shhet%20of%204%2C000%2B%20rows.%20So%20I%20cannot%20manually%20change%20all%20of%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20anyway%20to%20make%20the%20formula%20tolerant%20to%20cut%2Fpaste%20or%20is%20there%20any%20other%20formula%20more%20suitable%20for%20this%20kind%20of%20suitation%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-391197%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-391294%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391294%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%3EThe%20MMULT%20version%20works%20just%20as%20well%20left%20as%20a%20dynamic%20(spilt)%20array.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMeanwhile%20I%20need%20to%20check%20out%20the%20use%20of%20implicit%20intersection%20with%20a%20function.%3C%2FP%3E%3CP%3EI%20have%20used%20it%20with%201D%20named%20ranges%20(%40fullScore)%20and%20with%20single%20named%20cells%20containing%20a%20formula%20that%20spills%20to%20create%20a%201D%20spilt%20array%20(%40score%23)%20but%20hadn't%20thought%20of%20operating%20on%20the%20output%20from%20a%20function.%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20really%20want%20is%20to%20restrict%20the%20aggregations%20such%20as%20%3CSPAN%3EMAX%20%3C%2FSPAN%3Eto%20act%20only%20over%20one%20dimension%20of%20the%20array%2C%20here%20the%203%20rows%20of%20the%20array%2C%20aggregating%20over%20columns%20to%20give%20the%203%20row%20results%20as%20an%20array.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391287%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391287%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F310860%22%20target%3D%22_blank%22%3E%40Parwitch%3C%2FA%3E%26nbsp%3B%2C%20found%20this%20post%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.excelforum.com%2Fexcel-formulas-and-functions%2F1043140-explain-lookup-2-1-a2-a10-d2-b2-b10.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.excelforum.com%2Fexcel-formulas-and-functions%2F1043140-explain-lookup-2-1-a2-a10-d2-b2-b10.html%3C%2FA%3E%2C%20it%20explains%20in%20more%20details%20how%20LOOKUP(2%2C%201%2F..%20works%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391286%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391286%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F310860%22%20target%3D%22_blank%22%3E%40Parwitch%3C%2FA%3E%26nbsp%3B%2C%20as%20for%20lookup%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1%2F...%20returns%20error%20(division%20on%20zero)%20for%20blank%20cells%20and%201%20for%20non%20blank%20one.%3C%2FP%3E%0A%3CP%3ELOOKUP%20ignores%20all%20errors%20and%20finds%20in%20first%20part%20most%20close%20value%20to%20lookup%20one%20from%20down%20side%3B%20after%20that%20returns%20the%20value%20from%20second%20array%20from%20same%20position.%3C%2FP%3E%0A%3CP%3ELookup%20value%202%20here%20is%20to%20avoid%20errors%20in%20some%20situations%2C%20in%20general%20any%20value%20which%20is%20greater%20than%201%20works.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391284%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391284%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F310860%22%20target%3D%22_blank%22%3E%40Parwitch%3C%2FA%3E%26nbsp%3B%2C%20you%20are%20right%2C%20that's%20the%20same%20effect%20with%20left%2Fright%20most%20cells%20if%20move%20them%20horizontally.%20When%3C%2FP%3E%0A%3CPRE%3E%3DIFNA(LOOKUP(2%2C1%2FNOT(ISBLANK(OFFSET(%24D15%2C0%2C1%2C%2C5)))%2C%7B0%2C0.2%2C0.5%2C0.8%2C1%7D)*%24D15%2C%22%22)%3C%2FPRE%3E%0A%3CP%3Efixes%20that.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391277%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391277%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%3BThank%20you%20for%20your%20support.%20I%20am%20still%20trying%20to%20understand%20the%20lookup(%3CSTRONG%3E2%2C1%2F%3C%2FSTRONG%3E...%20part.%3C%2FP%3E%3CP%3EBut%20to%20update%20you%20the%20result%2C%20I%20tested%20your%20formula.%20It%20works%20really%20well%20as%20long%20as%20I%20do%20not%20cut%2Fpaste%20the%20left-most%20or%20right-most%20cell.%20If%20I%20do%2C%20the%20%22%3CSTRONG%3EISBLANK(E15%3AI15)%22%3C%2FSTRONG%3E%20part%20will%20be%20automatically%20changed%20to%20(%3CSTRONG%3EF15%3C%2FSTRONG%3E%3AI15)%20or%26nbsp%3B(E15%3A%3CSTRONG%3EH15%3C%2FSTRONG%3E)%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20workaround%20by%20inserting%20a%20hidden%20column%20before%20and%20after%20the%20scale%20column%20to%20use%20a%20a%20reference%20point%20but%20I%20don't%20think%20that%20is%20the%20right%20thing%20to%20do.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391276%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391276%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214174%22%20target%3D%22_blank%22%3E%40Peter%20Bartholomew%3C%2FA%3E%26nbsp%3B%2C%20yes%2C%20but%20that%20forwards%20to%20CSE%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391274%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391274%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%3EYou%20are%20correct%20of%20course.%26nbsp%3B%20What%20I%20mean%20is%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20299px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F100649i7C9066C642981D2C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.JPG%22%20title%3D%22Capture.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ebut%20most%20users%20are%20more%20familiar%20with%20the%20hybrid%20A1%20notation%20that%20looks%20like%20an%20absolute%20reference%20but%20behaves%20as%20a%20relative%20reference.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20my%20own%20use%2C%20I%20could%20well%20go%20with%3C%2FP%3E%3CP%3E%3D%20fullScore%20*%20MMULT(%20N(performance%3D%22X%22)%2C%20percentage%20)%3C%2FP%3E%3CP%3Ewhich%20would%20allow%20me%20to%20use%202D%20ranges%20(MMULT%20being%20just%20about%20the%20only%20formula%20I%20know%20that%20will%20process%20a%202D%20array%20by%20row%20or%20by%20column).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391273%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391273%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214174%22%20target%3D%22_blank%22%3E%40Peter%20Bartholomew%3C%2FA%3E%26nbsp%3B%2C%20do%20you%20mean%3C%2FP%3E%0A%3CPRE%3E%3D%40MAX((E15%3AI17%3D%22X%22)*percentage*D15%3AD17)%3C%2FPRE%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-391262%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391262%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214174%22%20target%3D%22_blank%22%3E%40Peter%20Bartholomew%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20believed%20you%20add%20named%20range%20variant...%20As%20a%20comment%2C%20your%20legend%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20338px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F100647iC551686721D668BC%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%3Ecould%20confuse%20people%20who%20are%20not%20familiar%20with%20named%20ranges.%20If%20to%20do%20that%20from%20scratch%20for%20another%20workbook%2C%20stay%20on%20row%2029%2C%20copy%20formula%20and%20add%20it%20as%20%22performance%22%20due%20to%20implicit%20intersection%2C%20you%20have%20wrong%20result%2C%20you%20are%20to%20be%20on%20row%2022.%26nbsp%3B%20That's%20just%20cosmetic.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391257%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391257%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%3EThank%20you%20for%20the%20link%20to%20the%20documentation%20page.%3C%2FP%3E%3CP%3EI%20have%20come%20to%20detest%20the%20normal%20Excel%20practice%20of%20direct%20references%20to%20single%20cells%20and%20to%20find%20encouragement%20from%20an%20authoritative%20statement%2C%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%3E%22this%20is%20the%20primary%20reason%20why%20using%20explicit%20cell%20references%20in%20functions%20is%20not%20recommended%3C%2FSPAN%3E%22%2C%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Ewhich%20provides%20some%20further%20support%20for%20the%20concept%20that%20the%20unit%20of%20reference%20for%20formulas%20should%20be%20the%20array%20and%20not%20the%20cell%20(unless%20the%20content%20of%20the%20cell%20is%20truly%20unique).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20a%20wider%20context%2C%20I%20am%20looking%20for%20support%26nbsp%3B%20for%20an%20operator%20or%20a%20function%20that%20would%20take%20a%202D%20array%2C%20such%20as%20the%20assessment%20of%20performance%20in%20this%20post%2C%20and%20treat%20it%20as%20a%20collection%20of%20rows%20for%20the%20purposes%20of%20the%20next%20aggregation.%26nbsp%3B%20In%20this%20case%2C%20it%20would%20allow%20one%20formula%20to%20spill%20down%20to%20apply%20scores%20to%20every%20row%20(student%20or%20subject%3F)%20rather%20than%20requiring%20the%20use%20of%20row-relative%20referencing.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391255%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391255%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F310860%22%20target%3D%22_blank%22%3E%40Parwitch%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20attached%20is%20built%20from%20relative%20named%20ranges%20and%20a%20named%20formula.%26nbsp%3B%20The%20purpose%20of%20the%20named%20formula%20is%20simply%20to%20avoid%20the%20need%20for%20Ctrl%2BShift%2BEnter%20that%20is%20required%20by%20almost%20all%20versions%20of%20Excel%20to%20commit%20an%20array%20formula.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3D%20MAX(%20(%20performance%3D%22X%22)%20*%20percentage%20*%20fullScore%20)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391244%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391244%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F310860%22%20target%3D%22_blank%22%3E%40Parwitch%3C%2FA%3E%26nbsp%3B%2C%20in%20addition%2C%20the%20cause%20of%20error%20is%20explained%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fhow-to-correct-a-ref-error-822c8e46-e610-4d02-bf29-ec4b8c5ff4be%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fhow-to-correct-a-ref-error-822c8e46-e610-4d02-bf29-ec4b8c5ff4be%3C%2FA%3E.%20That's%20the%20specific%20of%20IFS%2C%20any%20formula%20where%20you%20use%20individual%20cell%20reference.%20If%20you%20move%20or%20delete%20cell%20(not%20cell%20value)%20you%20receive%20such%20error.%20You%20may%20try%20on%20%3DA1%2BB1%20in%20C1%20and%20drag%20it%20down%2C%20then%20cut%20and%20paste%20B1.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsing%20of%20any%20formula%20with%20range%20helps%2C%20that%20could%20be%20OFFSET%20as%20well.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391242%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20Informular%20when%20Cut%2FPaste%20the%20reference%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391242%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F310860%22%20target%3D%22_blank%22%3E%40Parwitch%3C%2FA%3E%26nbsp%3B%2C%20you%20may%20use%3C%2FP%3E%0A%3CPRE%3E%3DIFNA(LOOKUP(2%2C1%2FNOT(ISBLANK(E15%3AI15))%2C%7B0%2C0.2%2C0.5%2C0.8%2C1%7D)*D15%2C%22%22)%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Parwitch
New Contributor

I am trying to make a score template. The score will be calculated from the x in the scale column that someone else will fill in later. (Right-most column is the calculated score.)F6EE675E-0708-4BF5-885D-56DD0B67DA80.jpeg

The issue is there will be users who will cut/paste the x to other column if they change their mind.

When the happen the cell that was cut in will become #REF! in the formula.

 

The formula I am using is as follow:

=IFS(E15<>"",0,F15<>"",0.2*D15,G15<>"",0.5*D15,H15<>"",0.8*D15,I15<>"",D15,TRUE,"")

 

It will become like this if I cut x from E15 and paste to other column

=IFS(#REF!<>"",0,F15<>"",0.2*D15,G15<>"",0.5*D15,H15<>"",0.8*D15,I15<>"",D15,TRUE,"")

 

I tried $E15 and it didn’t work. 

I tried INDIRECT(“E15”) and it works but when I coppy to the next row it didn’t auto change E15 to E16 for me and my template has multiple shhet of 4,000+ rows. So I cannot manually change all of them.

 

Is there anyway to make the formula tolerant to cut/paste or is there any other formula more suitable for this kind of suitation?

 

 

13 Replies
Highlighted

@Parwitch , you may use

=IFNA(LOOKUP(2,1/NOT(ISBLANK(E15:I15)),{0,0.2,0.5,0.8,1})*D15,"")

 

@Parwitch , in addition, the cause of error is explained here https://support.office.com/en-us/article/how-to-correct-a-ref-error-822c8e46-e610-4d02-bf29-ec4b8c5f.... That's the specific of IFS, any formula where you use individual cell reference. If you move or delete cell (not cell value) you receive such error. You may try on =A1+B1 in C1 and drag it down, then cut and paste B1.

 

Using of any formula with range helps, that could be OFFSET as well.

@Parwitch 

The attached is built from relative named ranges and a named formula.  The purpose of the named formula is simply to avoid the need for Ctrl+Shift+Enter that is required by almost all versions of Excel to commit an array formula.

 

= MAX( ( performance="X") * percentage * fullScore )

@Sergei Baklan 

Thank you for the link to the documentation page.

I have come to detest the normal Excel practice of direct references to single cells and to find encouragement from an authoritative statement,

"this is the primary reason why using explicit cell references in functions is not recommended",

which provides some further support for the concept that the unit of reference for formulas should be the array and not the cell (unless the content of the cell is truly unique).

 

In a wider context, I am looking for support  for an operator or a function that would take a 2D array, such as the assessment of performance in this post, and treat it as a collection of rows for the purposes of the next aggregation.  In this case, it would allow one formula to spill down to apply scores to every row (student or subject?) rather than requiring the use of row-relative referencing.

Hi @Peter Bartholomew ,

 

I believed you add named range variant... As a comment, your legend

image.png

could confuse people who are not familiar with named ranges. If to do that from scratch for another workbook, stay on row 29, copy formula and add it as "performance" due to implicit intersection, you have wrong result, you are to be on row 22.  That's just cosmetic.

@Peter Bartholomew , do you mean

=@MAX((E15:I17="X")*percentage*D15:D17)

 

 

@Sergei Baklan 

You are correct of course.  What I mean is

Capture.JPG

but most users are more familiar with the hybrid A1 notation that looks like an absolute reference but behaves as a relative reference.

 

For my own use, I could well go with

= fullScore * MMULT( N(performance="X"), percentage )

which would allow me to use 2D ranges (MMULT being just about the only formula I know that will process a 2D array by row or by column).

@Peter Bartholomew , yes, but that forwards to CSE

@Sergei Baklan Thank you for your support. I am still trying to understand the lookup(2,1/... part.

But to update you the result, I tested your formula. It works really well as long as I do not cut/paste the left-most or right-most cell. If I do, the "ISBLANK(E15:I15)" part will be automatically changed to (F15:I15) or (E15:H15)  

 

I can workaround by inserting a hidden column before and after the scale column to use a a reference point but I don't think that is the right thing to do.

@Parwitch , you are right, that's the same effect with left/right most cells if move them horizontally. When

=IFNA(LOOKUP(2,1/NOT(ISBLANK(OFFSET($D15,0,1,,5))),{0,0.2,0.5,0.8,1})*$D15,"")

fixes that.

 

@Parwitch , as for lookup

 

1/... returns error (division on zero) for blank cells and 1 for non blank one.

LOOKUP ignores all errors and finds in first part most close value to lookup one from down side; after that returns the value from second array from same position.

Lookup value 2 here is to avoid errors in some situations, in general any value which is greater than 1 works.

@Sergei Baklan 

The MMULT version works just as well left as a dynamic (spilt) array.

 

Meanwhile I need to check out the use of implicit intersection with a function.

I have used it with 1D named ranges (@fullScore) and with single named cells containing a formula that spills to create a 1D spilt array (@score#) but hadn't thought of operating on the output from a function.  

 

What I really want is to restrict the aggregations such as MAX to act only over one dimension of the array, here the 3 rows of the array, aggregating over columns to give the 3 row results as an array.

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
12 Replies