Sumproduct (get The Number Of People "Occupied", "Partly Occupied" And "Available" On A Monday, Tuesday Etc Of The Current Week)

Oct 22, 2009

I'm having issues with sumproduct. I can't seem to get the right info that I need. Attached is the file I'm working on. Problem: I need to get the number of people "Occupied", "Partly Occupied" and "Available" on a Monday, Tuesday etc of the current week. "Occupied" means an employee has more than 2 tasks (based on New and Active-To-Date status). "Partly Occupied" means an employee is working on 2 tasks.
"Available" means an employee has NO task at all.

View 2 Replies


ADVERTISEMENT

Last Occupied Cell To The Left And Equal To Or Above Current Cell

Nov 22, 2009

I've been pounding away at a project for two days trying to determine a way to identify a solution, to no avail.

Here is some experimental code. Under the assumption that in Column "A", every fifth line contains some text (a, b, c, etc) I want to place a function in column B that would identify the closest occupied cell above and to the left of the cell containing the function. The sub achieves this, but the function has a problem because of the Activecell line. Is there a way to identify the location of the cell containing the function to act as a reference point for the range?

Sub find_last_heading()
Application.ScreenUpdating = False
x = ActiveCell.Address
ActiveCell.Offset(0, -1).Select
last_heading = ActiveCell.Text
Do Until last_heading ""
ActiveCell.Offset(-1, 0).Select
last_heading = ActiveCell.Text
Loop
MsgBox last_heading
Range(x).Select
End Sub
Function cathead(Optional reference)

Dim cell

View 9 Replies View Related

Add Column And Sum All Occupied Columns To Right?

May 23, 2013

I want to add a column and sum all occupied columns to the right I have tried the code below but the results I get in the cell is this: =SUM(F21:G21)+lc

'Move Header
Columns("F:F").Select
Selection.Insert Shift:=xlToRight

[Code]....

View 1 Replies View Related

If Cell A# Is Occupied Gray Out B#

Feb 14, 2007

How do I gray out one group of cells or cell if another is occupied?

View 9 Replies View Related

Formula To Obtain Current Week Monday Date

Mar 17, 2013

The portfolio team uses data that is refreshed every Monday. Write a formula to obtain the current week's Monday's date.

View 3 Replies View Related

Get The Brown Boxes On The Master Page To Change Colour Brown For Occupied And Green For Vacant

Oct 20, 2009

I am trying to get the brown boxes on the master page to change colour brown for occupied and green for vacant. I would like this to happen when I change the tennancy type in each tab B1,B2,B3 ect. I was trying to use name ranges to get this to work, But I seem to have stuffed it up.

View 5 Replies View Related

Counting The Number Of Occurrences Before The Current Week Number?

Jul 10, 2014

I have a spreadsheet for tracking jobs. Most everything is based off of week # rather than date. I am trying to get the stats page of the workbook to tally the total number of late jobs per week.The current week is taken care of because there is a function that automatically displays on time yes or no and I just set it to count the yeses or nos.The problem I am having is for past weeks.

I tried- =COUNTIF(Table2[On-time],"No"+(CountIF(Table2[Week # Hidden],"<Weeknum(Now())" but that doesn't work. I also tried isolating the < like this. =COUNTIF(Table2[On-time],"No"+(CountIF(Table2[Week # Hidden],"<"Weeknum(Now()) and that did not work either.

------ UPDATE

In response to using CountIFS I have also tried-

=COUNTIFS(Table2[On-time],"NO",Table2[Due Week '# Hidden],"<Weeknum(Now())") this just returns a zero value even when I have a late job listed three weeks ago.

View 10 Replies View Related

How To Set Monday As First Day Of Week

Jan 26, 2014

Outlook allows you to easily specify, but eExcel always treats Sunday as the first day of the week by default. Yes you can manipulate that within formulas and functions, but if you use the autofilter in excel and choose "this week" (or "next week", or "last week") excel considers Sunday as the first day of the week. I would like to know how (or if) this can be changed to Monday as the first day of the week.

View 5 Replies View Related

Return Monday Of Given Week

Feb 16, 2007

I have seen this before and once figured it out, but I have not had any luck this time. I'm looking for a formula that will reference a cell that contains a date and will then return the date of the Monday of the given date's week. If I gave it a cell that contained 2/15/07 it would return 2/12/07. Probably a simple question but I think I must not be working on all cylinders. =)

View 6 Replies View Related

Week Starting On Saturday Instead Of Sunday Or Monday? (formula Not Macro)

Feb 8, 2012

Can weeknum work with the week starting on saturday instead of sunday or monday?

if not, what are my options?

View 4 Replies View Related

6 Months Ahead If Falls On Monday If Not Next Monday Date

Sep 23, 2007

I am currently using this formula =DATE(YEAR(A1),MONTH(A1)+6,DAY(A1)) to get me 6 months ahead from a certain date. There is a new problem that has arose for me. I need a formula that will give me 6 months from a certain date if it falls on a Monday if the 6 months does not fall on a Monday then give me the next Monday date.
for example 6 months from 1/2/2007 is 7/2/2007 which falls on a Monday which is fine but, If the start date was 1/3/2007 this falls on a Tuesday so I would need the next Monday date 7/9/2007.

View 9 Replies View Related

Week Number Caluclating Hours For Week

Mar 6, 2010

I have a running time sheet daily. It has 2 columns for Labor and 2 columns for travel
i.e. travel From / To 1300-1400 calculate 1 hour then travel home 1600-1700 1 hour this is calculated by the date entry 01/02/10 I have another calculation that tracks by the date i.e. 01/02/10 then Next job which all works fine.

The problem becomes how do I calculate a weekly total labor and travel by the date So added another column called weekly hour’s labor and use the Weeknum to determine which week is which day/date so the first Monday in January 2010 is week 2

2 problems
Having many multiple day / date entries are the same date x 7 days Monday –Sunday
(Relies on the date entered and the weeknum) 01/03/10 each line is complete however the dates carry over as does the time

When trying to calculate each row x 3 same date time then the value will be incorrect I need to calculate
Say 9.5 hour labor from the date 01/03/10 not 28.5 hours and then calculate the total weekly hours
01/03/10, 9.5 hours labor, 3 hours travel
01/03/10, 9.5 hours labor, 3 hours travel
01/03/10, 9.5 hours labor, 3 hours travel

i do have work and travel times for each job on the same line (separate columns) but I display the total here by date to summarize the totals
i have tried sum products and sumif to avail. I am using Windows XP SP2 with MS Office 2007

how do i calculate weekly hours by date and weeknum ?

Total Work per day

Total Travel per day

Daily....................

View 9 Replies View Related

Current Week Beginning And End Date

Apr 20, 2009

Is there a snatch of macro that can assign two variables with the date for the beginning and ending date of the current week?

I need
A= 4-19-2009 12:00AM
and
B=4-25-2009 11:59 PM

Based on the current week being week 16, with the variables changing as the weeks progress.

View 9 Replies View Related

Maximum Number For Apple Sold On Monday

Dec 4, 2011

I have a table and I want to find out the what is max number for Apple sold on Monday.

FruitsQtyDaysApple20SaturdayApple50SundayApple100MondayApple500MondayApple20
MondayMango50MondayBanana640FridayMango30FridayGet MAX ForApples on Monday500

View 9 Replies View Related

Head Count: If It Is Greater Then 7 Then It Would Be 1 For Current Week

Aug 20, 2007

Currently having problems getting correct head count. I have formula that works for rows 6-8 but fails in row9. The should be answers are in rows 17-20.

Conditions used in formula
*Start date > Start FY =0
* Current Week > End Date =0
* End Date < Start FY =0

The date difference is divided by 7 because there are 7 working days in a week. If it is greater then 7 then it would be 1 for current week. I tried zipping the file but I could not shrink it to required size. find on weblink below: http://maxupload.com/E759C9D9

View 4 Replies View Related

Highlight Rows Of Current Week Line Items

May 9, 2014

I have a running list of to-do items sorted by date due (the dates are in the "C" column and start at row 9 to make room for some title info.)

VBA code that would highlight the rows of items that fall in the current week or next 7 days, whichever is easier.

View 10 Replies View Related

Worksheet That Includes A Cell That Gives The Current Week Of The Month

Nov 3, 2009

I have a worksheet that includes a cell that gives the current week of the month, in the form of "Week #". I've been using the formula below for several months and have had no issues until this month, and it's driving me crazy.

Given that cell D2 is the beginning of the week (usually Monday, but at the first of the month it may be a different day):

="Week " & ROUNDUP((DAY($D$2)+WEEKDAY(DATE(YEAR($D$2),MONTH($D$2),0)))/7,0)
I'm not sure where the logic is going wrong here; it's worked so well up until now. For the week beginning November 2, 2009, the formula above returns "Week 2" rather than "Week 1".

View 9 Replies View Related

Count The Number Of People Under Each Class

Jul 4, 2008

I want to do is to count the number of people under each class, eg. 2300 - primary, 3 ppl, but i gt many many classes in my spreadsheet, do u all have solution for me using VBA

SAMPLE DATA:

2300 - primary
amy
ben
alex

1234 - secondary
Linda
tom
Jerry
Tricia
Mabel

5603 - advanced
Linda
tom
Jerry
Kevin
Calvin

View 9 Replies View Related

Track The Number Of People From Each Zip Code

Jun 28, 2009

I have a workbook with a sheet for each day of the month where guest information is entered. There is a column for each item. There is a summary sheet that summarizes the number of members, guests etc. One thing I would like to track is the number of people from ech zip code.

View 9 Replies View Related

How To Insert Date Range Automatically Which Is Referring Current Week

Mar 6, 2014

i got a problem with date range.actually i wanna to insert date range automatically which is referring current week.

View 2 Replies View Related

Excel 2013 :: VBA Macro For Selecting Current Week Range

May 30, 2013

I currently have this beast of a code running in Excel 2013:

HTML Code:
Sub OBTAIN_RAW_DATA_MACRO()
Dim NextCol As Long

'Copy data
Workbooks.Open Filename:= _

[Code] ........

However the issue lies in that once the data is refreshed, the slicers reading off the above raw data/pivots, automatically select all weeks, however this is not beneficial for the data being presented.

Is there anyway to have, once the Pivots have been updated, for the macro to then check and select current week range (beginning Monday) only?

View 4 Replies View Related

Count The Number Of People Per Classification Between Two Dates

Apr 21, 2014

Count people per their classification between two dates. Spreadsheet attached.

The answer I need to show in column (S) is:
Cell (S4) = 1 (supervisor)
Cell (S24) = 1 (fitter)
Cell (S36) = 3 (rigger)
j906 count.xlsx

View 1 Replies View Related

Counting The Number Of Extra People Working Each Hour?

Aug 19, 2014

I am trying to count the number of extra people scheduled for each hour of the day, from 2 dropdowns in A3:B7

The formula in (1) D11:D26 works, but when the shift passes over the midnight it will not count accurately.

The formula in (2) E11:E26 also works well, but only counts the number of times a particular hour is mentioned, but not the number of extras in C3:C7.

The results in (3) F11: F26 are what I need, which is based on looking at the times from the dropdowns and using the number of extras in C3:C7.

View 2 Replies View Related

Counting Number Of People In Each Class And Taking Tests

Nov 18, 2011

Formula that counts the number of people who are on my course and are taking their tests.

I have 5 classes, Class1, Class2, Class3, Class4 & Class5.

Column A details which class the pupil is in.

Column B details the pupils name.

Column C details the state of the course. This is either a DATE which they started, or "Paid" (they have paid for the course but not started), "Not Paid" (havent paid for course and havent started) or "In Progress" (Payment is in the process of being arranged).

Column D details the state of their final exam. This is either a DATE as to which they have finished and passed the exam, "Not Taken Yet" (Havent taken the exam yet) or "Fail" (They failed the exam).

This is where I am having problems, at the top of my sheet I want to summarise each classes statistics, but I am having problems with the COUNTIF. For example:

What formula can I use to add up the number of people in each class who have started the course?

E.g.
=countif(C10:C100," Is a Date ? ") AND is in Class1 ?

What forumla can I use to add up the number of people in each class who haven't passed the test ?

E.g.
=Countif(D10:D100,"Not Taken Yet" & "Failed") AND is in Class2 ?

I know I need an array to work this out.

And finally to really complicate things how about :

People in each CLASS who have STARTED the course (Date in C) AND haven't passed their test (Col D). I understand this is relying on a three part array whereas the others are 2 parts ?

View 7 Replies View Related

Formatting Date: Add The Month And The Text "Week" Before The Week Number

Nov 24, 2009

I have a column where I am convering the Date into a Fiscal week number.

For example 10/6/2009 is Work week 41
Now I want to show October Week 41

I need to add the month and the text "Week" before the week number. what is the formula I use.

View 3 Replies View Related

Hyperlink Address Partly On Cell Content

Oct 16, 2007

-> In Excel Cell L4 to L9999, I would like to have Excel have that cell Hyperlinked of a Google search of the contents which were entered in that cell. (or, if that same cell can't be Hyperlinked, then a neighboring cell is OK)

-> So, for example, if cell L4 contained the word: "testing",
I would like to be able to click on that text in the cell to open a browser and take me to: [url]

...I hope this can be done without writing a macro (maybe by a formula instead?) BUT, if it's the only way of doing it, then yes, please, in that case, I would LOVE to know how to write/enter the macro.

View 8 Replies View Related

Create Macro That Filter Date In A Column From One Week Previous Till Current Date

Mar 14, 2014

I have an excel sheet wherin there is a column that has the data where in the dates are displayed and many other columns.

I get this excel every Thursday so i want to filter this date column in such a way that it give me the data related to the date of the previous week only yet there is a catch here. When i say previous week i mean.

Suppose today is 03/14/14 then i want the data from 03/07/14 till today ie Last week friday to this week full( so cant use Current week option) and then paste it in a new sheet.

I tried the Record part but in that it is taking a hard coded value as i am selecting the date myself. I dont want to change the date manually every time.

this was the macro that was created

Code:
ActiveSheet.Range("$A$1:$BX$58").AutoFilter Field:=1, Operator:= _
xlFilterValues, Criteria2:=Array(1, "3/10/2014")
Range("A59").Select
ActiveCell.FormulaR1C1 = "=COUNT(R[-4]C:R[-1]C)"
Range("A60").Select

View 8 Replies View Related

Conditional Format "birthday" For Current Week

Jul 12, 2009

I currently use the following formula in Conditional Formatting to highlight a persons birthday:

=$R1=DATE(YEAR($R1),MONTH(TODAY()),DAY(TODAY()))

which changes the colour of the cell on their birthday. However, I need to amend this formula so that the highlighting applies to the current week, as in Sunday thru to Saturday. My amendments have not been successful and you cannot use the WEEKNUM function in conditional formatting for some reason!

View 4 Replies View Related

Get Next Tuesday Based On A Date?

May 13, 2014

I have the formulas below that work great. The issue is they are all based on Today. I need them to read cell B2 and base them on that instead of today.

Example: Today is Tuesday 5/13/14. So if I put in =TODAY()+7-WEEKDAY(TODAY()-6) it will give me this coming up fridays date 5/16/14. Perfect.

I want to add something to that so it looks at B2 instead of today, so if B2 had 6/16/14 (falls on a Monday) as a value it would give me 6/20/14(that is the next friday after 6/16/14).

Sunday =TODAY()+7-WEEKDAY(TODAY()-1)
Monday =TODAY()+7-WEEKDAY(TODAY()-2)
Tuesday =TODAY()+7-WEEKDAY(TODAY()-3)
Wednesday =TODAY()+7-WEEKDAY(TODAY()-4)
Thursday =TODAY()+7-WEEKDAY(TODAY()-5)
Friday =TODAY()+7-WEEKDAY(TODAY()-6)
Saturday =TODAY()+7-WEEKDAY(TODAY()-7)

View 2 Replies View Related

Take Average Between First Tuesday Of Every Month?

Jan 28, 2014

I have a list of dates in Col A, then data in B. I want to take an average of the data between the first Tuesday of every month. What's the best way to do this?

So in Jan 2014, that would be all data from the 7th until the 4th. Inclusive of the 7th, not inclusive of the 4th.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved