Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Iterations or Step calculations in Excel

Status
Not open for further replies.

Accessdabbler

Technical User
Oct 15, 2002
728
CA
Not sure the best way to explain this. Consider a row of numbers:

100 200 500 300 400

Now, in another cell I type the value "1000".

I want a formula that will subtract the first row of numbers, one-by-one from 1000 until the result is less than 0. In this case, the answer would be 4 since the formula had to go to the 4th number before the result was less than 0.

If it makes a difference, the numbers could be in a column instead of a row.
 
Hi dabbler,

This is an MS Access forum - try here :VBA Visual Basic for Applications (Microsoft) Forum.

ATB

Darrylle

Never argue with an idiot, he'll bring you down to his level - then beat you with experience.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top