PC Review


Reply
Thread Tools Rate Thread

How to determine the max. value?

 
 
Eric
Guest
Posts: n/a
 
      1st Jul 2008
Refer to the question under Worksheet function.

There are a list of numbers under column A and B, and there is a given
number in cell C1, such as 100

A B
2 4
4 13
7 45
5 33
9 23
13 40
23 12

For the first number in cell D1, starting from cell B1 counting downward in
order to determine the sum of number, which is less than / equal to 100, but
if adding the next number, then it will more than 100. In this case for the
first number in cell D1,
4+13+45+33 = 95, but adding the next number 23, then it will be
4+13+45+33+23 = 118. After that, I would like to determine the max. values
under column A: 2,4,7,5, but not including 9, and it should return 7 in cell
D1.

For the second number in cell D2, starting from cell B2 counting downward in
order to determine the sum of number, which is less than / equal to 100, but
if adding the next number, then it will more than 100. In this case for the
second number in cell D2,
13+45+33 = 91, but adding the next number 23, then it will be
13+45+33+23 = 114. After that, I would like to determine the max. values
under column A: 4,7,5, but not including 9, and it should return 7 in cell D2.

For the third number in cell D3, starting from cell B3 counting downward in
order to determine the sum of number, which is less than / equal to 100, but
if adding the next number, then it will more than 100. In this case for the
third number in cell D3,
45+33 = 78, but adding the next number 23, then it will be
45+33+23 = 101. After that, I would like to determine the max. values under
column A: 7,5, but not including 9, and it should return 7 in cell D3

For the fourth number in cell D4, starting from cell B4 counting downward in
order to determine the sum of number, which is less than / equal to 100, but
if adding the next number, then it will more than 100. In this case for the
third number in cell D4,
33+23+40 = 96, but adding the next number 12, then it will be
33+23+40+12 = 108. After that, I would like to determine the max. values
under column A: 5,9,13, but not including 23, and it should return 13 in cell
D4

Does anyone have any suggestions on how to do it in Excel?
Thanks in advance for any suggestions
Eric
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to determine the value? Eric Microsoft Excel Misc 0 6th Jun 2010 06:17 AM
Determine best way to sum WLMPilot Microsoft Excel Misc 4 22nd Dec 2008 02:03 AM
How to determine the value? =?Utf-8?B?RXJpYw==?= Microsoft Excel Worksheet Functions 1 13th Feb 2007 04:17 AM
how to determine SID jg Windows XP Security 2 5th Mar 2006 01:21 AM
[Help]How do we determine? Wang.Hua Windows XP General 0 2nd Nov 2004 03:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:54 PM.