ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   To get row id (https://www.excelbanter.com/excel-programming/415822-get-row-id.html)

[email protected]

To get row id
 
Hi,

I have a worksheet which contains some data. I calculate the
min,max,stddev and mean for those columns. I have a particular column
by name npv for which i calculate these four calculations. I want to
get row id for these 4 values of npv. Like i have the first column as
row id which starts from 1 and goes until the last number. How would i
get the row id for max npv or min npv from the excel. I would
appreciate suggestions for this question.

Regards,
Ram

Mike H

To get row id
 
Hi,

To find the maximum value in a range try

=MIN(IF(A1:A1000=MAX(A1:A1000),ROW(A1:A1000),""))

and for the minimum
=MATCH(MIN($A$1:$A$1000),$A$1:$A$1000,0)

Both are array entered by pressing Ctrl+Shift+Enter NOT simply enter. If you
do it correctly Excel will put curly brackets {} around the formula. You
CAN'T type these yourself.

Mike

" wrote:

Hi,

I have a worksheet which contains some data. I calculate the
min,max,stddev and mean for those columns. I have a particular column
by name npv for which i calculate these four calculations. I want to
get row id for these 4 values of npv. Like i have the first column as
row id which starts from 1 and goes until the last number. How would i
get the row id for max npv or min npv from the excel. I would
appreciate suggestions for this question.

Regards,
Ram



All times are GMT +1. The time now is 06:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com