Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default Range for Ranking IF Cell is Y

I'm trying to come up with a formula that sets a range based on whether the
rows of potential data is a Y (User can enter Y or N in Column A). There are
only 10 data rows at the moment, but it could grow a few more.

This is what I have in J2, which doesn't show anything, but it does not
change the range, it just omits that number in the range, i.e., 4:
=IF(A2="Y",RANK(I2,$I$2:$I$9,-1),"")

Column I contains the data I want to rank, but only if the value in the
corresponding cell in the same row in column A is "Y".
I'd not like to use a macro if possible.
Cam anyone help? Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Range for Ranking IF Cell is Y

Hi!

Try this:

=IF(A2="Y",SUMPRODUCT(--(A$2:A$9="Y"),--(I2I$2:I$9))+1,"")

Biff

"David" wrote in message
...
I'm trying to come up with a formula that sets a range based on whether
the
rows of potential data is a Y (User can enter Y or N in Column A). There
are
only 10 data rows at the moment, but it could grow a few more.

This is what I have in J2, which doesn't show anything, but it does not
change the range, it just omits that number in the range, i.e., 4:
=IF(A2="Y",RANK(I2,$I$2:$I$9,-1),"")

Column I contains the data I want to rank, but only if the value in the
corresponding cell in the same row in column A is "Y".
I'd not like to use a macro if possible.
Cam anyone help? Thanks!



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell Reference with Range Name SCSC Excel Worksheet Functions 2 March 23rd 06 11:32 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
need to Copy or Move to active cell from specified range kaream Excel Discussion (Misc queries) 2 December 14th 05 08:12 AM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Reveal cell formats and extendable range in tool/statusbar/icon. Danny O'Hern ([email protected]) Excel Worksheet Functions 0 April 29th 05 01:16 PM


All times are GMT +1. The time now is 10:38 PM.

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"