Read up on Defining Named Ranges. I suspect this will answer what you are trying to do. This defines a Cell or Range of Cells to a given Name. You then use this name instead of the actual cell. eg Smith in place of Sheet1!$M5
Hi All
Need some help with design/formulas for a spreadsheet for work.
Purpose is to track productivity and is currently set up with a different week on each sheet. First column on each sheet is the employee's name. Column M contains the total for each week per person & column N contains their average daily output.
I want these 2 columns to tally up to a YTD summary page which will contain YTD output (being a sum of all column M) and YTD average which can be just an average of the weekly averages (excluding 0 weeks).
I can do this in a simplified manner by using =SUM('sheet1:sheet52'!M5). The problem is that I need to be able to alter the order of people through out the year as new employees start and other leave etc. Is there a way to make the 'M5' reference above reference the persons name in each sheet so it doesn't matter if their data is on row 5 always?
Thanks
Cameron
Read up on Defining Named Ranges. I suspect this will answer what you are trying to do. This defines a Cell or Range of Cells to a given Name. You then use this name instead of the actual cell. eg Smith in place of Sheet1!$M5
MY15 Discovery 4 SE SDV6
Past: 97 D1 Tdi, 03 D2a Td5, 08 Kimberley Kamper, 08 Defender 110 TDCi, 99 Defender 110 300Tdi[/SIZE]
I think you'll find that as you haven't fixed M5 by using the $ prefix, e.g., $M$5 or variations thereof, Excel will automatically take care of additions to the sheet.
Have you tried it?
Ron B.
VK2OTC
2003 L322 Range Rover Vogue 4.4 V8 Auto
2007 Yamaha XJR1300
Previous: 1983, 1986 RRC; 1995, 1996 P38A; 1995 Disco1; 1984 V8 County 110; Series IIA
RIP Bucko - Riding on Forever
I'll start by saying you should be using a database such as Access for something like this for the exact problem you are having - the data can become random by changing the order the employees are listed on the spreadsheet. A database doesn't worry about that sort of stuff, it just creates a new query (spreadsheet) according to your criteria.
It sounds as if your annual totals/ averages are going to include figures based on each employee (hence your concern about the order of the employee list). If so, you may want to base a formula on vlookup or hlookup which look up a value in a table (in this case name) and return a value from another column corresponding to the first value. In other words, lookup a value.
Have you considered using just one worksheet for the entire year? You'll have 52 columns of weekly figures, bur by freezing the screen on the employee name column you can scroll the values so the current week is always on screen.
Excel is very good at manipulating data, but lousy at storing it, so you should think very carefully about what you are trying to achieve before creating and populating the workbook.
HTH
As dmdigital says, use named ranges. A better way would be to write a macro to summate the data onto a summary sheet, in lieu of formulae referencing other tabs.
Hi
Suggest that you have a look at the use of Excel pivot tables to summarise the data.
These are the best thing going for the summaristion of data in Excel.
For pivot tables to work you would need to store the data in a single sheet with the data in a continuos series under headings such as:
Date,Employee Id, Employee name,Output.
A vlookup could be used to populate the Employee name field once the employee Id has been entered.
The pivot table based on data in this format can then easily summarise the data daily, weekly, monthly, quarterly or yearly.
Depending on the version of Excel you are using there is various levels of explanation on the use of Pivot tables in the Excel help files.
Thanks for the replies all. I would have added to this thread earlier but my computer got a bit fried last night in the storm here in Brisbane. Appears all the RAM is dead as is the graphics card. I'm hoping that Win 7 has some sort of disk check process following large BSOD as apart from the HD activity it appears the computer is now hung on the 'Starting Windows' page. Hopefully just the boot record and not the hard disk. Fortunately my 1999 model Toshiba laptop is still going (albeit v. slowly).
With regards to the spreadsheet I think going with the one sheet for the whole period seems best/easiest (sorry I can't see who suggested that as I'm running in 800 x 600 resolution) as the users of this sheet make me look like I'm Micrisoft certified! I'll test tomorrow but I suspect that if rows are cut & pasted or new rows inserted the data should remain consistent/accurate.
Thanks again
Cameron
| Search AULRO.com ONLY! |
Search All the Web! |
|---|
|
|
|
Bookmarks