Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Count number of values until exceeding a figure

Hello,

I have a table that looks like this:

----------------------------
A B C D E
1. 8
2. 6 3 4 3 2
3. Output: 3
---------------------------

The output value should show the number of columns (starting from E2
going to the left) it takes to add until the value (of the figures in
row E) is higher than E1.

In this case that would be 2 + 3 + 4 8, therefore the output would
be 3.
If E1 is 13, then the output would be 5, etc.

This formula is used to calculate the number of months of expenses to
replace an inventory figure.

Thanks for your time.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default Count number of values until exceeding a figure

Hi tunupo,

One way;

Put this formula in cell E3
=SUM(E2:$E2)$E$1

Copy it to D3:A3

In cell E4 enter
=COUNTIF(A3:E3,FALSE)+1

Does that do what you want?

Ed Ferrero
www.edferrero.com


Hello,

I have a table that looks like this:

----------------------------
A B C D E
1. 8
2. 6 3 4 3 2
3. Output: 3
---------------------------

The output value should show the number of columns (starting from E2
going to the left) it takes to add until the value (of the figures in
row E) is higher than E1.

In this case that would be 2 + 3 + 4 8, therefore the output would
be 3.
If E1 is 13, then the output would be 5, etc.

This formula is used to calculate the number of months of expenses to
replace an inventory figure.

Thanks for your time.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Count number of values until exceeding a figure

Thanks to Ed Ferrero,

It helped me to solve the problems!
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
count the number of values when two conditions are met Sophie D. Excel Worksheet Functions 3 May 9th 08 09:50 AM
Count of Number Values Greater Than, Less Than Anne Excel Worksheet Functions 6 October 12th 06 07:04 PM
Sound For Calculated Number Exceeding Limit Carl Excel Discussion (Misc queries) 1 June 22nd 06 12:11 PM
Count number of values Mary Excel Worksheet Functions 1 October 4th 05 09:00 PM
Count number of Unique values Alan Excel Worksheet Functions 4 January 6th 05 08:05 PM


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