A
Alby
Hi all
this is a tricky one, for me at least
I have a table (sheet1)
A B C D E F G
LEG BASIC 0-100 101-250 251-500 501-1000 1001+ MINIMU
MEL - SYD 10.00 .50 .45 .40 .35 .27 15.0
MEL - BNE 8.00 .80 .76 .65 .45 .35 10.0
I also have a range of data (sheet2)
A B
LEG Kilos Cos
MEL -SYD 52
MEL- SYD 12
MEL- BNE 60
In C2 and down I need to calculate the cost of the legs. So
VLOOKUP ( MEL-SYD, $A$2:$H$50,2,0) +VLOOKUP ( MEL-SYD, $A$2:$H$50,the range b2 on the 2nd sheet falls in(CDEFG),0) and if the value of this argument doesnt equal or exceed the H column then it equals the H column
I've got this far, but am struggling wit the differing weight range
=if(IF(ISNA(VLOOKUP(A2,ABC,2,FALSE)+VLOOKUP(A2,ABC,3,FALSE)*B2),"",(VLOOKUP(A2,ABC,2,FALSE)+VLOOKUP(A2,ABC,3,FALSE)*B2))<H2,H2,=IF(ISNA(VLOOKUP(A2,ABC,2,FALSE)+VLOOKUP(A2,ABC,3,FALSE)*B2),"",(VLOOKUP(A2,ABC,2,FALSE)+VLOOKUP(A2,ABC,3,FALSE)*H2)
Any Ideas
Alb
this is a tricky one, for me at least
I have a table (sheet1)
A B C D E F G
LEG BASIC 0-100 101-250 251-500 501-1000 1001+ MINIMU
MEL - SYD 10.00 .50 .45 .40 .35 .27 15.0
MEL - BNE 8.00 .80 .76 .65 .45 .35 10.0
I also have a range of data (sheet2)
A B
LEG Kilos Cos
MEL -SYD 52
MEL- SYD 12
MEL- BNE 60
In C2 and down I need to calculate the cost of the legs. So
VLOOKUP ( MEL-SYD, $A$2:$H$50,2,0) +VLOOKUP ( MEL-SYD, $A$2:$H$50,the range b2 on the 2nd sheet falls in(CDEFG),0) and if the value of this argument doesnt equal or exceed the H column then it equals the H column
I've got this far, but am struggling wit the differing weight range
=if(IF(ISNA(VLOOKUP(A2,ABC,2,FALSE)+VLOOKUP(A2,ABC,3,FALSE)*B2),"",(VLOOKUP(A2,ABC,2,FALSE)+VLOOKUP(A2,ABC,3,FALSE)*B2))<H2,H2,=IF(ISNA(VLOOKUP(A2,ABC,2,FALSE)+VLOOKUP(A2,ABC,3,FALSE)*B2),"",(VLOOKUP(A2,ABC,2,FALSE)+VLOOKUP(A2,ABC,3,FALSE)*H2)
Any Ideas
Alb