SOLVED
Home

Excel formula help

%3CLINGO-SUB%20id%3D%22lingo-sub-674750%22%20slang%3D%22en-US%22%3EExcel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-674750%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everybody!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlthough%20i%20have%20been%20using%20Excel%20every%20day%2C%20the%20time%20has%20come%20today%20to%20realise%20i%20know%20nothing%20about%20formulas%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3EI'm%20struggling%20to%20make%20the%20attached%20calculator%20works%20as%20follows%3A%3C%2FP%3E%3CP%3E-%20i%20need%20the%20%22sea%20freight%22%20to%20get%20the%20value%20either%20from%20%22weight%22%20or%20%22cubic%22%2C%20whichever%20is%20greater%2C%20but%20i%20need%20the%20cubics%20to%20be%20multiplied%20by%201000%20in%20advance.%20Then%2C%20in%20order%20to%20calculate%20the%20cost%2C%20it%20should%20multiply%20it%20by%200.01%26nbsp%3B%3C%2FP%3E%3CP%3E-%20if%20the%20weight%20is%201000%20kg%20or%20under%20and%20the%20cubic%20is%201%20or%20under%2C%20the%20minimum%20of%20%2410%20to%20apply%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20spent%20hours%20reading%20and%20searching%20but%20couldn't%20find%20a%20way%20to%20do%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20your%20time%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMilena%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-674750%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-674783%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-674783%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F355812%22%20target%3D%22_blank%22%3E%40_Milena_%3C%2FA%3E%26nbsp%3B%2C%20perhaps%3C%2FP%3E%0A%3CPRE%3E%3DMAX(10%2CMAX(B19%2CB20*1000)*0.01)%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-674806%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-674806%22%20slang%3D%22en-US%22%3EYour%20desired%20result%20seems%20to%20be%20the%20MAXimum%20of%20the%203%20values%20representing%20each%20argument%20of%20this%20formula%3A%3CBR%20%2F%3E%3DMAX(10%2CB19*.01%2CB20*10)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-674814%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-674814%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%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20so%20much%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-674961%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-674961%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F355812%22%20target%3D%22_blank%22%3E%40_Milena_%3C%2FA%3E%26nbsp%3B%2C%20you%20are%20welcome%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-851075%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-851075%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESomething%20went%20wrong%20with%20my%20calculator%20%3CLI-EMOJI%20id%3D%22lia_disappointed-face%22%20title%3D%22%3Adisappointed_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3EI%20have%20been%20using%26nbsp%3B%3DMAX(8%2F13%2CMAX(B25%2CB26*1000)*0.023)%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20i%20have%20just%20noticed%20that%20even%20when%20B25%20and%20B26%20are%20blank%2C%20there%20is%20still%20a%20value%20in%20B29%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20help%20me%20please%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-851092%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-851092%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F355812%22%20target%3D%22_blank%22%3E%40_Milena_%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20returns%208%2F13%20in%20such%20case.%20If%20you'd%20like%20to%20have%20zero%20if%20both%20B25%20and%20B26%20are%20empty%2C%20when%20like%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DMAX(8%2F13%2CMAX(B25%2CB26*1000)*0.023)*(B25%26lt%3B%26gt%3B0)*(B26%26lt%3B%26gt%3B0)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-851100%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-851100%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%3EOh%2C%20that%20all%20makes%20sence%20now%2C%20thank%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20made%20a%20few%20more%20tabs%20and%20just%20copied%20and%20pasted%20the%20formula%2C%20only%20changing%20the%20%228%2F13%22%20part.%3C%2FP%3E%3CP%3EWould%20it%20be%20better%20to%20write%20it%20manually%20in%20order%20to%20work%20properly%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3EMilena%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-851484%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-851484%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F355812%22%20target%3D%22_blank%22%3E%40_Milena_%3C%2FA%3E%26nbsp%3B%2C%20copy%2Fpaste%20is%20faster%20and%20more%20preferable%2C%20but%20you%20shall%20be%20accurate%20with%20cells%20references.%20After%20pasting%20the%20formula%20just%20check%20if%20it%20calculates%20on%20proper%20cells.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-854467%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-854467%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%3EHi%20Sergei%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlthough%20it%20refers%20to%20the%20proper%20cells%2C%20it%20doesn't%20calculate%20correctly.%3C%2FP%3E%3CP%3EAs%20you%20can%20appreciate%20the%20only%20difference%20is%20in%20the%20%24%20rate%20so%20i%20really%20don't%20understand%20what%20the%20problem%20would%20be%20%3CLI-EMOJI%20id%3D%22lia_disappointed-face%22%20title%3D%22%3Adisappointed_face%3A%22%3E%3C%2FLI-EMOJI%3E%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-855094%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-855094%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F355812%22%20target%3D%22_blank%22%3E%40_Milena_%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'm%20not%20sure%20what's%20wrong.%20In%20all%20your%20sheets%20B26*1000%26gt%3BB25%2C%20thus%20for%20each%20of%20them%20formula%20returns%20B26*1000*0.023.%3C%2FP%3E%0A%3CP%3EOr%20you%20expect%20another%20result%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-856699%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-856699%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%3EHello%2C%3C%2FP%3E%3CP%3EIn%20the%20attached%20examples%2C%20the%20Sea%20Freight%20should%20be%3A%3C%2FP%3E%3CP%3E8.13%20x%203.8%20%3D%2030.894%3C%2FP%3E%3CP%3E28.45%20x%203.2%20%3D%2091.04%3C%2FP%3E%3CP%3E9.75%20x%203.6%20%3D%2035.1%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20should%20take%20either%20the%20weight%20or%20the%20cubes%20multiplied%20by%201000%2C%20whichever%20is%20greater.%3C%2FP%3E%3CP%3ENo%20idea%20where%20these%20numbers%20came%20from...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EMilena%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-856762%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-856762%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F355812%22%20target%3D%22_blank%22%3E%40_Milena_%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%20start%20from%20the%20scratch.%20First%20example%3C%2FP%3E%0A%3CP%3EWeight%20-%202800%3C%2FP%3E%0A%3CP%3ECubics%20-%203.2*1000%20%3D%203200%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMax%20from%20above%203200.%20Sea%20Freight%20is%20%2410%20w%2Fm%2C%20exchange%20rate%20is%201.23%20GBP%2FUSD%20-%20I%20took%20that%20from%20your%20first%20screenshort.%20Thus%203200*10*1.23%20%3D%2039360%20GBP.%20After%20that%20you%20multiply%20on%20some%20magic%20coefficient%2C%20perhaps%20we%20shall%20divide%20on%201000.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20how%208.13%20x%203.18%20appears%20for%20that%20sample%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-856817%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-856817%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%3EYes%2C%20i%20guess%20we%20could%20devide%20the%20weight%20by%201000%2C%20instead%20of%20multiplying%20the%20cubes%20by%201000.%3C%2FP%3E%3CP%3EThe%20idea%20is%20that%20the%20calculator%20should%20consider%201%20cbm%20%3D%201000%20kg%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegarding%20the%20first%20example%2C%20i'm%20after%20the%20following%20result%3A%3C%2FP%3E%3CP%3EUSD%2010%20%2F%201.23%20%3D%20GBP%208.13%3C%2FP%3E%3CP%3EWeight%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B3200%20%2F%201000%20%3D%202.8%3C%2FP%3E%3CP%3ECubics%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B3.8%3C%2FP%3E%3CP%3ESo%208.13%20x%203.8%20%3D%2030.894%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20weight%20is%20under%201000%20AND%20cubics%20are%20under%201.0%2C%20then%20a%20minimum%20of%20GBP%208.13%20should%20be%20applicable%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20was%20working%20perfectly%20untill%20i%20decided%20to%20mess%20it%20up%20by%20getting%20a%20%220%22%20value%20in%20B29%2C%20when%20B25%20and%20B26%20are%20empty...%20%3CLI-EMOJI%20id%3D%22lia_grinning-face-with-smiling-eyes%22%20title%3D%22%3Agrinning_face_with_smiling_eyes%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAgain%2C%20thanks%20for%20your%20help%20Sergei%20and%20apologies%20if%20i%20haven't%20make%20all%20clear%20since%20the%20beginning%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EMilena%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%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-856843%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-856843%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F355812%22%20target%3D%22_blank%22%3E%40_Milena_%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMilena%2C%20when%20I'd%20suggest%20to%20modify%20a%20bit%20your%20sheet.%3C%2FP%3E%0A%3CP%3EFirst%2C%20remove%20Merging%20cells%20for%20the%20exchange%20rate%2C%20instead%20select%20A2%3AD2%2C%20Ctrl%2B1%20and%20Center%20Across%20Selection.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20635px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F131929iD05401F2E7E3A751%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%3EIn%20A2%20just%20type%20the%20number%20with%20current%20exchange%20rate%20(1.23)%2C%20Ctrl%2B1%20and%20apply%20custom%20format%20as%20here%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20577px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F131930iA1A8FB8BC6B301A6%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%3EWith%20this%20we%20may%20take%20exchange%20rate%20to%20formula%20from%20this%20cell.%3C%2FP%3E%0A%3CP%3EThe%20same%20for%20B1%20and%20D1%2C%20let%20keep%20here%20only%20number%20formatting%20them%20with%20text%20through%20custom%20format.%20For%20B2%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20575px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F131931i550618542E7CCE83%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%3EWith%20this%20formula%20in%20B29%20will%20be%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DMAX(MAX(B25%2F1000%2CB26)*%24B%241%2C%24D%241)%2F%24A%242*(B25%26lt%3B%26gt%3B0)*(B26%26lt%3B%26gt%3B0)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EExchange%20rate%20and%20min%20Sea%20Freight%20we%20take%20from%20the%20cells%20and%20not%20hardcode%20them%20within%20the%20formula.%3C%2FP%3E%0A%3CP%3EPlease%20check%20in%20attached%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-856962%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-856962%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%3EThat%20is%20brilliant%2C%20thank%20you%20Sergei!%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-857547%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-857547%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F355812%22%20target%3D%22_blank%22%3E%40_Milena_%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMilena%2C%20you%20are%20welcome%2C%20glad%20to%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E
_Milena_
Occasional Contributor

Hi everybody!

 

Although i have been using Excel every day, the time has come today to realise i know nothing about formulas :)

I'm struggling to make the attached calculator works as follows:

- i need the "sea freight" to get the value either from "weight" or "cubic", whichever is greater, but i need the cubics to be multiplied by 1000 in advance. Then, in order to calculate the cost, it should multiply it by 0.01 

- if the weight is 1000 kg or under and the cubic is 1 or under, the minimum of $10 to apply

 

I have spent hours reading and searching but couldn't find a way to do that.

 

Thanks in advance for your time

 

Milena

 

16 Replies
Solution

@_Milena_ , perhaps

=MAX(10,MAX(B19,B20*1000)*0.01)
Your desired result seems to be the MAXimum of the 3 values representing each argument of this formula:
=MAX(10,B19*.01,B20*10)

@Sergei Baklan ,

 

Thank you so much :)

@_Milena_ , you are welcome

Hi all,

 

Something went wrong with my calculator

I have been using =MAX(8/13,MAX(B25,B26*1000)*0.023) 

But i have just noticed that even when B25 and B26 are blank, there is still a value in B29

 

Can anyone help me please

 

Thank you

@_Milena_ 

It returns 8/13 in such case. If you'd like to have zero if both B25 and B26 are empty, when like

=MAX(8/13,MAX(B25,B26*1000)*0.023)*(B25<>0)*(B26<>0)

 

@Sergei Baklan 

 

Oh, that all makes sence now, thank you

 

I have made a few more tabs and just copied and pasted the formula, only changing the "8/13" part.

Would it be better to write it manually in order to work properly?

 

Thank you

Milena

@_Milena_ , copy/paste is faster and more preferable, but you shall be accurate with cells references. After pasting the formula just check if it calculates on proper cells.

@Sergei Baklan 

 

Hi Sergei,

 

Although it refers to the proper cells, it doesn't calculate correctly.

As you can appreciate the only difference is in the $ rate so i really don't understand what the problem would be

 

 

@_Milena_ 

I'm not sure what's wrong. In all your sheets B26*1000>B25, thus for each of them formula returns B26*1000*0.023.

Or you expect another result?

@Sergei Baklan 

Hello,

In the attached examples, the Sea Freight should be:

8.13 x 3.8 = 30.894

28.45 x 3.2 = 91.04

9.75 x 3.6 = 35.1

 

It should take either the weight or the cubes multiplied by 1000, whichever is greater.

No idea where these numbers came from...

 

Thanks,

Milena

@_Milena_ 

Let start from the scratch. First example

Weight - 2800

Cubics - 3.2*1000 = 3200

 

Max from above 3200. Sea Freight is $10 w/m, exchange rate is 1.23 GBP/USD - I took that from your first screenshort. Thus 3200*10*1.23 = 39360 GBP. After that you multiply on some magic coefficient, perhaps we shall divide on 1000.

 

But how 8.13 x 3.18 appears for that sample?

@Sergei Baklan 

 

Yes, i guess we could devide the weight by 1000, instead of multiplying the cubes by 1000.

The idea is that the calculator should consider 1 cbm = 1000 kg

 

Regarding the first example, i'm after the following result:

USD 10 / 1.23 = GBP 8.13

Weight     3200 / 1000 = 2.8

Cubics                             3.8

So 8.13 x 3.8 = 30.894

 

If weight is under 1000 AND cubics are under 1.0, then a minimum of GBP 8.13 should be applicable

 

It was working perfectly untill i decided to mess it up by getting a "0" value in B29, when B25 and B26 are empty...

 

Again, thanks for your help Sergei and apologies if i haven't make all clear since the beginning

 

Regards,

Milena

 

 

 

 

@_Milena_ 

Milena, when I'd suggest to modify a bit your sheet.

First, remove Merging cells for the exchange rate, instead select A2:D2, Ctrl+1 and Center Across Selection.

image.png

In A2 just type the number with current exchange rate (1.23), Ctrl+1 and apply custom format as here

image.png

With this we may take exchange rate to formula from this cell.

The same for B1 and D1, let keep here only number formatting them with text through custom format. For B2

image.png

With this formula in B29 will be

=MAX(MAX(B25/1000,B26)*$B$1,$D$1)/$A$2*(B25<>0)*(B26<>0)

Exchange rate and min Sea Freight we take from the cells and not hardcode them within the formula.

Please check in attached file.

@Sergei Baklan 

 

That is brilliant, thank you Sergei!

 

 

@_Milena_ 

Milena, you are welcome, glad to help.

Related Conversations