Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

Count number of values until exceeding a figure

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tunupo - 12 May 2008 07:11 GMT
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.
Ed Ferrero - 12 May 2008 11:57 GMT
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,
>
[quoted text clipped - 19 lines]
>
> Thanks for your time.
tunupo - 13 May 2008 03:07 GMT
Thanks to Ed Ferrero,

It helped me to solve the problems!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.