Multiplication and cut-off value

%3CLINGO-SUB%20id%3D%22lingo-sub-2275685%22%20slang%3D%22en-US%22%3EMultiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2275685%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20complete%20a%20table%20of%20suppliers%20on%20Excel%20Windows%2010.%3C%2FP%3E%3CP%3ESome%20suppliers%20have%20a%20cut-off%20cost%20of%20%E2%82%AC100.%3C%2FP%3E%3CP%3ESo%20is%20there%20a%20formula%20that%20would%20multiply%20a%20quantity%20of%2050%20by%20a%20rate%20of%20%E2%82%AC10%20but%20give%20a%20cut%20off%20value%20of%26nbsp%3B%20%E2%82%AC100%3F%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2275685%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2277146%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2277146%22%20slang%3D%22en-US%22%3ESince%20you%20are%20referring%20data%20set%20for%20specific%20customer's%20cut%20off%20then%20in%20that%20case%20other%20doesn't%20matters%2C%2C%20please%20check%20the%20attached%20sheet%20with%20my%20reply%20!!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2276801%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2276801%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CP%3EThere%20is%20no%20reason%20to%20limit%20the%20solution%20to%20the%20latest%20Office%20365%20features.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20following%20is%20a%20KISS%20implementation.%26nbsp%3B%20See%20the%20attached%20file.%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F146717%22%20target%3D%22_blank%22%3E%40Joe%20User%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20are%20interested%20in%20backward%20compatibility%20or%20simply%20leveraging%20the%20tools%20you%20have%20available%20then%20by%20all%20means%20revert%20to%20traditional%20spreadsheet%20techniques%2C%20though%20I%20beg%20to%20differ%20in%20describing%20them%20as%20'simple'%3B%26nbsp%3B%20concepts%20like%20relative%20referencing%20are%20not%20'simple'%2C%20merely%20'familiar'.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20me%2C%20the%20elimination%20of%20unnamed%20references%20and%20formulas%20that%20address%20single%20elements%20of%20an%20array%20(followed%20by%20massive%20replication)%20are%20themselves%20major%20objectives.%26nbsp%3B%20Traditional%20techniques%20are%20known%20(see%20Panko%2C%20EuSpRIG)%20to%20give%20error%20rates%20in%20the%20region%20of%2090%25%20for%20spreadsheet%20solutions%2C%20and%20anything%20capable%20of%20reducing%20this%20error%20rate%20needs%20to%20be%20considered.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20introduced%20the%20idea%20of%20a%20table%2C%20which%20you%20adopted%2C%20as%20a%20device%20for%20getting%20the%20limits%2C%20and%20the%20customers%20to%20whom%20they%20apply%2C%20visible%20on%20the%20worksheet%20rather%20than%20hidden%20within%20a%20formula.%26nbsp%3B%20The%20idea%20of%20unlisted%20companies%20being%20without%20limit%20is%20fine%20but%2C%20again%2C%20more%20simply%20implemented%20using%20MS365%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3D%20LET(%0A%20%20%20%20cost%2C%20quantity*rate%2C%0A%20%20%20%20cap%2C%20%20XLOOKUP(customer%2CcustomerList%2Climit%2C%22%E2%88%9E%22)%2C%0A%20%20IF(cost%3CCAP%3E%3C%2FCAP%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3ENote%3A%20The%20use%20of%20%22%E2%88%9E%22%20is%20mere%20affectation%2C%20any%20text%20or%20large%20number%20would%20work%20equally%20well.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2276734%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2276734%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F93699%22%20target%3D%22_blank%22%3E%40Rajesh-S%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERe%3A%20%60%60your%20formula%20is%20finding%20MINIMUM%20between%20multiple%20of%20B2%20%26amp%3B%20C2%20and%20the%20corresponding%20lookup%20value%20is%20Column%20G%60%60%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECorrect.%26nbsp%3B%20And%20that%20is%20my%20interpretation%20of%20what%20DJRM72%20wants.%26nbsp%3B%20He%20wrote%3A%26nbsp%3B%20%60%60is%20there%20a%20formula%20that%20would%20multiply%20a%20quantity%20of%2050%20by%20a%20rate%20of%20%E2%82%AC10%20but%20give%20a%20cut%20off%20value%20of%20%E2%82%AC100%3F%60%60%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOf%20course%2C%2050*10%20is%20500%2C%20not%20100.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20might%20also%20note%20that%20DJRM72%20did%20not%20push%20back%20against%20Peter's%20similar%20interpretation.%26nbsp%3B%20On%20the%20contrary%2C%20DJRM72%20said%20Peter's%20interpretation%20is%20%22perfect%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDJRM72%20also%20seemed%20to%20like%20Peter's%20idea%20of%20putting%20the%20customer%20limits%20into%20a%20table%2C%20instead%20of%20explicitly%20in%20each%20formula.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20only%20sought%20to%20offer%20an%20alternative%20that%2C%20at%20the%20very%20least%2C%20is%20compatible%20with%20all%20versions%20of%20Excel.%26nbsp%3B%20I%20also%20believe%20it%20is%20the%20simpler%20implementation%20for%20all%20versions%20of%20Excel.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-----%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERe%3A%20%60%60but%20since%20you%20have%20a%20table%20matching%20customers%20in%20column%20A%20then%20the%20used%20formula%20is%20irrelevant%20!!%20This%20produces%20the%20same%20%3DIFERROR(VLOOKUP(A2%2C%20%24F%242%3A%24G%246%2C%202%2C%20FALSE)%2CB2*C2)%60%60%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%2C%20it%20does%20not.%26nbsp%3B%20See%20my%20example%20with%20customer%20F.%26nbsp%3B%20B7*C7%20is%20200.%26nbsp%3B%20Since%20that%20is%20less%20than%20the%20(hypothetical)%20limit%20of%20220%20for%20customer%20F%20(G4)%2C%20my%20formula%20returns%20200.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2276719%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2276719%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F146717%22%20target%3D%22_blank%22%3E%40Joe%20User%3C%2FA%3E%26nbsp%3B%26amp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1028088%22%20target%3D%22_blank%22%3E%40DJRM72%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20fact%20your%20formula%20is%20finding%20MINIMUM%20between%20multiple%20of%20B2%20%26amp%3B%20C2%20and%20the%20corresponding%20lookup%20value%20is%20Column%20G%2C%2C%20and%20in%20case%20of%20B%20returns%20120%2C%2C%2C%20but%20since%20you%20have%20a%20table%20matching%20customers%20in%20column%20A%20then%20the%20used%20formula%20is%20irrelevant%20!!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%26nbsp%3Bproduces%20the%20same%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DIFERROR(VLOOKUP(A2%2C%20%24F%242%3A%24G%246%2C%202%2C%20FALSE)%2CB2*C2)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%20even%20you%20may%20use%2C%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DIFERROR(VLOOKUP(A2%2C%20%24F%242%3A%24G%246%2C%202%2C%20FALSE)%2C%22%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%20you%20may%20use%20this%20is%20the%20best%20one%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DIFERROR(VLOOKUP(%24A2%2C%24F2%3A%24F6%2C1%2CFALSE)%2CIFERROR(VLOOKUP(%24A2%2C%20%24F%242%3A%24G%246%2C%202%2C%20FALSE)%2C%24B2*%24C2))%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3E%3CEM%3ENeed%20to%20adjust%20cell%20references%20in%20the%20formula%20as%20needed.%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3ECheck%20the%20attached%26nbsp%3BWB.%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3E%3CEM%3EThe%20method%20shown%20in%20the%20attached%20WB%2C%20works%20with%20all%20versions%20of%20Excel.%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2276709%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2276709%22%20slang%3D%22en-US%22%3EIs%20this%20%22multiply%20a%20quantity%20of%2050%20by%20a%20rate%20of%20%E2%82%AC10%20but%20give%20a%20cut%20off%20value%20of%20%E2%82%AC100%3F%22%20a%20general%20rule%20or%20as%20you%20have%20written%20that%2C%20%22Customer%20D%20has%20agreement%20that%20maximum%20charge%20is%20%E2%82%AC100%22%2C%2C%2C%20so%20do%20you%20have%20any%20such%20list%3F%20Please%20be%20specific%20all%20about%20CUT%20OFF%20method%2Fmechanism%20%2C%2C%20also%20edit%20your%20post%20%26amp%3B%20add%20complete%20information%20!!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2276599%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2276599%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1028088%22%20target%3D%22_blank%22%3E%40DJRM72%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20no%20reason%20to%20limit%20the%20solution%20to%20the%20latest%20Office%20365%20features.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20following%20is%20a%20KISS%20implementation.%26nbsp%3B%20See%20the%20attached%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20748px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F273473i91827FC0192742FD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20customer%20D%2C%20the%20formula%20in%20D5%20is%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DMIN(B5*C5%2C%20IFERROR(VLOOKUP(A5%2C%20%24F%242%3A%24G%246%2C%202%2C%20FALSE)%2C%201E%2B300))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20the%20customer%20name%20in%20column%20A%20is%20found%20in%20column%20F%2C%20VLOOKUP%20returns%20the%20corresponding%20value%20in%20column%20G.%26nbsp%3B%20For%20customer%20D%2C%20the%20formula%20is%20effectively%20MIN(B5*C5%2C%20G3).%26nbsp%3B%20If%20B5*C5%20exceeds%20G3%2C%20MIN%20returns%20G3%3B%20otherwise%2C%20MIN%20returns%20B5*C5.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20the%20customer%20name%20in%20column%20A%20is%20not%20in%20column%20F%2C%20the%20formula%20is%20effectively%20MIN(B2*C2%2C%201E%2B300)%20for%20customer%20A%2C%20for%20example.%26nbsp%3B%20Since%201E%2B300%20is%20larger%20than%20any%20reasonable%20calculated%20amount%2C%20MIN%20always%20returns%20the%20product%20B2*C2.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%3A%201E%2B300%20can%20be%20any%20%22very%20large%22%20value%20that%20is%20easy%20to%20remember.%26nbsp%3B%20For%20example%2C%201E%2B100%20might%20be%20easier.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2276298%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2276298%22%20slang%3D%22en-US%22%3EThank%20you!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2276297%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2276297%22%20slang%3D%22en-US%22%3EPerfect!%20Thank%20you%20very%20much.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2275772%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2275772%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1028088%22%20target%3D%22_blank%22%3E%40DJRM72%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20721px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F273293i01DB1A756691AF2C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2275765%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2275765%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1028088%22%20target%3D%22_blank%22%3E%40DJRM72%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EI%20still%20haven't%20quite%20got%20it%20...%20but%20who%20am%20I%3F%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EHere%20is%20an%20attempt%20in%20the%20inserted%20file.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20understanding%20and%20patience%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2275757%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2275757%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%3BThank%20you%2C%20that%20seems%20to%20work.%20Is%20it%20possible%20to%20limit%20the%20cut-off%20to%20particular%20rows%20-%20Supplier%20D%20in%20the%20attached%20example%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2275735%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2275735%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3BThanks%20for%20responding.%20I%20have%20attached%20an%20example.%20The%20operating%20system%20is%20Windows%2010%2C%20I%20am%20unable%20to%20access%20the%20Excel%20version.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2275723%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2275723%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1028088%22%20target%3D%22_blank%22%3E%40DJRM72%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESince%20there%20is%20nothing%20specific%20to%20work%20on%2C%20a%20general%20idea%20might%20be%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3D%20LET(%0A%26nbsp%3B%20cost%2C%20quantity*rate%2C%0A%20%20if(cost%3CTHRESHOLD%3E%3C%2FTHRESHOLD%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EIf%20you%20are%20not%20using%20Excel%20365%20just%20calculate%20the%20cost%20twice%20within%20the%20final%20formula.%26nbsp%3B%20If%20the%20cost%20and%20quantity%20are%20scalars%20rather%20than%20arrays%2C%20you%20could%20use%20MAX%2FMIN%20depending%20on%20whether%20the%20cut-off%20is%20an%20upper%20or%20lower%20limit.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2275715%22%20slang%3D%22en-US%22%3ERe%3A%20Multiplication%20and%20cut-off%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2275715%22%20slang%3D%22en-US%22%3EWith%20your%20permission%2C%20if%20I%20can%20recommend.%20It%20can%20help%20us%20all%20if%20you%20upload%20an%20Excel%20file%20(without%20sensitive%20data)%2C%20no%20picture.%20Even%20if%20it%20is%20said%20that%20a%20picture%20can%20say%20a%20thousand%20words%2C%20it%20is%20certainly%20not%20in%20the%20case%20of%20Excel%2C%20on%20the%20contrary%20in%20some%20cases.%20This%20would%20also%20be%20a%20blessing%20for%20all%20of%20us%2C%20as%20we%20can%20understand%20the%20problem%20much%20better%2C%20a%20win-win%20situation%20for%20everyone.%3CBR%20%2F%3E*%20Knowing%20the%20Excel%20version%20and%20operating%20system%20would%20also%20be%20an%20advantage.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20your%20understanding%20and%20patience%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3ENikolino%3CBR%20%2F%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi all,

I am trying to complete a table of suppliers on Excel Windows 10.

Some suppliers have a cut-off cost of €100.

So is there a formula that would multiply a quantity of 50 by a rate of €10 but give a cut off value of  €100?

Thank you.

14 Replies
With your permission, if I can recommend. It can help us all if you upload an Excel file (without sensitive data), no picture. Even if it is said that a picture can say a thousand words, it is certainly not in the case of Excel, on the contrary in some cases. This would also be a blessing for all of us, as we can understand the problem much better, a win-win situation for everyone.
* Knowing the Excel version and operating system would also be an advantage.


Thank you for your understanding and patience


Nikolino
I know I don't know anything (Socrates)

@DJRM72 

Since there is nothing specific to work on, a general idea might be

= LET(
  cost, quantity*rate,
  if(cost<threshold,cost,threshold) 

If you are not using Excel 365 just calculate the cost twice within the final formula.  If the cost and quantity are scalars rather than arrays, you could use MAX/MIN depending on whether the cut-off is an upper or lower limit.

@NikolinoDE Thanks for responding. I have attached an example. The operating system is Windows 10, I am unable to access the Excel version.

@Peter Bartholomew Thank you, that seems to work. Is it possible to limit the cut-off to particular rows - Supplier D in the attached example?

@DJRM72 

 

I still haven't quite got it ... but who am I? Here is an attempt in the inserted file.

 

 

Thank you for your understanding and patience

 

 

Nikolino

I know I don't know anything (Socrates)

Perfect! Thank you very much.
Thank you!

@DJRM72 

There is no reason to limit the solution to the latest Office 365 features.

 

The following is a KISS implementation.  See the attached file.

 

image.png

 

For customer D, the formula in D5 is:

 

=MIN(B5*C5, IFERROR(VLOOKUP(A5, $F$2:$G$6, 2, FALSE), 1E+300))

 

If the customer name in column A is found in column F, VLOOKUP returns the corresponding value in column G.  For customer D, the formula is effectively MIN(B5*C5, G3).  If B5*C5 exceeds G3, MIN returns G3; otherwise, MIN returns B5*C5.

 

If the customer name in column A is not in column F, the formula is effectively MIN(B2*C2, 1E+300) for customer A, for example.  Since 1E+300 is larger than any reasonable calculated amount, MIN always returns the product B2*C2.

 

Note: 1E+300 can be any "very large" value that is easy to remember.  For example, 1E+100 might be easier.

Is this "multiply a quantity of 50 by a rate of €10 but give a cut off value of €100?" a general rule or as you have written that, "Customer D has agreement that maximum charge is €100",,, so do you have any such list? Please be specific all about CUT OFF method/mechanism ,, also edit your post & add complete information !!

@Joe User & @DJRM72 

 

In fact your formula is finding MINIMUM between multiple of B2 & C2 and the corresponding lookup value is Column G,, and in case of B returns 120,,, but since you have a table matching customers in column A then the used formula is irrelevant !!

 

This produces the same

 

 

=IFERROR(VLOOKUP(A2, $F$2:$G$6, 2, FALSE),B2*C2)

 

 

 

Or even you may use,,

 

 

=IFERROR(VLOOKUP(A2, $F$2:$G$6, 2, FALSE),"")

 

 

Or you may use this is the best one:

 

 

=IFERROR(VLOOKUP($A2,$F2:$F6,1,FALSE),IFERROR(VLOOKUP($A2, $F$2:$G$6, 2, FALSE),$B2*$C2))

 

 

 

  • Need to adjust cell references in the formula as needed.
  • Check the attached WB.
  • The method shown in the attached WB, works with all versions of Excel.

@Rajesh-S 

Re: ``your formula is finding MINIMUM between multiple of B2 & C2 and the corresponding lookup value is Column G``

 

Correct.  And that is my interpretation of what DJRM72 wants.  He wrote:  ``is there a formula that would multiply a quantity of 50 by a rate of €10 but give a cut off value of €100?``

 

Of course, 50*10 is 500, not 100.

 

I might also note that DJRM72 did not push back against Peter's similar interpretation.  On the contrary, DJRM72 said Peter's interpretation is "perfect".

 

DJRM72 also seemed to like Peter's idea of putting the customer limits into a table, instead of explicitly in each formula.

 

I only sought to offer an alternative that, at the very least, is compatible with all versions of Excel.  I also believe it is the simpler implementation for all versions of Excel.

 

-----

 

Re: ``but since you have a table matching customers in column A then the used formula is irrelevant !! This produces the same =IFERROR(VLOOKUP(A2, $F$2:$G$6, 2, FALSE),B2*C2)``

 

No, it does not.  See my example with customer F.  B7*C7 is 200.  Since that is less than the (hypothetical) limit of 220 for customer F (G4), my formula returns 200.

 


There is no reason to limit the solution to the latest Office 365 features.

 

The following is a KISS implementation.  See the attached file.


@Joe User 

If you are interested in backward compatibility or simply leveraging the tools you have available then by all means revert to traditional spreadsheet techniques, though I beg to differ in describing them as 'simple';  concepts like relative referencing are not 'simple', merely 'familiar'.

 

For me, the elimination of unnamed references and formulas that address single elements of an array (followed by massive replication) are themselves major objectives.  Traditional techniques are known (see Panko, EuSpRIG) to give error rates in the region of 90% for spreadsheet solutions, and anything capable of reducing this error rate needs to be considered.

 

I introduced the idea of a table, which you adopted, as a device for getting the limits, and the customers to whom they apply, visible on the worksheet rather than hidden within a formula.  The idea of unlisted companies being without limit is fine but, again, more simply implemented using MS365

= LET(
    cost, quantity*rate,
    cap,  XLOOKUP(customer,customerList,limit,"∞"),
  IF(cost<cap, cost, cap) )

Note: The use of "∞" is mere affectation, any text or large number would work equally well.

Since you are referring data set for specific customer's cut off then in that case other doesn't matters,, please check the attached sheet with my reply !!