My colleagues produce a monthly MI pack which includes Excel spreadsheets they produce, spreadsheets others supply to them, and commentaries in Word. All the disparate sheets makes it hard to get page numbering right. They also want to be able to send the pack out electronically, and lots of individual files obviously isn't ideal for this.
The last time I had to do a similar thing was several years ago, and I used Binder, which wasn't great, but was better than nothing. But it seems to have been discontinued. Has anyone got a neat solution?
I need to calculate the average spend on a day of the week over the month, so all Monday's or all Tuesday's, etc. One sheet is one week so I need to average b16 on 6 sheets as an example.
I used =AVERAGE('WEEK1:WEEK6'!B18) to calculate average over the six Monday's. The issue is, as in other posts, how do I ignore the cells that have a zero or null value.
I've tried adjusting this which was in 1 post =AVERAGE(IF($C$2:$CA$2=C62,IF($C$25:$CA$25"",$C$25:$CA$25 with this =AVERAGE(IF(1+1=2,IF('WEEK1:WEEK6 '!B180,'WEEK1:WEEK6 '!B18))) which returns #REF!
this from another post =SUM('WEEK1:WEEK7 '!B18)/COUNTIF('WEEK1:WEEK7 '!B18,"0") which returns #VALUE!
and this =AVERAGE(IF('WEEK1:WEEK7 '!B180,'WEEK1:WEEK7 '!B18)) which returns #NAME?
The cells on each sheet are sum formulas for other cells on the sheet not just numbers on their own.
How do you go about entering the word "ZERO" in an IF statement? Every time i try to add it to my formula it turns it into the number 0 which is not what i want because i want to differentiate between the two??
I have a single work book with 8 sheets (I am using Excel 2010 BTW) and I am trying to find a total of times a word appears across all the sheets in column "C"
I found this formula on another thread. =SUM(COUNTIF(INDIRECT("Sheet"&{1,2,3}&"!C1:C1000"),"="&H3)) with an example. I made the changes that I needed for my purposes
This worked but only after I renamed the sheets to Sheet1, Sheet2, etc.
Is there a way get the same results from the above formula if all the sheets are named after our reps? Example: sheet1 is named Dan, Sheet2 is Nick, etc?
i can do the very very simple math formulae in excel, but now i have two excel files. Suppose the first excel file contains the numbers: x1 x2 x3, and that the second contains the numbers: y1 y2 y3.
i need to make a formula that includes x1 value and y1 value, then another one that includes x1 and y2, then x1 and y3, then x2 and y1... and so on.
I need to count how many times the word Test is in the range B4:H9 with
Range N2 = Test the formula below works if Test is only in the cell once.
=COUNTIF($B$4:$H$9,"*" & N2 & "*")
But I have data in cells like below, this is all in one cell, so how would I have it count all the times test is in the range when some cells have test 2 or more times in a single cell?
1. I have a excel file with Japanese words in column A and their English equivalents in column B.
2. I am trying to create a Macro and assign it to a button. On pressing the button Macro should be able to:
3. open a form where I can enter location of a word file.
4. Macro should open the word file specified in (3).
5. Macro will pick up first Japanese word from excel file (Sheet 1 - A1)
6. Search for that word in Word file
7. Replace the Japanese words in Word file with their English equivalent from excel (B1)
8. Then it should search for second word (A2) and replace with its equivalent (B2) and so on till it reaches last filled cell in excel file column A.
After a lot of search I could find a code from net (Below), made a few changes, but it is not working.
======================================================== Private Sub OK_Click() ' Requires a reference to Microsoft Word xx.x Object Library Dim sFile As String
I am in the middle of automating a process here at work, the program takes a word, "pencil" for example, from excel. It will then open up a word document with content already in it (premade template). The program will then find all instances of a string, "placepencilhere" for example, and will replace that instance with the string from excel.
Basically I want to be able to take a variable that has a stored string value from excel and use it to replace another variable in a word document.
I tried recording a replace (ctrl+f, replace tab) macro, copying the code, and inserting it into the excel vba code.. but I get a error message. Here is what I have:
I have a set of data that I formatted as a table, including headers. It seems that the columns are numbered, and after the column header is a number. i.e., Sales 2, GP Freight 3, etc.
I have spent some time researching this and came up empty. Is there a way to disable this part of table formatting?
I'm building a spreadsheet which includes a few columns which have activex check boxes which are linked to cells. I want to allow the users of the spreadsheet to insert new rows if necessary. Ideally, when these new rows are inserted, the check boxes would also automatically appear in the corresponding columns of the new row (and be linked to the relevant cells), just the same way that pull-down menus and formulas automatically copy into the new row. Is there a way to do this?
Excel 2007.I have a list of postcodes (UK) which have different lengths of characters (including spaces) from 6-8, however our system seems to add additional spaces inbetween the postcode, so it could have upto 11/12 characters (inc spaces) Below is what could come out:
What I need is a formula to ensure each postcode only has 8 characters by inserting spaces between if there's less than 8 char and trimming if there's more than 8 char
So from the above postcodes the desired results would be:
EH21 6PQ - 1 Space (8 Char) - This would be correct EH12 9HG - 3 Spaces (10 Char) - Trim off 2 spaces from the middle E1 8DF - 3 Spaces (8 Char) - This would be correct LL5 1GH - 2 Spaces (8 Char) - This would be correct L5 1FG - 1 Space (6 Char) - Insert 2 spaces in the middle
I'm trying to copy a whole bunch of tables with identical layout to a master table, so I can create a whole bunch of pivot tables that include data from ALL the various tables. The source tables MAY be filtered, and I can't work out how to copy them easily while also INCLUDING any hidden/filtered rows while at the same time leaving any filter settings on the source tables intact.
If I use something like range("Table1").Listobject.DataBodyRange.Copy then it only copies the VISIBLE rows.
But I want ALL rows to be copied to a master table.
1. I don't want to unfilter the sources tables, because users might still want the source tables to remain exactly as the user filtered them. (However, it doesn't matter if the DESTINATION list is filtered or not). I realise that I could copy the entire sheet to a temp sheet, then unfilter any tables on that sheet and THEN copy these to the master list. But wan't to know if there's a simpler way.
2. I DON'T want to use SQL to create a pivot table directly from the tables, because the tables will have further information added to them from time to time, and so if I use SQL to make a pivot directly from them, I'll have to recreate the pivot cache using that SQL query each time, which might muck up the settings in any existing pivot tables. I realise that I could use SQL to copy the data to a 'staging area', and just point the pivot table at that.
3. I can't use PowerPivot, because its not installed in this environment.
i have a sheet that was originally built by someone to convert sheets that you select in a userform to PDF, i have tried to adapt this to convert to word, but with my limited know how i'm losing this battle.
i've attached a copy of the sheet with the code i've been trying to mix & match Word save all selected sheets in one Word doc..xlsm
I have an excel program that is supposed to count word instances in a word document. I can't seem to find the right declaration for a word document. For example to declare a workbook in excel its
Dim wb As Work Book
I've tried
Dim doc As Word.Document 'or Dim doc As Word.Application
as shown in some of the forum posts, but an error user-type not defined keeps displaying.
i have a set of data in excel.. i want that, when i click a command button on an active worksheet, it will be transferred in ms word all the data found in excel.
I have this excel sheet which I want to export to a word document. The following code has been used:
[Code].....
It creates a word document but it only copies and pastes a picture of the excel sheet. I want for the user to edit the word document values that are pasted from the Excel sheet. I know I need to change somewhere in the:
[Code] .....
How can I paste values from excel to word that can be modified inside of word?
ALSO:
How can I change the layout of the word document, for example if I want to add a header and a footer?
I am creating an order checklist in Excel. I want it that if the sales rep clicks on a certain field that a macro will populate the form that is needed. If the rep does not click on that box then the certain form will not be populated. Is this possible?
I have a database list, and run a bunch of formatting, inserting, formulas etc., to be able to have a Word Mail Merge be able to run against the data when finished. I'm automating the process and want to be able to open the Word document when the Excel piece is done, so the user doesn't have to navigate to the file manually.
Since Excel doesn't seem to automatically 'see' Word docs in the Open File dialog list, my Open File code below is getting an error of "File Format is Not Valid":
ChDir "O:UAIBDCustomer RelationsIDHome Office Indexing" Workbooks.Open Filename:= _ "O:UAIBDCustomer RelationsIDHome Office IndexingID Home Office Indexing Mail Merge Template TESTING.docx"
I'm writing a spreadsheet which performs automatic reporting in Word at the moment and, having done this once before I thought it would be simple... Unfortunately however I seem to have run into the following problem:
I'm trying to have Excel paste in a table, then move down one line, enter a page break and then repeat for all of the tables it needs to paste.
Among a rather large sub which I re-used from another project is this bit of code which is relevant to this part:
Dim AppExcel As Window Set AppExcel = ActiveWindow Set appwd = CreateObject("Word.Application") appwd.Visible = True
Set appwd = CreateObject("Word.Application") appwd.Visible = True appwd.Documents.Open Filename:=FileToOpen
'select test bookmark appwd.activedocument.Bookmarks("test123").Select The key bit is this segment, which is the part repeated for each table (it all works up to here)
For K = ActionFrom To ActionTo Cells(3, 2) = K Call SelectNode LR = Sheets("Data_Entry").Cells(Rows.Count, "B").End(xlUp).Row
With appwd .Selection.Paste .Selection.MoveDown Unit:=wdLine, Count:=1 .Selection.InsertBreak Type:=wdPageBreak End With
Next K
The two bits in red are what I am trying to now do, but Word keeps returning the error 'bad parameter'. I've tried doing it both in and out of the 'with' function and I can't seem to make it work...
I need to read A1 Rows and if it's values is bold letters then i have to add from top of it's above un bold members like that the should work for 2000 rows Like below Ites income - (A) vlues need to be added from row 3 to row 9
I have a very indepth spreadsheet at work. We also have a form that was typed up in word that uses some of the information from the spreadsheet. I was wondering if there is a way to have the information from the spreadsheet autofill the form that is in word?
I am exporting data in from a different program (Results Plus), into a Word 2010 mail merged document with a header file attached. The header file is an Excel table of my merged fields. I have gone through all the steps to make sure it's not that software. Now I still cannot figure out why all of my months are turning into "00" in a Word mail merge. I have tried @ "MM/dd/yyyy" and it end ups flipping the month and day around.
For example: it should be January 8, 2013. It shows up originally in my document as "00 8, 2013". When I add the [switch] @ "MM/dd/yyyy" it shows up as, "08/01/2013". When I tested it out and put "MMMM/dd/yyyy" it shows up as August 1, 2013 instead of what it should be, January 8, 2013.
I am having a formatting issue within a cell. I would like to accomplish a TAB space between to words so they always have the same space between, no matter how many characters the words or numbers have.
Example: I insert text and numbers from different cells in to one.
Formula: ........
It looks like this... so far so good. 25.02.2014 EUR 5'600.00 1.2177 CHF 6'819.12 Withrawal
But if i insert multiple lines with higher or lower amounts the formating goes wrong.
The target would be to keep straight lines like with the TAB in Word.
snap-tab.jpg
I know there is no TAB whitin excel cells, but maybe there is a way to set a default charachter lenght that can be forced even if the amount or the text is shorter.
I would like to extract some text from a word file and transfert it into an excel spreadsheet. My text is always presented in the same way. First there is a line with some data (see exemple bellow). I have no problem to extract them using the macro bellow even it's not perfect.
My problem is on the main text. I weed to keep the format or at least the different paragraphes as when you copy text in word and past it in the formula bar (or press F2).
Here is an exemple of my word file
Code : XXX1- Abrege : DGS45 - Type : D - ADICAP : PHXT5847