Sum Of Week-to-date If Meeting Criteria
Nov 6, 2009
On the attached file, I would like the values from the Transactions worksheet to show up in the appropriate cells in the XYZ Expenses worksheet. The catch is, I would like the XYZ Expenses worksheet to only show the values from the past week. Past week could be literally, but I'm guessing that might not be possible and it would have to use the past week from the most recent transaction date - which would be fine. So if it worked right, XYZ Expenses > F7 would show -$80, which would be from Transactions H3+H6 (and not -$130, from Transactions H3+H6+H9).
View 3 Replies
ADVERTISEMENT
Sep 30, 2007
I cannot get my head around this loop, it has been a while since I did anything in VBA and am stuck. I have a list of trades on one sheet, would like to create a column that lists open trades as of that calendar day. Using Sheet(balance) column A as date range. What I am trying to do is test for condition if opening day is less than calendar day AND closing day is more than calendar day...then that trade is effectively open as of that calendar day...so would like to copy it with that calendar day in front of it.
Loop through sheet x and copy all that meet above criteria. Next calendar day, loop through all trades on sheet(x) again and copy etc...here is what I have so far, but I am afraid it is useless...
View 9 Replies
View Related
Feb 18, 2008
I've inherited a reporting process which I need to convert to Excel but my knowledge of excel functions is fairly limited. I've attached a sample worksheet which sets out exactly what I'm trying to achieve in the comments. However to summarize here I need to add the data which meets set criteria together and display the result on a different worksheet. The problem I'm having is that the "criteria" the data needs to meet is dependent on info from other cells.
For example I only the totals of the data in column D where the date in column A is 01/01/08 and the data in column E is 1 and the result is to be displayed on a separate worksheet if that makes sense. It's difficult to describe without seeing the example workbook.
View 3 Replies
View Related
Apr 4, 2008
I have a macro that hides rows in my workbook if certain criterias are met. I'd like to add a criteria to the logic that only hides rows if the date in cell 17 is less than 3 months from today's date. The date in cell 17 is shown in this format: 25-03-2008.
Sub ForceHide()
Dim ws As Worksheet
Dim line As Integer
Dim Endline As Long
For Each ws In Worksheets
If ws.Name <> " Total" And ws.Name <> "Batch" And ws.Name <> "Summary" And ws.Name <> "PivotTable" And ws.Name <> "Fields" And ws.Name <> "RTP" Then
With ws........................
View 3 Replies
View Related
Oct 1, 2006
i created a work sheet with the help of the wonderful people on this forum. my boss loved it! one problem they now want it to automaticly take out a date and time of the cells when the date rolls around again.
example:
12/25/05 late 00:20:06 when 12/25/06 rolls around they want the system to automaticly see it and delete it out with the amount of time they were late or sick ect.... or if the sup was out that day and comes in the next day the system will see that the date has past and will up date the info. the other catch is i need it to move everything up one space when it deletes somthing. i want it to read j18 and k18 as one and so through j and k 40 same for l and m n and o ect.... i attached the sheet
View 9 Replies
View Related
Feb 28, 2008
I'm trying to do a sumif based a range of dates but keep getting a "-" for the result.
In the past when using dates I've had to value the dates in order for it to work. I can't seem to figure out the formula this time around - any thoughts? See attached for sample - my 'broken' formula is in cell C29.
View 4 Replies
View Related
Jun 23, 2008
I want to count no of "yes" in Range Column B only if corresponding values in column A is less than 10/06/2008
Please see the attached file for refrence
View 5 Replies
View Related
Jan 19, 2010
I am new to VBA & not sure of the full understanding of code copied from a workbook which worked on the same principle but with Monthly (12) tabs. I thought if modified to show weeks, the macro would be able to locate the current week tab & day/date within - but upon opening, the cell stops at WK19 & column O - rather than WK43, Column N (which changes daily).
Sub Auto_Open()
week(1) = "WK1"
week(2) = "WK2"
week(3) = "WK3"
week(4) = "WK4"
week(5) = "WK5"
week(6) = "WK6"
week(7) = "WK7"
week(8) = "WK8"
week(9) = "WK9"
week(10) = "WK10"
week(11) = "WK11"
week(12) = "WK12"
week(13) = "WK13"
week(14) = "WK14"
week(15) = "WK15"
week(16) = "WK16"
week(17) = "WK17"
week(18) = "WK18"
week(19) = "WK19"
week(20) = "WK20"
week(21) = "WK21"
week(22) = "WK22"
week(23) = "WK23"
week(24) = "WK24"......................................
View 9 Replies
View Related
Jun 20, 2014
I'm working on a spreadsheet at work and I'm trying to sum only the values in a column that meet criteria in the column next to it. For example, in the attached spreadsheet, I would like to have a totals line at the bottom of the spreadsheet for all three Facilities and the total next to them. I know I could do a pivot table but I know this approach would be more aesthetic and easier for my supervisor.
View 3 Replies
View Related
Nov 12, 2012
I'm doing an assignment. This would be very simple w/ filters but I have to do it thru formulas.
I have a bunch of rows w/ various hotels. Row 14 is Rolling Meadows, Row 15 is Lakeview Apartments etc.
Near the top I have to add the number of times Rolling Meadows is mentioned, in the cell below Lakeview apartments, etc.
I tried a sumif formula but that doesnt work. How would you do this? This is what I wrote, I got 0
=SUMIF(B14:B26,"Rolling Meadows")
That's part 1. In part 2 I have to calculate the number of units in that building that are occupied.
View 9 Replies
View Related
Mar 26, 2013
we would like to get results from a formula that looks at several cells and provides the cost for a product.
Example
If we choose
Cell A3=Transport (from drop down list)
Cell A4=Entrance Facility (from drop down list)
Cell A5=Bandwidth (from another drop down list)
returns the cost for this product in cell A6
We would also like to restrict the lists to the different catergories: if transport is selected you only have the option of 2 of 5 facility types that will work with transport products. Do I need to separate my lists?
View 1 Replies
View Related
Oct 6, 2006
I need to get the sum of a column where two conditions have to be met. I have tried doing something like: Sum(Sum(AND(V1:V1500="BEBLT", H1:H1500=17) +-Sum(AND(V514:V1512= "NVLIV", H514:H1512=17)))
In a nutshell I want to find the difference between the sum of a column whose criteria is 17 and BEBLT and the sum of another column whose criteria is 17 and NVLIV. This has been extremely frustrating since I am using SQL commands to pull the info from the workbook. Typically I would use
"Select SUM(Z) from Sheet1$ WHERE (H1:H1500=17 AND V1:V1500);"
Unfortunately for me my SQL command brings back an error so I must resort to finding the total in excel and then using the command to bring it into my VBA.
View 4 Replies
View Related
May 27, 2007
I'm trying to use the SUmif with Offset, but the width argument of offset doesn't
seem to work within the SumIf function. I have 14 columns
A Employee
B department
C-N jan through dec salaries per employee per month
41 rows
1 titles
2-41 names of employees
now in May I want to know the salaries per department for the month may only, but also cummulative from jan up to may. Getting may per department works fine, but getting the cummulative doesn't seem to be working
=SumIf(B2:B40;"account";offset(C2;;4)) gives me the sum of department
Account in the month of May
=SumIf(B2:B40;"account";offset(C2;;;;4)) starting point zero (= january) plus 4
columns width, just gives me January.
I've tried several options, but every time he only sums 1 column. Without the SumIf it works fine but for the whole company, not per department ofcourse.
View 4 Replies
View Related
Jun 9, 2007
how a SUMPRODUCT function can resolve this. In this sample I want to have 1120-32188 & 1120-32188W be treated the same for the Total sum qty. In this case =10.
This will compute but how do I include items in column A that have 'W' suffixes for computing Total Qty? Formula: =IF(A2=A1,"",SUMPRODUCT(($A$2:$A$100=A2)*($C$2:$C$100)))
View 4 Replies
View Related
Aug 9, 2007
I have an Excel sheet with 3 worksheets. On the first sheet I want to enter a formula that will check the third sheet. On the third sheet I need to compare all the entries in column N with a value in Cell B2 of the front sheet. If these match then I need the formula to add up the relevant values in column N. (column N has a 4 letter code, I am only interested in comparing the first letter, as such the value in cell B2 is H*, then in column U it has numbers of minutes, I want a total of the minutes of all those entries with a code that begins with H)
View 4 Replies
View Related
Mar 27, 2008
What I have is 4 columns of data broken down as follows Column A = Date Range B = Name C = City D = Amount of People.
What I want to achieve is to be able to go through my list of data and for all rows that match specifically matches A,B,C it will total column D and output to a cell. I also need for it to reflect the name somehow .. so in attached example A2-C2 matches A8-C8 so I would need the output of D8 + A8 (which should be 54) but I need for this to some how reflect a name combination City + Name. So I would know that abc & California have 54 people and that def and New York have 56.
I have attached a basic spread sheet of data; keeping in mind that in the complete data there could be hundreds of combinations for data to be matched.
View 8 Replies
View Related
May 7, 2005
Problem:
Range A2:C10 contains the login and logout times of various ID's.
Each ID could log in and out a number of times a day.
How could we find the first time a specific ID logged in and the last time that same ID logged out?
Solution:
For each of the ID's in range A2:A10, enter two Array Formulas.
To find the first login time (Column B) enter the following formula:
{=1/MAX((A14=$A$2:$A$10)*($B$2:$B$10
To find the last logout time (Column C) enter the following formula:
{=MAX(($A$2:$A$10=A14)*($C$2:$C$10))}
ID______Login Time______Logout Time
1 ______02:40___________03:10
2 ______00:15___________03:20
1 ______06:20___________09:30
3 ______09:14___________11:05
4 ______11:00___________19:30
2 ______04:05___________06:55
3 ______12:08___________17:17
1 ______10:00___________16:20
2 ______08:12___________12:33
ID______First Login Time______Last Logout Time
1 ______2:40__________________16:20
2 ______0:15__________________12:33
3 ______9:14__________________17:17
4 ______11:00_________________19:30
View 9 Replies
View Related
Jan 1, 1970
I can get the result. It shows #num! in cell F2
View 14 Replies
View Related
Jul 25, 2012
A column W5:W9999 contains attendance from either of 0, 1, ........31 of employees.
How to count no of employees meeting certain criteria like:
Total no. of emp with values >0.
Total no. of emp with values >0 but < 16.
View 9 Replies
View Related
May 11, 2008
I have been having problems all morning and have not been able to solve it!
I am sure this is very simple....
What I would like to do is assign the result of a sum to a variable. This part is easy what I cannot fathom or find any help with is the multipule criteria bit!
Here is the detail.
Column A - Employee Number
Column C - Area
Column F - Type
Column D - Amount paid.
I would like to sum the amount paid based on the 3 criteria, Employee Number, area & type and assign this to a variable to be used later in a sub I'm playing with.
View 9 Replies
View Related
Apr 21, 2009
I want to write a sub that captures the existing lists in the attached file in two arrays then create two new arrays of customer names and amounts spent for customers who spent at least $500. After these arrays have been filled, I want to transfer their contents to the columns D and E.
View 3 Replies
View Related
Sep 28, 2006
im trying to set my workbook up so that it is updating itself daily. Currently it has about 4000 rows of invoices from multiple departments. What I want is a formula that when an invoice reaches 31 days that it goes to a separate worksheet. I don't want it deleted, I just want it to be moved in to a worksheet called 'WatchList'.
Any body know how this can be done. What Ive done right now only puts the row in the same row from the main sheet. So if row 2000 reaches 31, it shows up on row 2000 in 'WatchList'. Im wondering how I can move row 2000 to the top and whatever other row to the top once it reaches 31.
View 4 Replies
View Related
Nov 1, 2006
I would like to seek help on how to delete a cell that has data in it and that has colourfill. E.g. Cell A1 shows "Occupied" and Cell A1 has a blue colour fill.
Need help on how to delete that cell's data and remove the blue colour without having to manually do so.
View 4 Replies
View Related
Nov 24, 2006
Need formula to match C1 to Sheet2 E:E and return the corresponding value from F:F into C2.
View 6 Replies
View Related
Nov 30, 2006
I am trying to delete rows - based on 1 field in each row not being equal to ANY of the values stored in an Array. e.g. my array has 3 values, CAT,DOG,MOUSE
cells are:
A1 = CAT
A2 = HORSE
A3 = DOG
A4 = DOG
A5 = BIRD
i want to delete rows not containing CAT,DOG,MOUSE. I think the autofilter could be the trick but cant quite get my head around it.
View 5 Replies
View Related
Jun 8, 2007
I am trying to include a series of vlookups to find products by a product code from a database, an example is attached.
I want to type a code into the box at the top and find the results containting but not uniquely being the input.
eg typing 15 in automatically finds 15 using "=VLOOKUP(TRIM($C$6),'Main Database'!1:65536,2,FALSE)" but my database also contains 15eurd and 15rf etc and i want these to appear too.
can i do this with vlookups with some clause that excludes a previously chosen entry?
View 9 Replies
View Related
Aug 24, 2007
I have a table with characters in the cells (QC, PS and PK) - it is an employee scheduling table - to the far right on the table, I want to summarize the employee's hours by each type - each character (QC, PS and PK) represent 1/2 hour - i cannot figure out how to do this
View 5 Replies
View Related
Sep 3, 2007
Searching through hide/unhide topics seem to yield more complicated codes then my meager needs. Within my worksheet I have a column BD which contains a list of values,
ie:
BD
1
2
3
6
3
2
1 etc..
I've created a toggle button "HideRow", which I would like to use to hide/unide only the rows containing value "2" within column BD.
View 2 Replies
View Related
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
Apr 21, 2014
I have 2 columns of data in one sheet that list dates (say Master Dates) and transactions (say Master Transactions).
In another sheet i would like a formula that can choose the correct transactions that fall between certain dates (call Date Beginning and Date End) and generate a list.
i have tried this array:
If((Master Dates>=Date Beginning)*(Master Dates<Date End),Master Transactions,"")
Problem with this is when used in different columns for different date ranges there are large gaps in the generated list...
View 9 Replies
View Related