Hi There,
I am trying to create a formula linking two worksheets together. One sheet has a shipping tariff, and another has the shipment information (pieces, weight, origin, destination). I have been trying to create the formula using video tutorials, but I think I may be missing a step. Here is the formula I have so far:
=MIN(MAX(HLOOKUP($H5,'JNN LH Rates'!$A$1:$M$1,MATCH($D5&$E5,INDEX('JNN LH Rates'!$A$2:$A$4057&'JNN LH Rates'!$B$2:$B$4057,),0)*$H5,VLOOKUP($D5,MATCH($D5&$E5,INDEX('JNN LH Rates'!$A$2:$A$4057&'JNN LH Rates'!$B$2:$B$4057,),3,0),VLOOKUP($E5,MATCH($D5&$E5,INDEX('JNN LH Rates'!$A$2:$A$4057&'JNN LH Rates'!$B$2:$B$4057,),13,0))))))
H5 represents the weight
D5 represents the origin
E5 represents the destination
on JNN LH Rates spreadsheet
Column A = origin
Column B = destination
Row 1 = weight break per pound being charged
Table information is per pound charges for weight, with minimum/maximum charges per origin/destination.
The end result is for the formula to calculate the charge per pound. Then determine if it meets the minimum charge, or if it is under the maximum charge, if it is, then the per pound charge applies, if not, then the minimum or maximum charge applies.
The error I get, is that I've entered too many arguments for this function. Is there an easier way to achieve what I need for my end result?
Thank you in advance for any help or advice you can give!
Megan
Bookmarks