I need to build smth to create letters.
I am using mail merge now but there is a problem:
the names, department names, email address, etc are looking great but I also want a list of questions to be in the letter.
Note: I will only be creating 1 letter at a time so my excel will only have the headers row and 1 content row.
Here's the problem. My list of questions look something like this:
When did you visit the supermarket?
What did you get at the supermarket.
Please provide the breakdown of things you got from the supermarket.
(a table, with 4 columns and 5 empty rows) will try to attach it
Where else did you go afterwards?
There will be ard 5 different lists of questions. I hope to use Vlookup to put the list of questions into the mail merge data sheet.
Summary: Problem is the questions part. How to put a huge chunk of contents to mail merge? - The spaces btw the questions are not showing on mail merge, and I cant insert table into 1 excel cell
If there are other ways to build this, please let me know as well.
table example
Build your own "mail merge" using VBA.
loop through your list in Excel
For each: open a word template (which you prepared adding bookmarks)
Replace the bookmark part with the questions... you can even use a "question template" in word where you copy formatted paragraphs from
save the populated template as new word file
Related
I have an Excel file including thousands rows as follow. First column includes names and second column include group of each. I want to have all names belong to group "A" at another sheet dynamically. because name and group list may be changes. In other words, what command or function I should use to list all names belong to group "A"?
There are 3 ways to do this. The options are below. One thing you did not include in your question is what the results should look like.
Equations like =FILTER(A:B,B:B="A")
Pivot tables to use this convert data to table, then create pivot table. This requires refresh when new data is added.
Power query to use this convert data to table, then go to Data>From Table/Range. This requires refresh when data is added but you can change the "connection properties" under Data>Refresh All˅.
Now if you want all in group "A" to be listed with in one cell, then I would use option 3 with groupby as talk about here.
If the answer works for you the expectation is that you checkmark it and upvote it. If the answer does not work for you add a comment at the bottom and the problem you experience. For your situation you will need to adapt the answer.
I want to compare 2 excel files using Power Automate which are stored in SharePoint Documents , and if any of the column rows contains another values , a mail should be forwarded saying the values are not matching.
So for this i want to create Power Automate Flow
This shall be challening with Power-automate. I personally would go with some code. I believe you have already googled for the same issue.
But I could see below 2 Post which can be of your help.
List item
List item
I have an excel document that have this structure:
[Customer name] [Customer street] [Customer post code]
It has a couple of thousands rows, and I need to separate the into their own files.
I have tried to find someone else that has made the same thing or similar, but without success.
I want to create a script that asks me "Which post code interval do you wanna export?" and answer to that might be "100-300". Then the script exports those rows into a new txt/csv-file that is tab or comma delimited.
Is this even possible in Excel? I am developer but not an Excel developer :D haha.
Would be so grateful to receive some examples on how to do this.
You can use filter option in you excel file it has several option for example you can set a filter on Post code must be bigger then 100 and less then 300
->
I have two excel files with the comments data from a survey. One file has all the comments from all the departments and then the other file has it broken down for different departments.
I have categorized the comments in the master file (the one with all comments) and I want to now find the comment within each department in the other file. Will the following code work?
I found a VB Script on the Microsoft Support website
https://support.microsoft.com/en-us/kb/213367
If not is there any other way I can do this other than manually?
=IF(ISERROR(MATCH(A1,$C$1:$C$5,0)),"","MATCH")
This worked. It compared all the values in Coloumn C with Column A and then returned the string "MATCH".
I use a macro in an Excel spreadsheet that allows me to type in one or multiple words and search the spreadsheet for those words. Each row of the spreadsheet that contains those words is copied over to sheet 2 of the spreadsheet. (The spreadsheet is basically a large list of inventory at my work place. So, for example, if I wanted to search our inventory for all 'red widgets', I can type the word red, and the word widget into the search field and on sheet 2 of the spreadsheet, a list of all of our red widgets would appear (even those listed as "widget red")). Could a script in Google sheets do the same thing? I would really like to use Google sheets instead of Excel for this.
A Google Apps Script can definitely do this. You would likely be best off starting from scratch rather than working from your Excel Macro code.
There are a few options for how you could set this up, but off the top of my head I would approach it like this:
Add a custom menu to the sheet, with "find & copy" menu entry
Pop up a a simple dialog using HtmlService, where the user enters the
search term.
On submission, retrieve all rows from Sheet1
Loop over the rows and search for your term in one or more columns
copy matching rows to a new array
write the array of matches to a new sheet.
See the extending sheets overview here:
https://developers.google.com/apps-script/guides/sheets
html service here:
https://developers.google.com/apps-script/guides/html/
and function references for these services here:
https://developers.google.com/apps-script/reference/spreadsheet/
https://developers.google.com/apps-script/reference/html/