Hi,
This is my first time posting, so my sincere apologies if my "syntax" for the post is incorrect. Anyway, I would like to find the max value(s) in a range, and then vlookup(or something else) to return a list of the cell addresses where these max values are found. For example:
Sub findValue()
dim maximum as integer
range("a1:e1")=5
range("a2:e5")=3
maximum=worksheetfunction.max(range("a1:e5"))
End sub
Now, i would like to add code so that i get a list returned to me that says
a1
b1
c1
d1
e1
because these are the cells within the specified range where the max value is found. Again, this is my first post, so sorry if i got anything wrong. I really appreciate your help, and the regulars are doing a great service to us newbies who don't know what we're doing! Thanks a lot.
-Jon
This is my first time posting, so my sincere apologies if my "syntax" for the post is incorrect. Anyway, I would like to find the max value(s) in a range, and then vlookup(or something else) to return a list of the cell addresses where these max values are found. For example:
Sub findValue()
dim maximum as integer
range("a1:e1")=5
range("a2:e5")=3
maximum=worksheetfunction.max(range("a1:e5"))
End sub
Now, i would like to add code so that i get a list returned to me that says
a1
b1
c1
d1
e1
because these are the cells within the specified range where the max value is found. Again, this is my first post, so sorry if i got anything wrong. I really appreciate your help, and the regulars are doing a great service to us newbies who don't know what we're doing! Thanks a lot.
-Jon