I have a 2*3 matrix ranging from cells C2:E3. I need to find the row number of the maximum number
Can someone suggest a VBA code for the same I tried to use index and match but not getting proper results
I have a 2*3 matrix ranging from cells C2:E3. I need to find the row number of the maximum number
Can someone suggest a VBA code for the same I tried to use index and match but not getting proper results
Try the code below (explanation inside the code comments):
VBA-free solution:
Assuming that the table is in
$C$2:$E$3
, an array formula (type Ctrl+Shift+Enter instead of just Enter)returns the maximal row number, in which the maximal element is found.
To get the minimal row number, in which the maximal element is found, we can use this array formula: