how to check which column values changed in 2 different excel files using alteryx - alteryx

There are 2 excel files named day1.xlsx and day2.xlsx having the same column structure. now I have to find which columns values are different and also show its previous value and the updated values. There is a ID column for Day1 file and Day2 file for the link up.
Below is an example:
Below is image for day1 file data
Below is image for day2 file data
Output should look like below

Load both files. For each of them separately, use the Transpose tool: in 'Key columns' check the "ID" column, in 'Data columns' check all your other columns. Then join both of the streams using the Join tool, joining on "ID" and "Name". Within the join tool, rename the "Value" column from the left input as 'Old value' and the "Value" column from the right input as 'New value'. This will give you the table you are looking for. You can then easily apply a Filter with the formula expression "[Old value]!=[New value]", which will only keep the columns that changed.

Related

Match variables between two excel files

I have two datasets containing occupations names and their description in excel:
I want to create a new dataset with all occupations that match between both datasets.
This can be achieved using a VLookup.
For ease, have all three datasets within the same spreadsheet, if you can, if not doesn't matter, but have them open.
Copy all the Occupations (not descriptions) from DataSet1 into Dataset 3.
Enter the formula below in dataset3 under the occupation description header.
Occupation = cell of the occupation in dataset 3.
Dataset2 Range = Enter the range of the searchable content ensuring the occupations are the left most(First selected).
Drag the formula down
Select All and insert as Table and filter out on "No Match").
Formula example:
=IFERROR(VLOOKUP(Occupation,Dataset2 Range,2,FALSE),"No Match")

excel vlookup in tables - search for row and report value in column using column name

I have a database table that is structured like this
SAP Number, FOW, WD, DG
In a different sheet I am using data from this list
It looks like this
SAP Number, WD, DG, ....
The SAP Number is given, WD and DG are searched using VLOOKUP
=VLOOKUP($A2,Objektive!$B:$M,10,FALSE)
This however is difficult to read and could be solved much easier.
I know that the search value is in $A2, and I know that the value is in a tabular named "WD".
Is it possible within Excel to search for the Row similar ot VLOOKUP, but use the column using the column name as [#[WD]]
Here some peudo-code
=VLOOKUPTABLE($A2,Data[#[WD]],FALSE)
If your data table starts from the first column, you can use the COLUMN function to determine the index of the column you want to return data from in the table using the name of that column.
=VLOOKUP($A2,Data,COLUMN(Data[WD]),FALSE)
Alternatively you can use Index/Match to directly reference the columns you want to match and return data from.
=INDEX(Data[WD], MATCH($A2, Data[SAP Number], 0))
If you create a table from the Excel (select any of the cells and press Ctrl + T) you gain access to named references which you can use in Excel formulas. Just make sure your data contains headers.

Excel: If Cell in Column = text value of X, then display text (in the same row, but different column) on another sheet

This is a confusing request.
I have an excel tab with a lot of data, for now I'll focus on 3 points of that data.
Team
Quarter
Task Name
In one tab I have a long list of this data displaying all the tasks for all the teams and what Quarter they will be on.
I WANT to load another tab, and take that data (from the original tab) and insert it into a non-list format. So I would have Quarters 1,2,3,4 as columns going across the screen, and Team Groups going down. I want each "task" that is labeled as Q1 to know to list in the Q1 section of that Teams "Block"
So something like this: "If Column A=TeamA,AND Quarter=Q1, then insert Task Name ... here."
Basically, if the formula = true, I want to print a list of those items within that team section of the excel document.
I'd like to be able to add/move things around at the data level, and have things automatically shift in the Display tab. I honestly have no idea where to start.
If there is never a possibility that there could be more that 1 task for a given team and quarter, then you can use a formula solution.
Given a data setup like this (in a sheet named 'Sheet1'):
And expected results like this (in a different sheet):
The formula in cell B2 and copied over and down is:
=IFERROR(INDEX(Sheet1!$C$2:$C$7,MATCH(1,INDEX((Sheet1!$A$2:$A$7=$A2)*(Sheet1!$B$2:$B$7=B$1),),0)),"")
I came across this situation. When I have to insert the values into a table from an Excel sheet I need all information in 1 Column instead of 2 multiple rows. In Excel my Data looks like:
ProductID----OrderID
9353510---- 1212259
9650934---- 1381676
9572474---- 1381677
9632365---- 1374217
9353182---- 1212260
9353182---- 1219361
9353182---- 1212815
9353513---- 1130308
9353320---- 1130288
9360957---- 1187479
9353077---- 1104558
9353077---- 1130926
9353124---- 1300853
I wanted single row for each product in shape of
(ProductID,'OrdersIDn1,OrderIDn2,.....')
For quick solution I fix it with a third column ColumnC to number the Sale of Product
=IF(A2<>A1,1,IF(A2=A1,C1+1,1))
and fourth Column D as a placeholder to concatenate with previous row value of same product:
=IF(A2=A1,D1+","&TEXT(B2,"########"),TEXT(B2,"########"))
Then Column E is the final column I required to hide/blank out duplicate row values and keep only the correct one:
=IF(A2<>A3,"("&A2&",'"&D2&"'),","")
Final Output required is only from Column E
ProductID Order Id Sno PlaceHolder Required Column
9353510 1212259 1 1212259 (9353510,'1212259'),
9650934 1381676 1 1381676 (9650934,'1381676'),
9572474 1381677 1 1381677 (9572474,'1381677'),
9632365 1374217 1 1374217 (9632365,'1374217'),
9353182 1212260 1 1212260
9353182 1219361 2 1212260,1219361
9353182 1212815 3 1212260,1219361,1212815 (9353182,'1212260,1219361,1212815'),
9353513 1130308 1 1130308 (9353513,'1130308'),
9353320 1130288 1 1130288 (9353320,'1130288'),
9360957 1187479 1 1187479 (9360957,'1187479'),
9353077 1104558 1 1104558
9353077 1130926 2 1104558,1130926 (9353077,'1104558,1130926')
You will notice that final values are only with the Maximum Number of ProductSno which I need to avoid duplication ..
In Your case Product could be Team and Order could be Quarter and Output could be
(Team,Q1,Q2,....),
Based on my understanding of your summary above, you want to put non-numerical data into a grid of teams and quarters.
The offset worksheet function will work well for this in conjunction with the match or vlookup functions. I have often done this task by doing the following steps.
In my data table, I have to concatenate the Team and quarter columns so I have a unique lookup value at the leftmost column of your table (Note: you can eventually hide this for ease of reading).
Note: You will want to name the input range for best formula management. Ideally use an Excel Table (2007 or greater) or create a dynamically named range with the offset and CountA functions working together (http://tinyurl.com/yfhfsal)
First, VLOOKUP arguments are VLOOKUP(Lookup_Value,Table_Array,Col_Index_num,[Range Lookup]) See http://tinyurl.com/22t64x7
In the first cell of your output area you would have a VLOOKUP formula that would look like this
=Vlookup(TeamName&Quarter,Input_List,Column#_Where_Tasks_Are,False)
The Lookup value should be referencing cells where you have the team names and quarter names listed down the sides and across the top. The input list is from the sheet you have the data stored. The number three represents the column number the tasks are listed in your source data, and the False tells the function it will only use an exact match in your putput.

Advanced Find And Replace In Excel

I have a product list excel sheet, and category list excel sheet.
In the category excel there is cat_id and cat_name one corresponds to the other.
I need to do a find and replace on every cat_id and replace the numbers in the product list with the cat_name.
How would I do this in excel?
I do not think you can achieve what you are looking for with just Excel formulas in one step. However, you could use the following approach.
Let's assume that the product list sheet is called ProductList and the other one is called CategoryList. Also, let's say that the cat_id items on sheet ProductList are in column A and the cat_id and cat_name columns on sheet CategoryList are in columns A and B.
First you have to make sure that the items on sheet CategoryList are sorted in ascending order on cat_id. Then, in a cell on the first line of an empty column on sheet ProductList (let's say that is cell Q1) , enter the following formula:
=LOOKUP($A1,CategoryList!A:A,CategoryList!B:B)
Then select cell Q1 and drag the lower right corner all the way down until the end of the data in your sheet. After this, column Q will contain the desired values.
To actually replace the original values in column A with those in Q, you need to copy whole column Q and do "Paste Special" into column A, where you select the radiobutton "Values". After that, you can delete the temporary column Q.
If you want to be robust with regard to cat_id items not present on sheet CategoryList, you could add a check, which makes the formula as follows (on one line):
=IF($A1<>LOOKUP($A1,CategoryList!A:A,CategoryList!A:A),
"Not Found",LOOKUP($A1,CategoryList!A:A,CategoryList!B:B))
The Powershell script extension PSExcel have some join feature:
PSExcel: https://github.com/RamblingCookieMonster/PSExcel
Method:
Join-Worksheet -Path
I have tried the search and replace with success.
Also refer to my answer here:
Perform find & replace in excel doc in C#

How to extract rows in Excel with a given name by function 'xlsread' in Matlab?

I have 100 Excel sheets of financial statement to extract selected data. For instance, the first sheet is from company A, its 'Total assets' item is in A10, but in the second sheet the 'Total assets' is in A17, the third in A12....
So every financial statement's items have different positions in their Excel sheet. Is there any way I can extract them by specify their name, such as 'Total assets', 'Other earning assets' etc, then I don't need to read their location one by one.
sorry about the delay. You'll want to import the data using
[num,txt] = xlsread('EXCELFILEHERE');
num will be a matrix of the numerical values while txt is a cell array of all the text values. Next you'll need to search txt for your desired phrase using something like
[row,col] = find(ismember(txt,'Total Assets')==1)
This will give you a list of columns and the corresponding rows where you'll find that phrase in txt. Then it's just a matter of plugging that row back into num to get the data you need. Keep in mind that the sizes of num and txt might be a bit off depending on how your data is formatted. I suggest .xls files if you can.

Resources