A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formula Question



 
 
Thread Tools Display Modes
  #1  
Old September 27th, 2008, 11:47 AM posted to microsoft.public.excel.worksheet.functions
Ben
external usenet poster
 
Posts: 536
Default Formula Question

I work in a school and I need to tally the number of tickets grade levels
earn. What I am stuck on is, I want to tally the tickets earned, but when
they hit a certain number, the tally will start over again moving any carry
over ticket tallys with it. For example, the first grade has to earn 500
tickets. They end up earning 535. I want the tally to stop at 500 and move
that 35 into a new tally (rolling over the extra 35). Any help would be a
appreciated! Thanks!
  #2  
Old September 27th, 2008, 12:24 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default Formula Question

Hi,

Lets say the ticket values are in a1 - a400.

use this for the first 500
=MIN(500,SUM($A$1:$A$400))

and for the next 500
=MIN(1000,MAX(0,SUM($A$1:$A$400)-500))

and finally the rest. This formula counts everything in excess of the first
2 so if it isn't the last change 10^22 to the next threshold and follow the
logic to create the next formula.

=MIN(10^22,MAX(0,SUM($A$1:$A$400)-1500))


Mike

"Ben" wrote:

I work in a school and I need to tally the number of tickets grade levels
earn. What I am stuck on is, I want to tally the tickets earned, but when
they hit a certain number, the tally will start over again moving any carry
over ticket tallys with it. For example, the first grade has to earn 500
tickets. They end up earning 535. I want the tally to stop at 500 and move
that 35 into a new tally (rolling over the extra 35). Any help would be a
appreciated! Thanks!

  #3  
Old September 27th, 2008, 12:58 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default Formula Question

=MOD(A2,500)
--
David Biddulph

"Ben" wrote in message
...
I work in a school and I need to tally the number of tickets grade levels
earn. What I am stuck on is, I want to tally the tickets earned, but when
they hit a certain number, the tally will start over again moving any
carry
over ticket tallys with it. For example, the first grade has to earn 500
tickets. They end up earning 535. I want the tally to stop at 500 and
move
that 35 into a new tally (rolling over the extra 35). Any help would be a
appreciated! Thanks!



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:40 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.