Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Amy Amy is offline
external usenet poster
 
Posts: 165
Default Counting occurences of time it takes to calculate to 0 or just ove

I am using Excel 2003 and I would like to create a formula to perform the
following calculation.

Cell E1 = 100,000.00
Cell E2 = 20,021.88
I would like the formula in Cell E3

If you subtract E2 from E1, update E1 as you go along, how many times do you
have to do this to eventually make E1 = zero or a little more than zero?

Here is my example:

100,000.00 - 20,021.88 = 79,978.12 (Count = 1)
79,978.12 - 20,021.88 = 59,956.24 (Count = 2)
59,956.24 - 20,021.88 = 39,934.36 (Count = 3)
39,934.36 - 20,021.88 = 19,912.48 (Count = 4)
19,912.48 - 20,021.88 = -109.4

Therefore, the answer should be 4 in cell E3.

I understand how to do subtraction (E1 - E2), and I understand the basics of
IF statements. But how do I do subtraction and change the value of E1 as I
go along and keep track of another value named Count?

Thank you very much for your help.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default Counting occurences of time it takes to calculate to 0 or just ove

You can divide the bigger number by the smaller number and take the integer
portion.

=e1/e2
and you get:
4.994535978

If you take just the integer portion:
=int(e1/e2)
you end up with 4.




Amy wrote:

I am using Excel 2003 and I would like to create a formula to perform the
following calculation.

Cell E1 = 100,000.00
Cell E2 = 20,021.88
I would like the formula in Cell E3

If you subtract E2 from E1, update E1 as you go along, how many times do you
have to do this to eventually make E1 = zero or a little more than zero?

Here is my example:

100,000.00 - 20,021.88 = 79,978.12 (Count = 1)
79,978.12 - 20,021.88 = 59,956.24 (Count = 2)
59,956.24 - 20,021.88 = 39,934.36 (Count = 3)
39,934.36 - 20,021.88 = 19,912.48 (Count = 4)
19,912.48 - 20,021.88 = -109.4

Therefore, the answer should be 4 in cell E3.

I understand how to do subtraction (E1 - E2), and I understand the basics of
IF statements. But how do I do subtraction and change the value of E1 as I
go along and keep track of another value named Count?

Thank you very much for your help.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.newusers
Amy Amy is offline
external usenet poster
 
Posts: 165
Default Thank you!

I was completely overthinking that. Very nice that you can take the integer
value in Excel. Thank you very much for the tip!

Much appreciated,
Amy
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 occurences of a name [email protected] Excel Worksheet Functions 3 October 8th 07 12:52 AM
Counting Occurences Formulas Daren Excel Worksheet Functions 5 September 18th 07 01:02 PM
Counting the occurences riomarde Excel Worksheet Functions 1 March 27th 06 09:00 PM
Excel takes along time to calculate TonyL Excel Worksheet Functions 0 May 31st 05 12:19 AM
Counting Occurences Pete Excel Discussion (Misc queries) 7 May 2nd 05 08:28 PM


All times are GMT +1. The time now is 04:50 AM.

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"