Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"