DaveHappyNorm
New Member
- Joined
- Jul 22, 2018
- Messages
- 15
Hi all
I was hoping someone could help me with the following Excel problem.
I have list of numbers in A and I want to find the row number of the Min value in that column, if the minimum value occurs more than once I need all the row numbers of the minimum value.
For example:-
Row 1 15
Row 2 6
Row 3 22
Row 4 18
Row 5 6
Row 6 12
Using the data above, the minimum value is 6 and I need row numbers 2 and 5.
I found the following formula:-
=MATCH(MIN(A1:A7),A1:A7,0)
But this only works if the minimum value occurs once.
Any VBA code that would achieve this?
Thank you
I was hoping someone could help me with the following Excel problem.
I have list of numbers in A and I want to find the row number of the Min value in that column, if the minimum value occurs more than once I need all the row numbers of the minimum value.
For example:-
Row 1 15
Row 2 6
Row 3 22
Row 4 18
Row 5 6
Row 6 12
Using the data above, the minimum value is 6 and I need row numbers 2 and 5.
I found the following formula:-
=MATCH(MIN(A1:A7),A1:A7,0)
But this only works if the minimum value occurs once.
Any VBA code that would achieve this?
Thank you