Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Formula for counting customers waiting to be served

Our office issues Take a number tickets to customers when they are waiting to
be called-served. Hundreds each business day.
These paper tickets are premade, currently with each roll starting with
ticket #A00 and ending with ticket #J99. (why they don't go to the letter "Z"
is a mystery anyway)

I've got an excel sheet that a staff employee enters hourly the current take
a ticket number pulled and the current take a ticket number being served for
statistics.

I want a formula that compares these 2 data entries and counts how many take
a ticket numbers have yet to be served at that time (how many customers are
waiting to be served).
But since the tickets numbers contain a letter, I'm having trouble coming up
with a formula.
Thanks for any help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Formula for counting customers waiting to be served

Try this non-VBA method:

A1: (Last Ticket Out)
A2: (Last Ticket Served)

Put this formula in B1 and copy to B2:
=(CODE(LEFT(A1,1))-65)*100+RIGHT(A1,2)

B3: =B1-B2

For
A1: B20
A2: A99

B1: 120
B2: 99
B3: 21

Does that help?

***********
Regards,
Ron


"jimtmcdaniels" wrote:

Our office issues Take a number tickets to customers when they are waiting to
be called-served. Hundreds each business day.
These paper tickets are premade, currently with each roll starting with
ticket #A00 and ending with ticket #J99. (why they don't go to the letter "Z"
is a mystery anyway)

I've got an excel sheet that a staff employee enters hourly the current take
a ticket number pulled and the current take a ticket number being served for
statistics.

I want a formula that compares these 2 data entries and counts how many take
a ticket numbers have yet to be served at that time (how many customers are
waiting to be served).
But since the tickets numbers contain a letter, I'm having trouble coming up
with a formula.
Thanks for any help!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default To allow for lower case entry . . .

If the user might accidentally type a99, instead of A99, use this formula in
B1 and copy to B2:
=(CODE(UPPER(LEFT(A1,1)))-65)*100+RIGHT(A1,2)


***********
Regards,
Ron


"Ron Coderre" wrote:

Try this non-VBA method:

A1: (Last Ticket Out)
A2: (Last Ticket Served)

Put this formula in B1 and copy to B2:
=(CODE(LEFT(A1,1))-65)*100+RIGHT(A1,2)

B3: =B1-B2

For
A1: B20
A2: A99

B1: 120
B2: 99
B3: 21

Does that help?

***********
Regards,
Ron


"jimtmcdaniels" wrote:

Our office issues Take a number tickets to customers when they are waiting to
be called-served. Hundreds each business day.
These paper tickets are premade, currently with each roll starting with
ticket #A00 and ending with ticket #J99. (why they don't go to the letter "Z"
is a mystery anyway)

I've got an excel sheet that a staff employee enters hourly the current take
a ticket number pulled and the current take a ticket number being served for
statistics.

I want a formula that compares these 2 data entries and counts how many take
a ticket numbers have yet to be served at that time (how many customers are
waiting to be served).
But since the tickets numbers contain a letter, I'm having trouble coming up
with a formula.
Thanks for any help!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 180
Default Formula for counting customers waiting to be served

If the ticket# (A00, leave off the #) is in A2, then the formula
=100*(CODE(LEFT(A2,1))-65)+VALUE(RIGHT(A2,2))
will convert it to a sequential number from 0 to 999. You can apply the
formula to both the 'last served' and 'last taken', and the difference will
be the number waiting each hour. (To allow for rolling over from J99 back to
A00, you could take the difference mod 1000.)
HTH. --Bruce


"jimtmcdaniels" wrote:

Our office issues Take a number tickets to customers when they are waiting to
be called-served. Hundreds each business day.
These paper tickets are premade, currently with each roll starting with
ticket #A00 and ending with ticket #J99. (why they don't go to the letter "Z"
is a mystery anyway)

I've got an excel sheet that a staff employee enters hourly the current take
a ticket number pulled and the current take a ticket number being served for
statistics.

I want a formula that compares these 2 data entries and counts how many take
a ticket numbers have yet to be served at that time (how many customers are
waiting to be served).
But since the tickets numbers contain a letter, I'm having trouble coming up
with a formula.
Thanks for any help!

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 to reach goal percentage of migrating customers MrsRose Excel Discussion (Misc queries) 0 November 17th 09 02:25 PM
Formula to sum up customers totals from other sheets Steve[_16_] Excel Worksheet Functions 2 September 16th 08 09:28 AM
Waiting... Rob Hargreaves[_2_] Excel Programming 1 August 7th 05 05:11 PM
Pivot table in HTTP-served Excel worksheet Gregg Excel Programming 0 January 23rd 05 06:15 PM
waiting Mark Kubicki Excel Programming 2 August 7th 03 09:08 PM


All times are GMT +1. The time now is 12:39 PM.

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"