Jon von der Heyden
MrExcel MVP, Moderator
- Joined
- Apr 6, 2004
- Messages
- 10,907
- Office Version
- 365
- Platform
- Windows
Hi,
Why can't I do this?
Where
iRange appears fine throughout so suspect something else is wrong. I get a "Type Mismatch" error.
Any idea?
Thanks,
Jon
Why can't I do this?
Code:
Cells(17, 6) = WorksheetFunction.SumProduct((iRange >= Cells(15, 6)) * (iRange <= Cells(14, 6)))
Where
Code:
Set iRange = Sheets("Results").Range("B2:B" & i)
iRange appears fine throughout so suspect something else is wrong. I get a "Type Mismatch" error.
Any idea?
Thanks,
Jon