Excel comparison for Text in different coloumns - excel

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".

Related

How to combine two files in Alteryx

i am learning Alteryx and have ran into my first issue. I have an excel file that i am using as one source. The files has two sheets with the same data, but the second sheet does not have headers.
I wanted to see if there was a way to combine the two sheets into one, within Alteryx using column position instead of headers since the second does not have them. Any help is very much appreciated.
Yes, both their Join (https://help.alteryx.com/20213/designer/join-tool) and Union (https://help.alteryx.com/20213/designer/union-tool) tools have a "Record Position" option which is exactly what you're requesting. See the links for details.
You have to input the file twice, once for each sheet.
For the 2nd sheet make sure to click on the option that the first row contains Data
Then you can use the Union tool --> Auto Config by position --> Set a specific order (Check). See image links below.
First Row Contains Data
Union Tool Configuration
Sheet 1 Example Input
Sheet 2 Example Input
Output

Dynamically extract a list of unique items from multiple sources in Excel

I am trying to make a list in Excel that has as its output a list of unique items that appear multiple times in different sources of the excel sheet. Ideally, the list should be automated automatically as more data is inputted in the sources, but no additional sources will be added. I used a formula I found here, but it only works for a single source of data (and this data then needs to be adjacent).
I attached a picture of my document with circles enclosing the sources and pointing to where the list should be created. I highlighted in yellow a cell in the top row that does not get outputted (because I don't know how to do this). Picture for reference
I can provide the excel document if need be.
I am thinking of consolidating the sources to a single source, but I would like to solve this in a more sophisticated way that does not involve creating more tables.
As per your screenshot it seems you are using tables. Then try below formula-
=IFERROR(INDEX(FILTERXML("<t><s>"&TEXTJOIN("</s><s>",TRUE,Table1[Machine],Table2[Machine])&"</s></t>","//s[not(preceding::*=.)]"),ROW(1:1)),"")
Please note: TEXTJOIN() is available to Excel-2019 & Excel-365 and it has limitation to 50,000 data only.
To learn more about FILTERXML() read this article from JvdV.

How to build an excel form builder?

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

Creating rtf template with multi spreadsheets(excel)

I have created a data template report(xdodtexe) and the output will be in excel with multiple spread sheets. My E-Business Suite version is r12.1.3 and I am using Office 2013.
I have created an rtf and in two separate pages layouts are there. For example department in page and employees in page. I am using <?spreadsheet-sheet-name: department?> for naming the sheets but the sheet name comes as "fndwrr" and both the outputs are in the same excel sheet without splitting into two different sheets.
I have also used <?split-by-page-break:?> for splitting into two sheets but this also does not work.
Hello there fellow "BI Publisher self-torturer" :-),
First of all, I would suggest you go over this document here, as the best method of manipulating XLS outputs is by using Excel templates.
Second of all - it would have been great if you supply a sample of the xml data + a sample of the template code as you have it.
Btw, the split-by-page-break that you're trying is for other output formats, such as PDF, RTF etc. which follow a paging rule, unlike XLS.
This being said - I am pretty sure you can't do that using an RTF template.
Also, you should mention the version of the XDO Engine/BI Publisher, because Excel templates are available since version 11.1.15 of BI Publisher.
Pay special attention to the following section Table 3-2 Column Entries, as you would need to put the XDO_SHEET_? and XDO_SHEET_NAME_?, the first being the split/group criteria and the second the actual name of the sheet.
Cheers

Export different sized tables to same excel tab in SAS

I have two tables A and B that have a different number of columns, with absolutely no match between the columns names but one differentiator (let's call it ID).
I'm programming a macro in SAS, so that it outputs an excel file such as:
each sheet within the excel is corresponding to an ID.
within each sheet, I have:
content of table A
empty line
content of table B
The problem is that I can't append rows of data in SAS because columns are non matching.
Any thoughts?
Thanks for your help!
You can use DDE for that - Dynamic Data Exchange Protocol. Basically what it does is simulating user's commands and clicks on various menus and buttons in Excel (and also in Word and some other applications) - or, more exactly, issues commands on now obsolete Macro Language for Excel ver. 4 (X4ML).
So, using DDE, you can in SAS program launch Excel, open or create workbook, create tabs (spreadsheets), put your data into specified cells range, format any single cell or range etc.
Here's a good intro into this topic:
http://www2.sas.com/proceedings/sugi26/p011-26.pdf

Resources