Sum Across Worksheets To Include New Sheets
May 18, 2008
A colleague of mine maintains a spreadsheet with a worksheet of data for each month labeled "Apr'07", "May'07", "Jun'07", etc. He then has a summary worksheet that gives summaries of the various data fields on the monthly sheets. Currently he has been using the kludgy method of listing each cell to be summed. (e.g. " SUM('Apr'07'!A2,'May'07'!A2,etc.) Since he is dealing with a summary of about 200 rows by 15 columns this is a big pain to maintain. My first thought was to set up his formulas as a range of sheets rather than naming each; E.g. SUM('Apr''07:Jun''07'!A1)
Then I thought that rather than having to update each formula when he adds a new month, he would be better off having two cells that control the start and end sheet and having then feeding them into the summary formulas using the INDIRECT function.
However, try as I might, I can't seem to get the INDIRECT formula to work. In the attached example spreadsheet I have set up B1 and B2 to hold the names of the start and end worksheets, respectively. So my attempt at an Indirect Sum formula is the following: SUM(INDIRECT(" ' "&B1&":"&B2&" ' !A1"))
(Note: spaces added between " and ' for clarity) When I look at the formula evaluator it evaluates to SUM(INDIRECT("'Apr''07:Jun''07'!A1") and then generates a #REF error. What am I doing wrong here? I'm open to all suggestions of fixes to this method or an alternate method that would achieve the objective of performing calculations on cells across a dynamic range of worksheets.
View 5 Replies
ADVERTISEMENT
Jun 2, 2008
how do i create a sheetsarray to include all sheets between First and Last? I plan to loop through each sheet in this array to copy data to a summary page, as per [url]
View 9 Replies
View Related
Oct 25, 2007
how I would add in code to sort the worksheets from A-Z. Also, Ideally, I would like to hide the template sheet that the new records are copied from. Is it possible to add code that would unhide the resulting worksheet once it is copied and renamed? I am learning loads from this forum, so thank you once again. Here is the code in it's current state:
View 5 Replies
View Related
Apr 2, 2014
I need the values that are copied from the template to copy over in text form from the "Data" Tab. Secondly, the master sheet has multiple lines for each vendor. For the area highlighted in red I'd like for it to copy all cells in column C for the vendor and search the vendor by name. Then, move to the next sheet.
View 10 Replies
View Related
May 26, 2008
I have three sheets: On sheet 1, I have a list of products ( Down ) with Bought and sold info by time period ( Across ). On sheet 2, I have the same list of products from sheet 1 ( May not be in the same order ) with " Attributes " associated to them ( e.g. male, female etc ). On Sheet 3: I would like to add the Bought and sold info by time period on sheet 1 by attribute as per sheet 2
View 2 Replies
View Related
Sep 3, 2006
Is there a way to use the Find tool (Ctrl + F) to search across multiple tabs (they may be called worksheets) in a single workbook?
View 2 Replies
View Related
Oct 31, 2006
I'm tring to create a newsheet and rename the codename but it doesnt seem to be working. Here is my
Private Sub Update_Button_Click()
AddYear = YearBox.Value
WFName = "WF Tracker SITE " + AddYear
wf = "WF_Edin_" + AddYear
Sheets.Add After:=WF_Template
ActiveSheet. Name = WFName
Sheets(WFName).CodeName = wf 'This line wont work
End Sub
View 9 Replies
View Related
Jun 13, 2008
I need to Autofilter across many sheets. I have found some examples on doing this such as..
Autofilter Across Multiple Sheets
But I need to take it a step further. Autofilter several Worksheets (skip blank ones - the above link gives code that bombs when it sees a Worksheet with out data.) Then copy those results to a 'summary' page.
So...
1. Autofilter all Worksheets / skip blank ones
2. Show results of all Worksheets on summary page.
View 3 Replies
View Related
Dec 5, 2013
I found some useful code for copying specific worksheets into a new workbook based on the sheet name, which I have not been able to alter to suit my needs.
I have a workbook that has a Master Sheet that contains a summary of each claim (Name, type of claim, dates, dollar amounts, etc.) and a sheet for each specific claim.
I know I can use the filter feature on the master sheet to view all of the physical damage claims (and one column has a hyperlink to the worksheet for that specific claim). But every month I have to create a report that shows each type of claim, dates, and so on.
I would like to create a macro that can copy the worksheets to a new workbook based on the type of claim it is. I'm thinking something like for each ws in wb if range ("F15") = 1 & .range ("B4") < 30 days from today copy that sheet into a new wb.
Below is a generic and far smaller version of my workbook. The name column contains my hyperlinks to the specific sheet. Each sheet is also named based on the text in the name column (so John Doe's sheet would be named 'John Doe') and so forth.
Date of Loss
Name
Cargo
BI
PD
Paid
Reserves
[Code] ........
View 1 Replies
View Related
Aug 9, 2006
whenever you want to delete a sheet, excel would prompt you to ask you if you are sure you want to delete the sheet. im making a vba so that the sheets will delete upon workbook close, but i dont want to be prompted everytime to be sure to delete it when running the vba macro. Also, i would like to avoid being asked to save any changes to my workbook
View 2 Replies
View Related
Oct 5, 2006
I have a sheet that I protect but i use the below code so that I can still use my gouping '+' or '-' symbols to hide/unhide rows.
ws.Protect Password:="PASSWORD", userinterfaceonly:=True
ws.EnableOutlining = True
This is ok but When close the workbook and reopen it, my sheet becomes fully protected and i cant use the group icons. Can anyone either suggest better code or a way to initilise the workbook to act in this way when it loads up. For Reference Below is my full
Sub ProtectAll()
Dim ws As Worksheet
sSheet = Control.Name
For Each ws In ThisWorkbook.Worksheets
Select Case ws.Name
Case sSheet1
Case Else
ws.Protect Password:="PASSWORD", userinterfaceonly:=True
ws.EnableOutlining = True
End Select
Next ws
End Sub
View 2 Replies
View Related
Mar 25, 2014
I have what is probably a simple request to all the VBA experts out there, and simply want to take a template sheet in a workbook and copy it across to 100 sheets numbered/named 101 -200, and add the name of each sheet as a text reference, e.g. sheet name 101 will have a cell within the worksheet that refers to sheet 101.
I have attached a simplified spreadsheet which indicates what i'm trying to achieve.
View 7 Replies
View Related
Jul 18, 2014
I made the following code to merge 2 workbooks together.
The code is to be executed when the user has Workbook A opened. (All sheets in workbook KPISWD are supposed to be moved after all worksheets in workbook KPICustomers).
I keep getting a debug error on the code that is supposed to do the actual move and loop until it is finished with all of the sheets in Workbook B.
Code:
Dim KPICustomers, KPISWD As String
KPICustomers = ActiveWorkbook.Name
Workbooks.Open Filename:= _
"W:FacturatieKPI per periode SWD.xls"
KPISWD = ActiveWorkbook.Name
[Code] ..........
View 3 Replies
View Related
Jun 20, 2013
I want to sum number values in a column. I have used "=SUM(C4:C100)" and it works a treat. Now the twist. I have an adjacent column (Column D) and only want to add values in Column C, where a corresponding value is in Column D on the same row.
So for example if I have C5 as $1000 and D5 as 13/5/13, I want to include the $1000 value in the sum of Column C. However, if I have C5 as $1000 and D5 as blank, I don't want to include it in the sum.
View 3 Replies
View Related
Jan 29, 2007
At the moment I am using the formula
=IF(AND(B3>C3,D3,E3,F3),"eat less","eat more")
I want it to show me that if B3 is bigger than any of the other cells that you should "eat less". It works if a number is entered into every cell, but if a 0 is entered into one of them it comes up with "eat more" when it should be "eat less"
View 9 Replies
View Related
Jul 14, 2009
How can you return a Vlookup as a true value in an If statement? For example
View 2 Replies
View Related
Feb 3, 2010
how can I total three columns together, one with the value of #N/A, and two with figures in, without the total coming back as #N/A ?
View 10 Replies
View Related
Oct 8, 2009
I have the below macro designed to display a message box if a cell in the range specified is greater than the value in the designated cell (BF7). In the message, I'd like to include the value for the cell in another column, from the same row as the cell that met the condition.
For example:
Cell E11.........Cell BF11........Cell BF7
Mark....................1.......................0
What I want the message box to say: Mark worked too many days.
I understand how to include a cell value like so:
View 2 Replies
View Related
May 20, 2008
currently I'm working as project manage for a software development studio and I am using MS project for all my work. Since the development team aren't aloud to have a MS project license on their PC I have to copy their tasks from MS project and put them into Excel.
I would say that I am okay using Excel but not an expert. I want to create a formula that uses NETWORKDAYS to determines a finish date from a duration and start date.
The headers I would use for each column are Duration, Start and Finish. So I would like to be able to get a team member to put a duration down i.e 1 day and give me the start day and in the finish date it produces a finish date automatically without including Bank Holidays and Weekends. What would the formula be for that?
I have the same question as Madball and was able to work out the Worday function, however for my company, we work on Saturdays and or Sundays sometimes.
I would like to be able to specify from line to line if Saturday or Sunday needs to be included in the duration calculation resulting in a finish date, however if I can simply get one formula to work that includes Saturdays alone (most common working day of the weekend, and do work more than don't) it would be the most helpful, I think I can get it adjusted from there.
View 12 Replies
View Related
Aug 19, 2013
I'm trying to include 3 arguments in my IF statement:
If Q40 is Yes, and if P40 is No or blank, then new. I tried the formula below but it didn't work.
=+IF(AND(Q40="Yes",IF(OR(P40="No",P40=""),"New",0)))
View 3 Replies
View Related
Jan 17, 2007
I am trying to include two conditions into this IF statement.
=IF(ISBLANK('SHEET1'!W8),0,1)
I want to include the cell X8 in this aswell.
View 9 Replies
View Related
Jan 31, 2007
In the following formula I'm looking for MONTH 1 (January) and WEEKDAY 1 (Sunday):
=SUMPRODUCT(--(MONTH(Sheet1!$A$2:$A$6936)=1),--(WEEKDAY(Sheet1!$A$2:$A$6936)=1),--(Sheet1!$D$2:$D$6936=$D2),Sheet1!E$2:E$6936)
is it possible to find MONTH 1 and 2 (Janauary and February) and use the rest of the formula as is? Can the same thing be done looking for MONTHs 3,4,5 or months 8,9,10,and 11?
View 9 Replies
View Related
Jan 13, 2006
Does anyone knows how to calculate if translator is free or not, regarding that weekends are free ( I mean if weekends are free how to check if translator is able to translate a document)
View 9 Replies
View Related
May 9, 2007
I would like to include a message within this VBA code, not sure of the code to use.
ActiveSheet.SendMail recipients:="dan@aol.com", _
subject:="Your inputs are due", _
returnreceipt:=True
End If
View 6 Replies
View Related
May 7, 2008
My Excel VBA application needs to communicate with 2 XML files. Instead of compressing these XMLs with the Excel file in a Zip file, and send them to the client, I would like to include them inside the Excel file.
This way, I will only send the .xls file (the 2 XMLs will be included inside).
View 3 Replies
View Related
Apr 14, 2014
If have very simple =IF function, =IF(F4=H4;1;0) but don't wan't the 'value is true' value when both cells are empty, how do I need to change the function so it states 0?
View 3 Replies
View Related
Jul 23, 2014
I am trying to find a formula for column D on the PO Costs EOY sheet. My criteria is as follows:
1. Column b on PO Costs EOY= Column A on Fabric and accessories
2. The order date in Column A is equal or in between the dates on rows 3 and 4 in fabric or basket accessories
3. I do not want to include in the some anything before order date, ie, if the order date is 8/8, i only want to sum 8/9 and greater.
The order date will always be on the last day of the week. So the sum would start the follow week.
View 3 Replies
View Related
Jan 27, 2014
By typing either first letter or first two letters in cell A2 the list box should bring up matching street names. Also listbox should manually allow to select required street name by scrolling down.
View 3 Replies
View Related
May 7, 2009
1 have figured out how to create an auto fill that is a mix of days in between. (When dates are not in a row.) For example, a schedule that starts a date, and then adds 2 days, then 1 day, then 3 days etc....it is for a tracking schedule. Once created those amounts are the same for for every row. The problem is, when it counts the next day, or 2 days or 3 days etc, it cannot include a weekend date, rather just 2 working days, or 3 working days etc.
Is this possible?
Right now, I start my first cell with a date, and go to the cell to the right, and in my formula, I type the previous cell address and I add (+) some value (2) to represent the day amount, but right now it includes the weekend days as well, and I need them skipped.
View 5 Replies
View Related
Sep 14, 2009
I have a set of values. #N/A413636363632. The #n/a is there on purpose for charting reasons. How do I calculate the stdev of that range? i.e. ignoring the error?
View 2 Replies
View Related