Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
QuantumPion
 
Posts: n/a
Default how to sum highest ranking values meeting criteria within a limit?


I need a function that will sum the n largest values in an array, where
the values are less then x and are not #N/A, meet a criteria in a
seperate array, and where the total of the sum is less then or equal to
y. How can I do this? Thanks. :)

For example, here is my data:


Code:
--------------------

name type value

alpha g 1
bravo 5
charlie g 2
delta g #N/A
echo 3
foxtrot g 7

--------------------


I want a function that will find the sum of the largest two values that
are "g" that add to 8 or less. So the output would look like:


Code:
--------------------

name value
alpha 1
charlie 2

sum: 3

--------------------


--
QuantumPion
------------------------------------------------------------------------
QuantumPion's Profile: http://www.excelforum.com/member.php...o&userid=23991
View this thread: http://www.excelforum.com/showthread...hreadid=376117

  #2   Report Post  
 
Posts: n/a
Default

But, 1+7 = 8 (namely, add to 8 or less) ; and so, does the given combo
meet the criterion ?

Regards.

  #3   Report Post  
 
Posts: n/a
Default

But, 1+7 = 8 (namely, add to 8 or less) ; and so, does the given combo
meet the criterion ?

Regards.

  #4   Report Post  
QuantumPion
 
Posts: n/a
Default


My problem is trying to make a forumla that adds the highest values that
total less then a limit though. What I need is a way to repeat a forumla
until a result is achieved, sort of like:

if(sum(rank(1:32)1500,if(sum(rank(2:33)1500,if(s um(rank(3:34)1500,
... ad nausem.


--
QuantumPion
------------------------------------------------------------------------
QuantumPion's Profile: http://www.excelforum.com/member.php...o&userid=23991
View this thread: http://www.excelforum.com/showthread...hreadid=376117

  #5   Report Post  
 
Posts: n/a
Default

Instead of deploying Sum(Rank(1:32)) ...... ,

you may wish to experiment with :
SUM(LARGE(TargetRange,ROW(INDIRECT(ROW()&":"&ROW() +31)))).

The reference TargetRange is self-evident.

Regards.

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
Counting Values that meet another cells criteria Jess Excel Worksheet Functions 1 March 8th 05 01:42 AM
Sum the values of one column, only if they meet certain criteria . Todd Pippin Excel Worksheet Functions 0 February 8th 05 04:37 PM
COUNTIF MEETING TWO CRITERIA eg>5 AND <10.1 John Higgins Excel Worksheet Functions 2 December 22nd 04 01:19 AM
ranking an row of values Wazooli Excel Worksheet Functions 4 December 13th 04 10:09 PM
Need formula to check values of data in several cells as criteria VCTECH Excel Worksheet Functions 0 November 19th 04 09:54 PM


All times are GMT +1. The time now is 01:34 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"