Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Add shifts worked on a second worksheet

Hello experts! I have a new challenge. As I've said in the past, I'm not an
Excel expert, but I know enough to be dangereous (or screw things up;
depending on how you look at things)
I'm working on a crew schedule that is a 24/7 work schedule. The actual
schedule is on one worksheet, but I need to count crew shifts for each person
(they are 'rewarded' after working X amount of shifts.) The problem, is
these people are often moved around the worksheet from "Alpha" crew to
"Bravo" crew and don't necessarily stay in the same row every month. Each
schedule is worked monthly, and the # of shifts worked are added up on the
main page.
I'd like to add another worksheet, and add the current month's shifts to the
amount of shifts previously. I'd then copy the shift count worksheets to the
NEXT month's schedule.
In other words, what I have for the Aug Schedule:
In C7 I have "Bob", then in D7-AG7 I have his schedule, and AI7 is his
monthly shifts total
What I want to do in my added worksheet is create a formula that says if the
COLUMN C has "Bob", then take the number of shifts in the applicable cell in
Column AI (because Bob won't always be in row 7)
Does that make sense? I'm trying to create a running talley of shifts
worked each month and keep adding them together.
If these people would stay on the same crew I'd have it licked (darn it)

Please help me look "smart" :-)
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Add shifts worked on a second worksheet

The best way to search a name in a list is to use the functions MATCH or
VLOOKUP. MATCH returns the row of the first found name, while VLOOKUP returns
the value on the same row and on the nth column of the range.

So in your case, I would use VLOOKUP("Bob",C2:AI207,33,0). 33 is the 33th
column from C, which means AI. Adapt the range length C2:AI207 to your needs.
You can also replace "Bob" by a cell reference, of course. And last comment,
the final 0 means that the range is unsorted, slower but it may be better
adapted to your needs.

Stephane.

--
Message posted via http://www.officekb.com

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
End of month help with shifts MijC Excel Worksheet Functions 2 February 28th 07 09:47 AM
extracting names, shifts dept from excel worksheet CJ Excel Worksheet Functions 1 December 15th 06 06:41 AM
More column shifts ... fak119 Excel Discussion (Misc queries) 1 May 29th 06 03:50 PM
Set up schedule for 3 different shifts Tina Excel Discussion (Misc queries) 0 April 27th 06 09:06 PM
Excel shifts to wrong worksheet automatically Tom77 Excel Worksheet Functions 1 February 24th 05 08:10 PM


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