Adding To Figures Transferred From Another Worksheet?
Sep 5, 2013
I am in the process of creating a spreadsheet to document employee holidays taken over 2014. Each month is shown on a different worksheet with a 'Total' column on the far right which calculates the number of holidays (represented by 'H') taken by individual employees. The formula I have used to achieve this is =COUNTIF(D6:AH6,"H").
I have transferred the figures in the 'Total' column across the other worksheets, however I now need to add any further holidays taken to the figure that has been carried over from the months previous.
I have added a couple of images. In January, the total number of days leave taken by Thompson is 6. This figure has been carried over onto the February worksheet as shown, however if I place more 'H's' on the same row then I need the total column to reflect both these and the ones from January.
Jan.JPG
Feb.JPG
View 1 Replies
ADVERTISEMENT
Dec 1, 2009
i have a set of data in excel. i want that all the data in excel active worksheet shall be automatically transferred to ms word when i click a command button...
View 9 Replies
View Related
May 23, 2014
i am currently constructing a table on excel and need it to grab a figure which is constantly changing from another worksheet.
View 2 Replies
View Related
Oct 10, 2008
I have a late report due @ work.... I have people who have worked for 4 days to get me numbers i need and they are not right.....
Anyways I have a spreadsheet with a whole lot of numbers on it... I need to add 30% to each number. What is the easiest way to set this up.
View 13 Replies
View Related
Jan 13, 2009
I'm trying to to take a picture from a Worksheet and save it back to file in a Windows folder via macro.
I've been searching thru Excel help and internet and I didn't see any solution.
View 2 Replies
View Related
Aug 5, 2008
I have a worksheet with monthly sales figures by associate and by store. The store has a monthly goal as do the associates. If the store hits it's goal then the overall sales total is multiplied by 1% and then divided by the percentage of each associates involvement to reach that goal. (ie...150,000*1%=1,500, John sold 35,000=23%, so John gets $345 extra commission). If Johns goal was $25,000 and sold $35,000 he gets 1% or $350 commission. In turn, if he meets 1 or both sets of criteria those will be added together. If he doesn't meet either one then the result is Zero.
I have the store goal and Johns goal in separate cells to reference against. The actual sales cell is formula based.
This is basically what i'm trying to do:
If criteria 1 is met then % of 1% of store goal, if criteria 2 is met then 1% of individual goal, if both are met result1+result2. if neither is met then zero. I think?
View 9 Replies
View Related
Feb 6, 2014
I can not understand what am i missing in this code. From a user form i transfer data in sheets "Invoices" and "C24". Works fine.! I added one more condition to transfer some data in Sheet "Print" too.
I can not makes this to work. Data do not transfer in Print sheet!!
[Code] ........
View 7 Replies
View Related
Sep 29, 2012
Any efficient way to put some data from sheet A that matches up to Sheet B. Using VBA
Data in columns A, C, E in sheet A need to match data in columns A, C, and E in sheet B if they do the data in column F and column G in Sheet B, needs to be put alongside data in sheet A in column F and column G.
If no match then no data is transferred.
Number of rows will be a maximum of 1000
View 4 Replies
View Related
Apr 27, 2014
I have the following code, it moves a row of data to another sheet based on a certain in the status column.
When the row is copied over to the other sheet, I would like when it pastes the data in to UNHIDE the row. This is due to the fact that at the current time all of the sheets have rows that are hidden unless there is data in them.
Is it possible you could add the unhide feature?
[Code] .....
View 1 Replies
View Related
Jun 3, 2014
I'm fairly new to macros but somehow i managed to create all the required macros for my project through googling and the like. The problem is that i created my macro enabled excel file in XP and when i transferred it to Windows 7 the auto save to PDF macro stopped working with the Runtime Error '5' Invalid Procedure, call or Argument. The highlighted error is as follows.
ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, _
FileName:="C:WindowsTemp emporaryexam.pdf", _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=True
This auto save is supposed to work when a hyperlink is clicked or when the set time runs out (Working Macro).
View 5 Replies
View Related
Apr 30, 2012
I am using Excel 2010 and need to get the totals for each month transfered to a separate sheet. For example;
One sheet is called Outgoings (which has all the receipts entered chronologically in rows and apportioned in the columns) and the other sheet tracks the cost per month of each column.
I found a formula online and adapted it to this;
=SUMPRODUCT((Outgoings!$A$5:$A$1000>=41000)*(Outgoings!$A$5:$A$1000
View 4 Replies
View Related
Mar 25, 2009
I'm adding a form to a worksheet for the first. I tried to follow an example from the internet and then adapt for own form but have got lost and don't know where.
Attached is the excel file i am working on. On the summary worksheet i have added a button which works fine and opens up the form i have made.
My problem is it doesn't enter the data into the relevant cells on the relevant worksheets. I think the form should be quite self explanatory.
View 6 Replies
View Related
Apr 3, 2012
I would like to add a search bar to the top of an excel sheet where I can search through 2 rows and find a part number I request.
I know this can be done using Ctrl+F but that thing is really annoying and sometimes if your not clicked on the same row your searching it doesn't work, I just want to keep it simple.
I have over 36,600 items to search
View 1 Replies
View Related
Sep 6, 2012
This always returns "B" to TextBox26.
Code:
Private Sub ComboBox1_Change()
Dim x&
With Sheets("PLAYERS")
For x = 1 To .Cells(Rows.Count, "C").End(xlUp).Row
If .Cells(x, "C").Value = Me.ComboBox1.Value Then _
Me.TextBox3.Value = .Cells(x, "D").Value
Me.TextBox26.Value = .Cells(x, "E").Value
Next x
End With
End Sub
View 1 Replies
View Related
Feb 10, 2014
I have A TABLE (Named Table1) and some columns filled by formula. (Like E,F,G,H columns) When I protect the worksheet E,F,G,H columns are locked, but A,B,C,D columns are UNLOCKED. When is sheet PROTECTED , If I add a row bottom of Table1, does NOT automatically fill the E,F,G,H columns and Table1 range does not expanding. But, if UNPROTECTED, it's OK. when add a row bottom of Table1, automatically fill all columns with formula and table range is expanding aotomatically with new row.
When sheet is PROTECTED , How can I allow, to add a row and aouto fill all columns like unprotected.
And I want to protect sheet in any case, after allowing to add row.
I need a macro code to do this.
View 5 Replies
View Related
Mar 24, 2014
How would I add something like -
If E20 doesn't equal "Override" then E21 equals "=VLOOKUP(E20,county_data,2,FALSE)"
View 2 Replies
View Related
Aug 28, 2009
I'm having an issue with adding data to word from excel through VBA.
I would like to add the Table to the word doc, then copy and paste data below it. The code works fine. However, after the table gets added to the top of the word doc, the rest of the stuff begins pasting from the top of the doc, causing the table to appear at the bottom...
View 2 Replies
View Related
Jan 20, 2010
I have (several) worksheets that have protection enabled. I have unlocked all the cells that users need access to and locked all the column and row headers/labels.
When I enabled protection on the sheets, the ability to add comments was taken away.
Is there a way to add comments to an UNLOCKED cell in a PROTECTED worksheet?
View 5 Replies
View Related
Feb 12, 2012
I would like to add a search box to worksheet 1 in my workbook of 162 sheets. I need the search box to search sheet 23 cell range B11:B342. These cells contain names of employees.
I would like the option of entering a name into the search box and either hitting enter or clicking a "go" button to search. If the search is successful, ideally a function would automatically redirect the user to the located text and if the text cannot be found, a message would appear indicating as such.
When it comes to VBA, I am a very basic user, so I would need the code written out for me and I need to know exactly where to put it and how to get the search box to appear.
View 9 Replies
View Related
Mar 19, 2012
I was hoping to force end users to use a user form to input data into a work sheet. The problem is that the form wont input the data when the sheet is protected.
View 2 Replies
View Related
Jan 9, 2013
This is an easy one but I suck at Visual Basic... I have a routine wich adds stuff to a header in my worksheet CalcSummary:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
With Worksheets("CalcSummary").PageSetup
.LeftHeader = Worksheets("CalcSummary").Range("l2") _
& Chr(10) & Worksheets("CalcSummary").Range("l3")
.RightHeader = Worksheets("CalcSummary").Range("l4") _
& Chr(10) & Worksheets("CalcSummary").Range("l5")
End With
End Sub
How can I edit it so that it works the way it is now, but ALSO adds the stuff on worksheet CalcSummary to the header on, say, Sheet1. I've guessed several things - none of which actually work
View 2 Replies
View Related
Dec 24, 2008
I have data in several (50+) columns. I want to be able to sort all my data by the column I select with one click. So, I basically want a button over each column that sorts the data by that column. It would be ideal to have the same "Sort" macro that is attached to all the buttons. The macro should somehow know that the column the button is in, is the column to sort by.
View 9 Replies
View Related
Mar 31, 2009
Due DateInvDocument numberDebitCreditBalance
17/09/08L01607610714211201825.44
13/10/08L01637010284345841020
13/10/08L01637131713874501020
13/10/08L016373852202473461020
13/10/08L0163748.5222E+111020
15/10/08L01641811103746832316
The above is a part of a w/sheet. Rather than determining the last row in the debit column and credit column (to know which is greater) and use a loop to put a formula in each of the cells in the balance column (adding the debit and credit), I know I can use the with ... statement to input the formula at a go , but cannot figure it out.
Sub sumtotal()
With Sheets(1)
With .Range("G14", Range("G" & Rows.Count).End(xlUp))
.Clear
.Formula = "=sum(E14+F14)"
On Error Resume Next
End With
End With
End Sub
View 9 Replies
View Related
Sep 10, 2004
A procedure residing in the "ThisWorkbook" module has just added a new worksheet into the active workbook. I now want this same procedure to write a set of code into this new sheet's code module.
Solution 1:
Create a worksheet before run-time that is already set up with the code you want behind it. Then, use this worksheet as a sort of "template" when you want to create a new worksheet as opposed to using the worksheet.add method.
Question:
I can use solution 1, but isn't there a way to insert the code on the fly?
View 6 Replies
View Related
Oct 24, 2006
I am trying to create two macros. The first macro will add a button, and the second macro will delete the button. I am noticing that when I add the button in the first macro, Excel is automatically naming the button (i.e. Button 26), and then when I try to delete the button with the second macro, this button name is not recognized. How can I name or set the button as a variable so that I can successfully run these two macros?
View 6 Replies
View Related
Mar 14, 2007
I have a userform which when you enter data and hit submit, inserts data into a seperate sheet in the same file. Code below
Private Sub CommandButton1_Click()
Sheets("Purchase Order").Select
UserForm1.tbJobNo.Value = _
Sheets("Purchase Order"). Range("I4")
UserForm1.tbJobTitle.Value = _
Sheets("Purchase Order").Range("K4")
UserForm1.tbOrderNo.Value = _
Sheets("Purchase Order").Range("I49")
UserForm1.cbdirector.Value = _
Sheets("Purchase Order").Range("K43")
Instead of placing the data into another worksheet i would like to put the data into a closed xls file named Purchase Order Database.xls.
How can adjust the code for it to do this?
View 5 Replies
View Related
Mar 18, 2014
All info goes to the master inventory and then if some enters an amount for respray then it is transferred to the respray sheet. when it is transferred to the respray sheet it put the date in Column A and then put 3 days later in Column B.
Every day it will change and the date in A1 changes to tomorrow but if another item is enter as having resprays then it transfers to the respray sheet and will bump down in column C but Column A stays the in the same spot.
I need Column A and B to move up and down if something in Column C moves up or down and it would be nice to always have the oldest date at the top.
View 7 Replies
View Related
Dec 10, 2013
What I would like to do is have a master workbook that I can import different .csv files into as a new worksheet. Then calculations will be run on the values that are imported. My goal is to select a column and have corresponding list update the values. After that formulas will run on the calculations. I have got the import csv file down using VBA. The problem I was running into was with the Data Validation. Since I was overwriting my existing sheet I would get a #REF error because the link was broken. So I have worked my way around this for the list using the OFFSETSHEET Function:
VB:
Function SHEETOFFSET(offset, Ref)
[COLOR=#0000ff] ' Returns cell contents at Ref, in sheet offset[/COLOR]
Application.Volatile
With Application.Caller.Parent
SHEETOFFSET = .Parent.Sheets(.Index + offset) _
.Range(Ref.Address).Value
End With
End Function
This returns a value to a row in my mater sheet and I reference this for the data validation list.
However, I get the same problem when working with the HLookup function, the #REF error occurs. So far the only way I have figured out to work around this is to create another sheet that dynamically updates its values using the same OFFSETSHEET function, and my master sheet then references it.
View 8 Replies
View Related
Apr 23, 2007
Working with named ranges is new to me, and very aggrevating to me too! I am trying to create a Named Range inside a worksheet_change event that is Global. I can create it, but it's always local to the sheet where the change event is happening.
For example:
Names.Add Name:="RandomName", RefersTo:=Target
...creates a local name instead of global one (whereas it would be global if it was created in just a normal subroutine).
Aside from using this trick: Change refersto property to workbook-level
View 8 Replies
View Related
Mar 26, 2014
I have a Productivity Report that contains very basic formulas that provide totals for 4 columns (B6:E6) and an average for one column (F). I have included two command buttons, one to add a new row and the other to delete a row.
I need to be able to add or delete rows depending on how many employees' productivity I will be tracking on any given week; each row represents a separate employee. I need the following functionality out of my form:
1) formula in column F needs to copy and paste with each new line
2) when a new line is copied and pasted I need the contents to be cleared
3) I need the user to be blocked from deleting the first row (3 on this form) in the table
The code I'm using for my "Add" button is:
[Code].....
The code I'm using for my "Delete" button is:
[Code] .....
The buttons add and delete rows as I'd like them to but content is not clearing, with each row added the contents provide a sub total. I've tried various lines of code (some more complicated and some less) before I recorded my own macro (see above).
Attached File : Productivity Report (HH).xlsm
View 8 Replies
View Related