Excel vba: Ressource planner for project based working - excel

I am trying to build a resource planer for project based working in Excel.
Each project has its own sheet. The first sheet displays the hours worked each week of the year for each employee. On all the sheets the employees are set in the same rows as on the first sheet but depending on the start date of the project the weeks are different. I would now like to sum up all the hours for each employee for each weak in the first sheet to get an overview of the weekly workload.
My thinking was to take one employee (e.g row 7) and take the first week (declared as the starting date of the week in the row 4 starting in column B) and check each sheet if this date is on it in row 4 and if so take the entry for the employee in row 7 and add it all values up. This must be repeated for about 25 employees so 25 rows and a changing number of projects (sheets).
I have no experience in vba so I would be glad for any help with any part of this.

Related

Matching cell and copying range

need some assistance here.
Ive got two sheets, one is a yearly report the other is a weekly report. I have a column with employees names entered on each row, and rows with dates from the 1st of jan to 31st of December across the first row (B1 to B366). Each day is a different column. Underneath each date i have a different amounts made per employee (A2 to A12).
On the first sheet I would like to select a specific start date and from that specific date i need to extract 28 days of the data that follows over to the monthly sheet. Im quite new to excel and i cant get it right. If anyone can help that would be appreciated.

Excel - Total cell from certain worksheets in same workbook

I know I can do this in vba but I am trying to see if there are formulas I can use so I do not have to have a macro enabled workbook.
I have a workbook that contains a monthly tab (named MONTHLY), a week tab for each week (named week 1, week2, etc) and a day tab for each day (named d_20200601, d_20200602, etc). (note there will be an unknown number of week tabs and day tabs).
I am trying to total up the days in the week tab and total up the weeks in the month tab - but since I will not know how many week and day tabs there will be, I need to include all the ones that start with "week" and "d_". I can do this in vba, but I wanted to know if anyone has coded something similar with out vba.
Also of note, since the day sheets are added daily and the latest day is at the end, the week 1 sheet will contain the total of the first 7 day sheets, week 2 will be the next 7 and so on.
As per BigBen,
You could setup your sheets like this:
This will work for Jan & Feb totals with formulas like this: =Sum(JanStart:JanEnd!A1)
However you can't use a sum to get the Yearly totals you would have to do a =Jan!A1+Feb!A1...
However if you rearrange your columns like this:
You can now get your yearly totals with: =SUM(Jan:JanStart!A1)
You can also eliminate some of the helper sheets as you Don't need End of Month sheets since you can total from JanStart:FebStart!A1, etc., to get the Month totals.
HTH

Count the number of Sick Days (Denoted by "S") for each employee

so I have created a leaver tracker for our employees in an excel file.
Background: Each sheet represents each month (ie: Jan, Feb, Mar, etc.) which includes the following information:
** Note: This file is a template I downloaded from Google.
I have created another sheet which outlines the following: Note: these are sample data.
Question: What formula can I use to count the number of Sick Days (S), Annual Leavel (H) and Half Days (HA) separately for all 12 months across all sheets with 1 formula?
If I understand well, you can do this:
Without macro
Write a first sum formula in each sheet (after the last day)
In your Dashboard, write a sum formula from the previous sheet formula
or:
Write a marco to do it

Convert date in Excel to its respective week of the month

Hopeful you can help me out.
I have an Excel spreadsheet open. The spreadsheet has two columns that I need assistance with.
The first column are dates and times that reflect a ticket that opened. The second column reflects dates and times that a ticket closed.
I am needing to correlate all the dates of which every ticket opened and closed to its respective week of the month. So if I have 20 tickets that opened up between the days of 2/22/15 - 2/28/15(all these dates are in the same column fyi...), then I will be needing to somehow correlate these tickets in my spreadsheet to some form of data to be used in a line stack chart.
An exec has laid this on my lap. I don't look useless and I would like a little assistance as to how to perform such a task. Formulas in Excel...Vlookup....or using Pivot Tables....please assist!
convert date in excel to its respective week of the month
in conjunction with the date range example:
=INT((DAY(A1)-1)/7)+1
In column 3 use the =Weeknum(A1, 1) formula to get the week number of the date in column a. The second argument lets you determine what you want for the beginning of the week to be.
In column 4 do the same for column b. This will give you the week ticket opened/closed respectively. Add column 5 to be the difference in weeks which can be used in a pivot table to show the distribution of tickets and weeks to resolve, etc.
Reply back if you have further needs.
Firstly get the week num of the first day of the month -1
A1 = 01/02/2018
B1 = =WEEKNUM(A1)-1
Then calculate the individiual ticket week numbers and take the week number before the first week of the month away from the returned value. You may need to format the cells as numbers as some reason Excel thinks its a date
Open Week = =WEEKNUM(OpenDateCell)-$B$1
Close Week = =WEEKNUM(CloseDateCell)-$B$1
Representative Image:

Find all parts in Sheet1 that have value > 0 for days production

I have a Gigantic excel workbook at the company i work for to schedule the daily production. I am attempting to make it easier for the fabrication dept to know exactly what parts they need each day.
Sheet1 dates (aug1 - oct 23) in row 1 starting in column b and a list of parts in column a from row 2 to row 3000.
In sheet 2 I would like the fab dept to enter the date in A1 and then a list be generated showing the parts and how many of that part match for the day entered, but to exclude parts that are empty.
I'm really lost. I am a programmer of many languages but never really do anything besides a basic IF or VLOOKUP in excel.

Resources