Hi,
I'm new to the forum and have searched all over for help with this problem but can't find a satisfactory answer.
I want to create a function that can take a range of cells as an argument, manipulate the data and then return an answer. So for instance, as a practise example I've been trying to create my own 'sum' function mySum that would take the following form in an example:
- Cells A1, A2, A3 would have numerical values
- Another cell, e.g. A4 would take the form =mySum(A1:A3)
- mySum formula sum the values in A1:A3
I'd like to do this by putting the contents of cells A1:A3 in an array and then summing the contents of that array, so I understand the mechanics of using arrays in this way within VBA.
Can anyone help!?
Thanks!
JD
Bookmarks