Creating Sentence Outputs with Example

mkuczyns112

New Member
Joined
Jan 6, 2014
Messages
11
Hello All,

Thanks in advance for the support. I am looking into creating a text output file. I have 3 inputs item, sentence, figure. The point is to create an output file from the positioning of the item in a sentence and inputing a figure where applicable after the sentence.

Imagine Column A as the item, Column B as which sentence the item goes into and Column C as the figure. The figure will follow the next x.

ITEM SENTENCE FIGURE
dog 1 ""
cat 1 ""
gate 1x a
horse 2 ""
moose 2 ""
cow 2 ""
cave 2x b

Note: the designator of x signifies the item to be at the end of the sentence. The figure (can be changed) is setup to write a code to imply a figure is needed at this point.

The structure of the sentence should be the following:

1. Remove dog, cat from gate.
ADD FIGURE
2. Remove horse, moose, cow from cave.
ADD FIGURE

Note: Always start the sentence off with "Remove" and the "x designator" should have the word "from" prior to it's use. The order of which the items appear is irrelevant.

Would like file saved as h:\test.txt

I understand that this can be complex. If so, a discussion on how to create the structure would be appreciated as well. I hope I covered all variables, if there are any questions let me know.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

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