Hi, i am trying to incorporate the below formula into VBA but getting an error(application defined or object defined error).. Am i missing something here??
Any feedback is greatly appreciated!
Thanks so much
Dan
=LOOKUP(9^99,IF({1,0},0,LOOKUP(2,1/(P1=data!P$1:P$10001)/(E1=data!E$1:E$10001),data!K$1:K$10001)))
Any feedback is greatly appreciated!
Thanks so much
Dan
=LOOKUP(9^99,IF({1,0},0,LOOKUP(2,1/(P1=data!P$1:P$10001)/(E1=data!E$1:E$10001),data!K$1:K$10001)))
Code:
Range("K1").Select
ActiveCell.FormulaR1C1 = "=LOOKUP(9^99,IF({1,0},0,LOOKUP(2,1/(P1=data!P$1:P$10001)/(E1=data!E$1:E$10001),data!K$1:K$10001)))"
Range("K1").Select