Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Totalling data used in drop down boxes?

I am creating a basic diary and have a drop-down box with all of the possible
people who could be booked into a particular day. I select the name from the
drop-down box but is there any way of totalling how many times that user has
been selected from the drop-down box?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Totalling data used in drop down boxes?

This assumes your data validation cell in H3, your NAMED list is k1:k??
Right click sheet tabview codeinsert this. Now when the validation is
selected the count for each choice will increase in col L.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$H$3" Then Exit Sub
mrow = Range("mlist").Find(What:=Target, after:=Cells(1, "k"), _
LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False).Row
Cells(mrow, "L") = Cells(mrow, "L") + 1
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"ihrod9" wrote in message
...
I am creating a basic diary and have a drop-down box with all of the
possible
people who could be booked into a particular day. I select the name from
the
drop-down box but is there any way of totalling how many times that user
has
been selected from the drop-down box?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Totalling data used in drop down boxes?

Hi,

Do you have a single drop down or many (for each day, for example)? Are you
trying to count how many times a given name has been picked from any of these
drop downs or just one? If a name is picked once from a specific dropdown
say for Jan 1, 2009 but you change your mind and clear that name, do you
count it or not?

Do you want to track this between closing and opening the file or just while
the file is open?

Thanks,
Shane Devenshire

"ihrod9" wrote:

I am creating a basic diary and have a drop-down box with all of the possible
people who could be booked into a particular day. I select the name from the
drop-down box but is there any way of totalling how many times that user has
been selected from the drop-down box?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Totalling data used in drop down boxes?

I've got the desk number (that is what i'm booking in this case) along the
top (A, B, B) i.e desk 1, desk 2, desk 3, then the time down the side in 30
minute blocks (1, 2, 3).

I then have drop down boxes in each of the fields (i.e A1, A2, etc) with the
names of the possible people who can book the desk.

I want to know if I can somehow total how many times that name has been used
from the drop down box in the table if possible.


"Shane Devenshire" wrote:

Hi,

Do you have a single drop down or many (for each day, for example)? Are you
trying to count how many times a given name has been picked from any of these
drop downs or just one? If a name is picked once from a specific dropdown
say for Jan 1, 2009 but you change your mind and clear that name, do you
count it or not?

Do you want to track this between closing and opening the file or just while
the file is open?

Thanks,
Shane Devenshire

"ihrod9" wrote:

I am creating a basic diary and have a drop-down box with all of the possible
people who could be booked into a particular day. I select the name from the
drop-down box but is there any way of totalling how many times that user has
been selected from the drop-down box?

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
Drop down boxes/tick boxes Jane Excel Worksheet Functions 2 October 28th 08 04:02 PM
Data Validation & Drop Down Boxes Sidney Bruce[_2_] Excel Discussion (Misc queries) 2 June 15th 08 07:33 PM
data validations - drop list boxes TLBauer Excel Discussion (Misc queries) 2 March 9th 08 05:52 PM
Data Validation drop down boxes, retreiving numbers MDH Excel Worksheet Functions 2 November 16th 06 12:56 AM
advanced: synchronizing data value across two worksheet drop boxes mdhokie Excel Worksheet Functions 1 October 6th 05 08:46 PM


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