M
Murtaza
Can anyone convert this into FUNCTION named MI. This function should ask
user for 2 range.
I have tried the following but cant accomplish:
Function MI(range1 as Range, range2 as Range) As Integer
Selection.FormulaArray = _
"=SUM((R[-3]C:R[-1]C)*(LOOKUP(R[-3]C[-1]:R[-1]C[-1],PriceList!R[-3]C[-1]:R[2
9]C[-1],PriceList!R[-3]C:R[29]C)))"
End Function
What I need is something like this
Function MI(range1 as Range, range2 as Range) As Integer
Selection.FormulaArray = _
"=SUM((User will tell range1)*(LOOKUP(user will tell
range2,PriceList!R[-3]C[-1]:R[29]C[-1],PriceList!R[-3]C:R[29]C)))"
End Function
user for 2 range.
I have tried the following but cant accomplish:
Function MI(range1 as Range, range2 as Range) As Integer
Selection.FormulaArray = _
"=SUM((R[-3]C:R[-1]C)*(LOOKUP(R[-3]C[-1]:R[-1]C[-1],PriceList!R[-3]C[-1]:R[2
9]C[-1],PriceList!R[-3]C:R[29]C)))"
End Function
What I need is something like this
Function MI(range1 as Range, range2 as Range) As Integer
Selection.FormulaArray = _
"=SUM((User will tell range1)*(LOOKUP(user will tell
range2,PriceList!R[-3]C[-1]:R[29]C[-1],PriceList!R[-3]C:R[29]C)))"
End Function