Hi. I'm trying to do some VBA programming for a project at work. Because I'm new to VBA and have very limited programming experience (everything I know, I've learned in the past couple days), I need some help.
I'm trying to write a function that will look up two different values in two different columns, and then return the maximum value of all the matches from a third column.
For example...
Using the values shown below, I want to look up all instances where the first column contains "Cat" and the second column contains "Bee", and return the maximum value from the third column which would be "6".
Cat Bird 8
Cat Bee 6 <===
Dog Bird 3
Cat Bee 2 <===
I'm currently using Office 2002.
Any help would be appreciated. Thanks!
I'm trying to write a function that will look up two different values in two different columns, and then return the maximum value of all the matches from a third column.
For example...
Using the values shown below, I want to look up all instances where the first column contains "Cat" and the second column contains "Bee", and return the maximum value from the third column which would be "6".
Cat Bird 8
Cat Bee 6 <===
Dog Bird 3
Cat Bee 2 <===
I'm currently using Office 2002.
Any help would be appreciated. Thanks!