Creating A Word That Can Spit Out Data

Feb 7, 2013

I've created an excel document to count calories. Here's an example of what I've made...

Item
Quantity
Servings
Cal
Fat
Carbs
Protein

Milk
8 oz
1
150
8
11
8

[Code] .....

MACROS
31.4
41.1
27.4

So basically I'm wondering if there's a way I could simply type in "milk" and have the rest of the information appear (cal, fat, carbs, etc). What would be even better is if I could somehow enter the item and create a formula to multiply by the serving size. I feel a word bank with a list of common food items I eat throughout the day and there respected numbers would be the most simplistic way.

View 1 Replies


ADVERTISEMENT

Creating Word Report From Excel Data?

Dec 11, 2013

I have a huge Excel spreadsheet with various worksheets and data, I want to merge some of that data into a report using word template. How can I pull simple data like the company infomation into that word report from Excel? Do I need to know VBA to accomplish this?

View 1 Replies View Related

Creating Invoice In Word Using Data In Excel?

Apr 7, 2010

The way that I was thinking about doing this would be by creating a template in word and using bookmarks. Then I would use VBA to populate those bookmarks based on the person (publisher in this case) i was invoicing.

I'm having a couple of issues logistically though. I'm not sure how to attach the sample invoice, so i'll do my best to write them out and if i figure out how to attach a doc by the end of this i will include a sample so you see what I'm talking about.

Issue 1: Each Invoice form has the publishers Name and Address listed at the top of the form. The problem is, the information i'm pulling the number of sales (and money we owe them) is from a different spreadsheet every month and wouldn't contain this address information on it as it is an aggregate spreadsheet of ALL publishers numbers. Would it be possible to create an initial template for each publisher and then have the rest of the information be populated with the data from the CSV that has their sale information. I could create a seperate database in excel with each publishers address and name but then it might get difficult to match these up. how to automate that, as we have 100's of publishers and invoices are done every month.

Issue 2: Bookmarks seem like a nice way to use VBA to replace their values with excel data (in theory, i've only read about it and never attemped)... However, in this particular invoice form, I have to create a seperate listing in the description field for each product a publisher sold (including how many they sold and how much money they are owed). Some publishers may have sold 5-10 different products, while some may have only sold 1 or 2. How do i get word to insert a new bookmark (or something) based on the number of products a person has sold.

View 3 Replies View Related

Creating Multiple Word Tables From Excel Data?

Sep 17, 2011

I'm working on a national survey with valuable data from students. The plan is to turn around, 100 different reports to the departments with their respective students.

The issue that I have is creating multiple tables from multiple sheets in excel into a word table, any way of automating it.

What the tables look like in excel:

What I want them to look like in word, with a chart if possible:

I realize that I can just copy and paste easy table into word from excel and with a few clicks of a button, get what I want. But i'm looking for something to automate and simplify this process. There are about 300-400 variables that I need to crosstab with certain demographics.

If it matters any, I bought a software package (Q Market Research) but it doesn't make the tables look exactly how I want them to look. The data is from SPSS, those tables are flat out.

View 9 Replies View Related

Spit Out A Specific Value

Mar 27, 2008

Column A contains 5,720 cells. Each cell has a number ranging from 1 to 300.

Columns B, C, D have data not relevant to my question (at least, I don't think it's relevant, anyway, except that they need to stay next to what's in column A; like if the word "Thank" is in column B next to the word "You" in column C next to the words "Very Much" in column D, and all are next to - in the same row as - the number "14" in column A, everything needs to stay that way throughout. Does that make sense?)

What I'm looking for is a formula that will spit out a specific value in column E that corresponds to the number in column A. There are 300 different values, ranging from 375-1. For example, I need Excel to find all the "1"s in column A, and spit out a "375" in column E (in the same row as the "1"). Likewise, I need to find all the "2"s in column A and put a "370.76" in column E. I need a "366.54" for all the "3"s; a "326.34" for all the "4"s, and so on.

Is there a formula that will do that, and, if so, how do I use it? Again, I'm not very familiar with Excel (terminology, which characters mean what, etc.),

View 9 Replies View Related

Function/formula Spit Out A Value

Mar 26, 2008

What I've got is various numbers (1-300) in column A, and what I want is a formula that will spit out a value (as assigned by me) for each number into column E. Like, I want Excel to find all the "1"s in column A, and show a "375" in column E in each row that there's a 1, and find all the "2"s and show a "376" in column E, all the "3"s, "4"s, "5"s and so on. I thought I'd be able to use the "IF" function, but apparently I can only use 64 different values in the formula, and I need 300.

Is there a formula that will do that? And, if so, how do I use it?

View 10 Replies View Related

Creating A Variable Word Art

Jan 23, 2009

I am wondering if anyone as created a what to do word art, using a input variable.I.e in may example I have a person, Suzie Smith who is an Chief Manager, when I box requires her signature, I would like for it eo be imprinted going diagonal across the box. Is this possible?

View 7 Replies View Related

Creating Report In Word With VBA

May 27, 2014

When I create a document from Excel to word from a sheet in Excel the Sheet needs to be unhidden. How can I Create this report if I want to "hide" this sheet.

View 7 Replies View Related

Creating A Word Document With VBA

May 18, 2006

I am working on a project where I am creating analysis using a subroutine in excel/vba and I would like to have the subroutine generate a report that is a word document. I have never used excel/vba to create and modify a word document and don't know how to approach it. I imagine that I will have a template.doc that I can access and save as another file. Does anyone have an example of creating and modify a word document in this manner.

View 2 Replies View Related

Creating Report From Excel To Word

Jun 2, 2014

The following code is used to export values form Excel into a word document:

The report obtained then looks like this:

Excelforum.jpg

How can I make the values fit within the margins of the word document?

View 14 Replies View Related

Creating Word Chart From Excel Via VBA?

May 2, 2013

I have a bunch of data about companies in an Excel workbook. I need to be able to create a "summary document" about a selected company in word. One of the items that needs to be in this summary is a pie chart.

This code works fine for generating the basic text of the document:

Code:
Sub export_to_word()
Dim wrdApp As Word.Application
Dim wrdDoc As Word.Document
Dim companyName As String
Dim address As String
Dim revenue As String

[code]....

Creating the chart has been more problematic. I adapted the following code from an example found on MSDN:

Code:
Dim valueChart As Chart
Dim chartWorkSheet As Excel.Worksheet
Set valueChart = wrdDoc.Shapes.AddChart.Chart
valueChart.ChartType = xl3DPie
Set chartWorkSheet = valueChart.ChartData.Workbook.Worksheets(1)
chartWorkSheet.ListObjects("Table1").Resize chartWorkSheet.Range("A1:B12")

[code]....

What I've found though is that this code is based on a macro inside the word document, not excel. So it runs fine from within word, but within excel it throws an error at this line

Code:
Set chartWorkSheet = valueChart.ChartData.Workbook.Worksheets(1)

because ChartData is not in the object model in Excel. how to proceed at this point.

View 1 Replies View Related

Creating PDF File From Word Document Inside Folder With ID Number And Reference Number?

Jul 31, 2014

I have an excel database where I register cases. I have in it a button that creates a folder with and ID nr that is in column A (I create new ID nr in the next row, when I press the button it will create a folder with that ID nr and inserts a blank word document in it). We have a template that we copy to the folder (depending what type of case). The idea would be that once the template is filled in and ready to print, It would take the values from the ID nr and a reference number a few cells to the right. Is it possible to tell excel to open the word document in the folder and create a PDF version with the ID nr and reference number. (there are only 2 templates, so the macro would have to look for one of the two in the folder) The names of the templates are: "Standard" and "Other". I guess the best way to start maybe this would be that I select the cell with the ID nr and then press a macro button to have this done. One thing that needs to be done, is to put a copy in the same folder and another in a second folder called "Binder" in my documents folder.

View 1 Replies View Related

Opening Word & Count Word Instances In A Word Document

May 26, 2006

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.

View 2 Replies View Related

Creating Dynamic List Of Data From Expanding Table Of Data?

Feb 13, 2013

I need to create a dynamic list from a table of data.

I have performance data for 110 different pumps. Data points are generated every hour, and the table is updated with new data periodically. I want to automate the population of a list of 6 different pumps, and specify the date range populated. To put it another way: I want to place data from Pumps 1 through 6 for all of November into Columns A through F. Then I want to clear that data, and show data for Pumps 105-110 for last week in those same Columns.

One of the main goals of doing this -- other than quickly narrowing a field of data -- is being able to quickly chart this data on a scatter plot with a custom format. The pumps are grouped together by region, and individual pumps have specific purposes. So I need to quickly generate graphs with a series' color scheme or formatting that is consistent and logical between different pumping regions.

I haven't been able to make pivot table work because of the graphing issue, and also because of the way it handles data points and presents data. I would like to make this work with excel functions and maybe some filtering, but I'm not opposed to figuring out a VB script if you think that's what I should use.

View 1 Replies View Related

Export Cell Contents To Word Fields In A Protected Word Document

Jul 6, 2009

Is it possible to export Excel cell contents to Word fields in a protected Word document? For example...

What code would be needed to tell Excel to open up, copy and export the contents of A2 in the active sheet of a workbook to "Field 2" in a Word document named "Report 01" and then put the contents of B2 to "Field 2" etc?

Do both applications have to be opened up at the same time or is Excel able to open up Word on its own? Will the macro be able to....

1. Automatically open up the correct Word document?

2. Look ONLY in a certain folder for the "Report 01" Word document?

or

Bring up a "selection" box that allows you to select the document you wish Excel to export it's data to?

3. Close and save the Word Document without any user intervention?

View 2 Replies View Related

Excel 2003 :: Count How Many Times A Word Is In A Range / Word Can Be In Cell More Than Once

Feb 16, 2012

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?

5
Test
8am-2pm
Test
5pm-10pm

View 5 Replies View Related

Using The IF Function, To Make Entering A Word, Space Then Word Correct

May 6, 2009

How can I use the IF function, to make entering a word, space then word display correct and incorrect if not.

View 13 Replies View Related

How To Search For A Word In A Column And Have Entire Row Opaque Once Word Is Found

Sep 3, 2009

I need my macros to search for the word "Cancel" or "Cancelled" in columns "T" and "U". Once found, I need the macros to make that entire row an opaque shading.

There will be other wording in these cells that contain "Cancel" or "Cancelled". Is it possible for the macros to search in the sentence and find the words "Cancel" or "Cancelled"

I started on the code below but am stuck.

View 14 Replies View Related

Creating A Data Form With Data Validation

Sep 15, 2006

I have limited ability with Excel, and I'm trying to create a database using the Data/Form menu choices. My problem is I only want specific data in two of the 20 or so fields. When I use Data/ Validation and direct data entry, I get exactly what I want, EXCEPT that the choices don't come up when I use the Data/Form. Users can enter anything they want, which defeats the purpose. I tried to build a user form to use for data entry, but I don't know how to get it to add items to a database or lookup items like the data/form process does. I also want to add a few macro buttons to the form to do other things.

I am pretty sure of a few things: 1) This should be pretty simple. Anyone knowing VBA would probably know how to do this in minutes. I found some code that did a simliar function, but couldn't interpret it to fit my needs, which brings me to 2) I'll never use VBA or complicated macros again. I don't have the need for them. This is just an isolated incident. Therefore, signing up for a class would be useless to me. I tried to locate some advanced Excel/VBA classes, hoping to find an instructor or even a student who would welcome a simple challenge, but there are none available.

View 5 Replies View Related

Find A Certain Word In A String Then Return The Number Associated With That Word

Jun 9, 2009

Have problems using find and the Dictionary
What Im trying to do is find a certain word in a string then return the number associated with that word

View 7 Replies View Related

Pick Word From Excel Search In MS Word And Replace All

Jan 4, 2012

I am trying to automate the below process:

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

[Code]....

View 1 Replies View Related

Copying Data To Word

Dec 27, 2008

I have data in Column J1:J90, I use a macro to open the word document.
Would like that data in Column J may be pasted in word document in text form automatically. such as:

abc

cdc

xyz

may be pasted as, abc cdc, xyz etc.

The macro is:

View 2 Replies View Related

Data Exported To Word

Jul 4, 2008

I have some monthly sales data (max 200 lines per month). The sales are from numerous suppliers (we sell on behalf of others and take a commission). Each month the sales/commission are reported back to the suppliers that have actually sold something!

The problem I have is that some supplier may have sold one item and others may have sold ten (so a simple mail merge is out of the question).

I can create the data in Excel quite easily but currently have to copy and paste this into Word. I am sure this is quite simple, but I cannot get anything to work.

View 9 Replies View Related

VBA CODE IN WORD - FROM Data

Apr 10, 2009

Is there anyway I can get Cell Data to go over to a VBA variable in Word .. Ive tried googling but not coming up with much...

For example.. I have a cell with the number 10 in it... Id like that to get sent over and be assigned to a string variable "Attended" in word....

View 9 Replies View Related

Exporting Data From Excel Into Word

Jun 2, 2008

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?

View 14 Replies View Related

To Convert Microsoft Word Data Into

Nov 12, 2008

I am currently working on a project, and basically I want to convert Microsoft word data into excel. Is there a way excel can read specific fields of data from word?

For example, search for a field called a particular name and a corresponding value amongst several data held within Microsoft word pages?

View 9 Replies View Related

Search For Word In A String Of Data

Feb 11, 2009

I have put a formula in excel to count how many times the word 'administration' appears in a column:

=COUNTIF(K2:K99,"Administration")

Unfortunately, the output that I am searching has mulitple words in it, separated with a colon and no space. My formula skips the count if the word Administration is not completely on it's own

e.g. Administration counts 1
Administration;Cardiology does not count

View 2 Replies View Related

Extract Data Right Of Certain Word In Text

Apr 11, 2013

I want to return the 7 letters of text that appears after the word Timer in cell A1. So cell A1 will be a sentence with the word Timer in it somewhere and I want to return the 7 characters after it appears.

View 2 Replies View Related

Import Word Data To Excel?

Apr 16, 2014

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

TITRE
Text Paragraph 1
Text Paragraph 2

[Code].....

View 4 Replies View Related

Adding Data From Worksheet To Word Through VBA

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







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