mrinal saha
Board Regular
- Joined
- Jan 20, 2009
- Messages
- 229
Hi folks,
Want to create a formula to fetch data from other sheet.
I am using sumif formula. ideal formula would be
=SUMIF('A06'!H:H,"hold",'A06'!M:M) but i am trying through variable to make it more dynamic.
yy = Cells(Range("a" & lr + 12).Row, y).Value
xx = Cells(i, 1).Value
value of yy = A06
value of xx = hold
and this is something i am trying but not working
Cells(i, y).Formula = "=sumif('yy' & ""!H:H"",xx,'yy' & ""!M:M"")"
please show me how to do it correctly?
thnxxx,
Mrinal
Want to create a formula to fetch data from other sheet.
I am using sumif formula. ideal formula would be
=SUMIF('A06'!H:H,"hold",'A06'!M:M) but i am trying through variable to make it more dynamic.
yy = Cells(Range("a" & lr + 12).Row, y).Value
xx = Cells(i, 1).Value
value of yy = A06
value of xx = hold
and this is something i am trying but not working
Cells(i, y).Formula = "=sumif('yy' & ""!H:H"",xx,'yy' & ""!M:M"")"
please show me how to do it correctly?
thnxxx,
Mrinal