Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Counting columns, adding totals #2

Hi. Been working with this excel file that needs tweaking. The more tweaks
I add, the more the client wants. Which is a good thing<g

To restate: This xls file consists of 7 worksheets, one of every day of the
week. Each
worksheet has a 30 column section, each marked either [X] or [ ]. There's
one row for each employee, the columns represent their 1/2 hour schedule.

I'm using COUNTIF() at the top of the 30 columns. There's also a COUNTIF()
column for row totals, department sub-totals and grand totals. Neat!

This weekend I plan to add department summary sheets for each day of the
week plus a grand summary sheet. Again, neat! I still need a couple of
things:

1) The client wants a button next to each employee name. When you hit the
button, you'd get a dialog box asking for a start time-end time range. This
range would fill in all the [X]s needed for that row. I'm thinking a VBA
script?

2) The client also wants an employee summary sheet. A given employee will
work in different departments, depending on the day. Is it possible to
write a script to search all the rows of each sheet to find a particular
employee and add up this numbers? I can get the client to add an employee #
column next to their name, for uniqueness testing.

I really appreciate the help thus far. Thanks...Dennis

  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Counting columns, adding totals #2

#1 sounds like vba with input box. for #2 try using sumif
command with criteria being employee name or number.


-----Original Message-----
Hi. Been working with this excel file that needs

tweaking. The more tweaks
I add, the more the client wants. Which is a good

thing<g

To restate: This xls file consists of 7 worksheets, one

of every day of the
week. Each
worksheet has a 30 column section, each marked either [X]

or [ ]. There's
one row for each employee, the columns represent their

1/2 hour schedule.

I'm using COUNTIF() at the top of the 30 columns.

There's also a COUNTIF()
column for row totals, department sub-totals and grand

totals. Neat!

This weekend I plan to add department summary sheets for

each day of the
week plus a grand summary sheet. Again, neat! I still

need a couple of
things:

1) The client wants a button next to each employee

name. When you hit the
button, you'd get a dialog box asking for a start time-

end time range. This
range would fill in all the [X]s needed for that row.

I'm thinking a VBA
script?

2) The client also wants an employee summary sheet. A

given employee will
work in different departments, depending on the day. Is

it possible to
write a script to search all the rows of each sheet to

find a particular
employee and add up this numbers? I can get the client

to add an employee #
column next to their name, for uniqueness testing.

I really appreciate the help thus far. Thanks...Dennis

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Counting columns, adding totals #2

Dennis,

I would be very leery of adding hundreds? of buttons to a spreadsheet.
In addition, I would watch the workbook size and not let it become "too large".
Excel has a tendency to take either circumstance as an opportunity to become rebellious.

Consider using the worksheet before double-click event instead of multiple buttons.
The "target" cell could identify the employee name, the same as pressing a button.
Also, some dependable backup routine for the workbook would be mandatory.

Regards,
Jim Cone
San Francisco, CA

"Dennis Allen" wrote in message ...
Hi. Been working with this excel file that needs tweaking. The more tweaks
I add, the more the client wants. Which is a good thing<g

To restate: This xls file consists of 7 worksheets, one of every day of the
week. Each
worksheet has a 30 column section, each marked either [X] or [ ]. There's
one row for each employee, the columns represent their 1/2 hour schedule.

I'm using COUNTIF() at the top of the 30 columns. There's also a COUNTIF()
column for row totals, department sub-totals and grand totals. Neat!

This weekend I plan to add department summary sheets for each day of the
week plus a grand summary sheet. Again, neat! I still need a couple of
things:

1) The client wants a button next to each employee name. When you hit the
button, you'd get a dialog box asking for a start time-end time range. This
range would fill in all the [X]s needed for that row. I'm thinking a VBA
script?

2) The client also wants an employee summary sheet. A given employee will
work in different departments, depending on the day. Is it possible to
write a script to search all the rows of each sheet to find a particular
employee and add up this numbers? I can get the client to add an employee #
column next to their name, for uniqueness testing.

I really appreciate the help thus far. Thanks...Dennis

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
Adding totals from different columns Eskercat Excel Worksheet Functions 1 April 13th 10 03:06 PM
Adding totals in columns Tanya Excel Worksheet Functions 2 February 9th 10 06:56 PM
adding totals in a column, not counting repetitions in another col h20polo Excel Discussion (Misc queries) 1 June 6th 07 05:30 AM
Counting columns, adding totals #2 Dennis Allen Excel Programming 1 July 2nd 04 08:13 PM
Counting columns, adding totals Dennis Allen Excel Programming 7 July 1st 04 07:34 PM


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