#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 2
Default ticket counting

I have to show how many tickets are disbursed to different people.
Let's say Bob gets tickets 100 to 105. The SUM formula subtracting 100
from 105 is 5 when actually Bob gets 6 tickets. Do i have to add a
hidden column with a value of 1 to insert into the formula? Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 634
Default ticket counting

As long as your data is in database format with a name against every ticket
number, then just throw a Pivot table at your data and just have it count
the rcords.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------



"Bob" wrote in message
oups.com...
I have to show how many tickets are disbursed to different people.
Let's say Bob gets tickets 100 to 105. The SUM formula subtracting 100
from 105 is 5 when actually Bob gets 6 tickets. Do i have to add a
hidden column with a value of 1 to insert into the formula? Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default ticket counting

No


Just change the formula a little bit

if A1 contains 100 and A2 contains 105 then the number of ticks is:

=A2-A1+1
--
Gary's Student


"Bob" wrote:

I have to show how many tickets are disbursed to different people.
Let's say Bob gets tickets 100 to 105. The SUM formula subtracting 100
from 105 is 5 when actually Bob gets 6 tickets. Do i have to add a
hidden column with a value of 1 to insert into the formula? Thanks


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 2
Default ticket counting

Thanks Ken.
I won't have access to to individual ticket sales. I just disburse
packets of tickets.
I hope this isn't rude (new to forum), i just need to sum the # of
tickets in packets to the sellers.
Ex:
/ start # / end # / # received
Bob 100 104 5
Joe 105 109 5
Pat 110 114 5

Total tickets disbursed 15

For now i have a hidden column with a value of 1 to add to the SUM
formula to make the formula work. But, unless there is a ticket
starting number i get a #VALUE error in my totals columns and am unable
to see my running total of tickets disbursed. I can't think how to tell
my "# received" column to take ticket 100 to 104 and calculate it as 5
(without that hidden column with a 1 that is).
Thanks for your patience.
Bob

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default ticket counting

The simple answer to your question is yes, you have to add 1.

If Bob gets ticket number105, then 105 is not being included in the
calculation, (if Bob gets ticket Numbers 1 to 10 then 10-1 is only 9 not
10), to be included, ticket Number 105 must be added in afterwards or use
the *real* subtraction which is 105-99 to give 6.
--
HTH

Sandy
In Perth, the ancient capital of Scotland


with @tiscali.co.uk


"Bob" wrote in message
oups.com...
I have to show how many tickets are disbursed to different people.
Let's say Bob gets tickets 100 to 105. The SUM formula subtracting 100
from 105 is 5 when actually Bob gets 6 tickets. Do i have to add a
hidden column with a value of 1 to insert into the formula? 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
Counting unique values giantwolf Excel Discussion (Misc queries) 4 August 28th 06 01:31 PM
Wacky IF Structire nevi Excel Worksheet Functions 5 June 24th 06 12:53 AM
Counting of tickets that have certain criteria Nicki King Excel Worksheet Functions 1 January 20th 06 09:54 AM
conditional counting with Excel LeicaElmar Excel Worksheet Functions 1 October 17th 05 10:23 PM
Counting... Patrick G Excel Worksheet Functions 3 February 23rd 05 10:05 PM


All times are GMT +1. The time now is 02:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"