Forum Discussion

ClauP's avatar
ClauP
Copper Contributor
Dec 18, 2019
Solved

Weight cost formula

I need help to create a formula that must spit out a price after taking weight into consideration.   I don't know how to produce this formula and would appreciate some help.   I attach the file a...
  • SergeiBaklan's avatar
    SergeiBaklan
    Dec 19, 2019

    ClauP 

    From my point of view Riny_van_Eekelen gave right solution, it's better to keep transportation fee depends on weight in helper cells. From maintenance point of view that's much easier, any correction could be done in one place only, not in each formula.

    But if you what to hardcode it that could be like

    =D14+LOOKUP(B14,{0,1000,2000,3000,4200,15000,19000,40000,60000},{22.5,41.25,41.25,42.5,45.75,46.5,71.5,85.5,85.5})

    or, if to use only your range

    =D15+LOOKUP(B15,--LEFT($F$4:$F$12,SEARCH("-",$F$4:$F$12)-1),$E$4:$E$12)

    where the weight is in B14 or B15.

    Both are in attached.

Resources