Quotation form in word, pulls quote number from excel based on next cell

JimS1

New Member
Joined
Jan 29, 2017
Messages
10
Hello all,
As I continue to try and learn more and more excel I am decided to try something that is way outside what I currently know withing excel or word. I am trying to build a quotation form template in word that will assign the quote number based on an excel spreadsheet "quotation log".
A little background, I have moderate excel skills and NO VB skills.

I am wanting to use the following quotation number format.

"17-033101-JS"
Yr-Month/Day/Serial-Quoted By Initials

I want to type out my quote in word and then; within word, have the document open and reference the next available cell within an Excel Spreadsheet, assign the quote number based on the above format, Save the document and repeat if necessary. Am I asking too much? Is this even possible?

here is the log portion copied from Excel

Quote Number Date Quoted By Buyer Name Company Name Dollar Amount
[TABLE="width: 1081"]
<tbody>[TR]
[TD]17-033104-JS[/TD]
[TD]31-Mar[/TD]
[TD]JS[/TD]
[TD]HECTOR[/TD]
[TD]COMPANY 123[/TD]
[TD]$5,524.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17-033105-JS[/TD]
[TD]31-Mar[/TD]
[TD]JS[/TD]
[TD]BILL[/TD]
[TD]COMPANY 345[/TD]
[TD]$578.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17-033106-JS[/TD]
[TD]31-Mar[/TD]
[TD]JS[/TD]
[TD]WILLIAM[/TD]
[TD]COMPANY356[/TD]
[TD]$2,235.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17-033106-JS[/TD]
[TD]31-Mar[/TD]
[TD]JS[/TD]
[TD]BILL[/TD]
[TD]COMPANY 34456[/TD]
[TD]$1,579.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17-040101-JS[/TD]
[TD]1-Apr[/TD]
[TD]JS[/TD]
[TD]JAMES[/TD]
[TD]COMPANY BLAH BLAH[/TD]
[TD]$10,025.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17-040102-JS[/TD]
[TD]1-Apr[/TD]
[TD]JS[/TD]
[TD]CHERYL[/TD]
[TD]COMPANY STILL BLAH[/TD]
[TD]$26,046.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17-040103-JS[/TD]
[TD]1-Apr[/TD]
[TD]JS[/TD]
[TD]STACY[/TD]
[TD]COMPANY IM BORED[/TD]
[TD]$154,358.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17-040104-JS[/TD]
[TD]1-Apr[/TD]
[TD]JS[/TD]
[TD]RON[/TD]
[TD]COMPANY I NEED HELP[/TD]
[TD]$568,568.00[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Any help would be appreciated!

Thanks
Jim
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Is it possible to use only excel and dispense with word ? You can make tables in excel and place hundreds of words in a single cell, after all....
 
Upvote 0
You could do this quite easily from Word using mailmerge. Simply configure the mailmerge main document for a normal letter merge, then add a SKIPIF field to it, coded as:
{SKIPIF«Quote_Number » <> {FILLIN "Issue Quote #" \o}}
or:
{SKIPIF{=(«Quote_Number » < {FILLIN "First Quote #" \o})+(«Quote_Number » > {FILLIN "Last Quote #" \o})}= 1}
The first rendition allows you to input a single Quote #; the second allows you to input a start & finish Quote # so that a range can be generated in one go.

Executing a mailmerge with such a SKIPIF field will generate a new document with all the data from the Excel workbook filled in. No macros required.

Note: The field brace pairs (i.e. '{ }') for the above examples are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practical to add them via any of the standard Word dialogues. Likewise, you can't type or copy & paste the chevrons (i.e. '« »') - they're part of the actual mergefields, which you can insert from the 'Insert Merge Field' dropdown. The spaces represented in the field construction are all required.
 
Upvote 0

Forum statistics

Threads
1,223,794
Messages
6,174,643
Members
452,575
Latest member
Fstick546

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top