G
Guest
Dear experts,
My active sheet is P1, from which I have found an id value. I now wish to
'get' a value (let's call it maxpt) which is on another sheet (Summary). If I
were doing this in an Excel formula, the cell would contain the following:
=IF(ISNA(MATCH(D6,Summary!D290,0)),"",OFFSET(Summary!D2,MATCH(D6,Summary!D290,0)-1,1))
where D6 is the id value and the result would be maxpt. How, if at all, does
this convert to VBA? And can I use a VBA variable in place of the 'D6'?
Thanks!
My active sheet is P1, from which I have found an id value. I now wish to
'get' a value (let's call it maxpt) which is on another sheet (Summary). If I
were doing this in an Excel formula, the cell would contain the following:
=IF(ISNA(MATCH(D6,Summary!D290,0)),"",OFFSET(Summary!D2,MATCH(D6,Summary!D290,0)-1,1))
where D6 is the id value and the result would be maxpt. How, if at all, does
this convert to VBA? And can I use a VBA variable in place of the 'D6'?
Thanks!