Kriskros07
New Member
- Joined
- Sep 1, 2011
- Messages
- 11
Hello,
The following function will work when CTRL-SHIFT-ENTER from a cell in Excel
=MAX(IF((A2:A1655="ProductName"),C2:C1655,0))
where C2:C1655 contains a list of values. i.e. this will return the maximum value from an array (column C) if it meets criteria met in another column
(column A), else returns 0.
However, how can i recreate this sort of thing in VBA?
Kind Regards,
Kris
The following function will work when CTRL-SHIFT-ENTER from a cell in Excel
=MAX(IF((A2:A1655="ProductName"),C2:C1655,0))
where C2:C1655 contains a list of values. i.e. this will return the maximum value from an array (column C) if it meets criteria met in another column
(column A), else returns 0.
However, how can i recreate this sort of thing in VBA?
Kind Regards,
Kris