#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ben Ben is offline
external usenet poster
 
Posts: 509
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
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!



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
Formula Question Robert B. Excel Worksheet Functions 6 November 16th 07 12:18 PM
Formula Question casdaq Excel Worksheet Functions 0 May 3rd 07 11:35 PM
formula question DEE Excel Worksheet Functions 2 July 10th 06 05:21 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Formula Question TimT Excel Discussion (Misc queries) 2 January 3rd 06 09:42 PM


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