PDA

View Full Version : How to find and use the maximum value in VBA code



alihadi
05-13-2016, 03:47 AM
Hi, How to find and use the first maximum value if we have more than one with the same value using VBA programme? any assistance is appreciated.

PAB
05-13-2016, 03:55 AM
Hi alihadi, that's spooky for Friday the 13th, there is virtually the exact same question been asked a couple of threads down from this one, spooky or what?

alihadi
05-13-2016, 03:58 AM
Sorry, do you know how to choose the first Max value if we have more than one with the same value?

PAB
05-13-2016, 04:07 AM
Give this a go...


=LARGE(A1:Z50,1)

Change the range to suit.

I hope this helps!

SamT
05-13-2016, 05:08 AM
Is this for homework or for production? It will make a difference in how I answer.