I need a function that can multiply two specific cells on whatever row it’s called from. I have it defined as follows, with “AllData” being a named range for my sheet’s cells:
Function GET_MY_DATA()
my_row = ROW()
base_amt = INDEX(AllData, my_row, 2)
extra_scale = INDEX(AllData, my_row, 4)
GET_MY_DATA = base_amt * extra_scale
End Function
However, when I run this function, I get the following error on the first ‘INDEX()’ call: “BASIC runtime error. Sub-procedure or function procedure not defined.”