Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
 
Posts: n/a
Default Sumproduct Question

I am trying to determine the appropriate equation for my application

I have the following:

=IF($D2="C-D",RANK($F2,(IF($D$2:$D$106="C-D",IF(ISNUMBER($F$2:$F$106),$F$2:$F$106))),0),NA() )

What I want to do is Rank the values in F2:F106 if the values in D2:D106 =
"C-D". I have committed this with CTRL SHIFT ENTER.

I get NA in the right places, and a VALUE error if the value in D2:D106 =
"C-D".

Thanks.

Barb Reinhardt
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Sumproduct Question

You probably have to create a help column like

=IF(D2="C-D",F2,"")


copy down, assume you put that formula in G2

then use

=IF(G2="",NA(),RANK(G2,$G$2:$G$106))

copy down

RANK cannot be used as an array formula but it ignores blanks so it can be
used as above

Regards,

Peo Sjoblom






"Barb Reinhardt" wrote:

I am trying to determine the appropriate equation for my application

I have the following:

=IF($D2="C-D",RANK($F2,(IF($D$2:$D$106="C-D",IF(ISNUMBER($F$2:$F$106),$F$2:$F$106))),0),NA() )

What I want to do is Rank the values in F2:F106 if the values in D2:D106 =
"C-D". I have committed this with CTRL SHIFT ENTER.

I get NA in the right places, and a VALUE error if the value in D2:D106 =
"C-D".

Thanks.

Barb Reinhardt

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default Sumproduct Question

Maybe...

G2, copied down:

=IF(D2="C-D",SUMPRODUCT(--($D$2:$D$106=D2),--(F2<$F$2:$F$106))+1,#N/A)

Hope this helps!

In article ,
Barb Reinhardt wrote:

I am trying to determine the appropriate equation for my application

I have the following:

=IF($D2="C-D",RANK($F2,(IF($D$2:$D$106="C-D",IF(ISNUMBER($F$2:$F$106),$F$2:$F$
106))),0),NA())

What I want to do is Rank the values in F2:F106 if the values in D2:D106 =
"C-D". I have committed this with CTRL SHIFT ENTER.

I get NA in the right places, and a VALUE error if the value in D2:D106 =
"C-D".

Thanks.

Barb Reinhardt

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
Sumproduct Question [email protected] Excel Discussion (Misc queries) 5 May 16th 06 03:43 PM
Sumproduct Question [email protected] Excel Discussion (Misc queries) 9 March 10th 06 04:26 PM
Question about sumproduct Jason Excel Discussion (Misc queries) 1 April 21st 05 05:44 PM
Question about sumproduct bj Excel Discussion (Misc queries) 0 April 21st 05 05:40 PM
sumproduct question taxmom Excel Worksheet Functions 3 April 18th 05 07:01 PM


All times are GMT +1. The time now is 08:14 PM.

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

About Us

"It's about Microsoft Excel"