excel only show rows with difference values - excel

Hi oh you all wise people.
Not sure if it is doable.. But here goes.
I have a "master" sheet with a set field set (it is the same fieldset I extract every time)
Sheet1:
A B C
-----------
1 B 2 BA
2 C 5 AB
Sheet3:
A B C
-----------
1 B 1 BA
2 C 5 AB
Since B:2 has been changed from 2 to 1, it should result in:
Sheet2:
A B C
-----------
1 B 2 BA
I would like to get the changes between my "master" sheet and the "next extraction" of data.
The challenge (I think) is that I only want the rows with changes displayed in a third sheet.
Sheet1 : Master Data
Sheet2 : Diff Reporting
Sheet3 : Weekly Extraction
Anyone?

Following dot.Py's suggestion, I would:
Copy both row sets to a new sheet
Add a column showing which sheet each row originally came from, let's call it "Source".
Use the 'Remove Duplicates' feature in the Data tab, but do not use the "Source" column as a duplicate criteria. (http://www.excel-easy.com/examples/remove-duplicates.html)
After removing duplicates you'll have both the old and new row for rows that have changed.
Filter based on the "Source" column and then delete any rows from the old sheet.

Related

combine two sheets and edit one column

On Excel Sheet 1, contain more than 2 columns, the first two columns is as follows. The list would update continuously, i.e., AC, AD.... would be added at the later time.
Drug Name
Mechanisms
AA
M1
AB
M2
On Excel Sheet 2, contain more than 2 columns, the first two columns is as follows. The list would update continuously, i.e., T3, T4.... would be added at the later time.
Test Name
Company
T1
C1
T2
C2
I want to prepare and update the Sheet 3 automatically, whenever the sheet 1 or sheet 2 is updated (with additional rows). Only the first two columns from Sheet 1 and the 1st column from Sheet 2 are needed. The 2nd column of sheet 2 is not directly copied, but all changed from C1, C2,... to N/A automatically.
Drug Name
Mechanisms
AA
M1
AB
M2
T1
N/A
T2
N/A
Would you mind to advice how to generate the Sheet 3 on the same EXCEL automatically?
Many thanks!

Excel Index Match syntax question. getting a #N/A

I starting to get the concept of how Index and Match are supposed to work, but confused as to why this formula does not work.
I have 4 user sheets with tables in use, combining data from 3 into one. This is my current setup, which is working well so far.
Sheet1 "tblClickers" (export from phishing report):
Column A = Email
Column B/C = First/Last Name
Column N = phish failure data
Sheet2 "TblAD_US" (AD Export):
Column A = Title
Column C = Name
Column E = Email
Column F = Department #
Sheet3 "TblComb": combination sheet listing relevant data from other three.
Column A = "=tblAD_US[title]"
Column B = "=tblAD_US[Name]"
Column D = "=tblAD_US[EmailAddress]"
Column E = "=tblAD_US[Department]"
Column K = "=INDEX(tblClickers[Failures],MATCH([#[Email Address]],tblClickers[Email Address],0))"
Sheet4 "TblAD_Depts" (report listing department heads):
- column c = Department #
- Column D = Department head
I now want another column in Sheet 3 that lists the matching department head (sheet4/columnD) associated with the departments of each user. The data point I will match on is the Department# listed in Sheet 2/3 and Sheet 4.
I tried using the same formula syntax as I did for Clickers, but I'm getting a #N/A error.
=INDEX(TblAD_Depts[Department Head],MATCH([#Department],Tbl_Am_Depts[Department],0))
Where am I getting mixed up here? Do I need to reference the original data source for "Department#" in sheet 2 or can I "reference the reference" in sheet3?
tl;dr, want a new column L in Sheet 3. Values returned will be column D from Sheet 4, using Column E in sheet 3 and Column C in sheet 4 to match on.
Okay, (#JvdV) had it figured out. Even though I selected each column for "Department" and changed the format to [Number], one column was still listed incorrectly.
For some reason, Column C in Sheet 4 had each "Number Stored as Text". I'll just do a [Text to Column] and call it a day!
Thanks!

Populating data from columns in different sheets

I am creating an Excel sheet for budgeting. I have sheet1 with a table having columns as:
Categories: a b c d
Price: 1 2 3 4
Similarly in sheet2:
Category: e f g h
Price: 5 6 7 8
Now I have opened a sheet3 and created a table with All_Categories as one of the column headers.
What I wanted in sheet3 is, under All_Categories: a b c d e f g h
Edit: I am not able to post images since it says i need 10 points.
check this link
Check the above link which has 3 images. In 3rd image there is Ac column and it should contain all the data in C1 column of first image and C2 column of 2nd image
If you want to copy the cells from Sheet1 into Sheet3 and then add the cells from Sheet2 onto the end of them, you need something like this starting from Sheet3!B5 and pulled down:-
=IF(ROWS(B$5:B5)<=COUNTA(Sheet1!B$5:B$15),Sheet1!B5,
IF(ROWS(B$5:B5)<=(COUNTA(Sheet1!B$5:B$15)+COUNTA(Sheet2!B$5:B$15)),
INDEX(Sheet2!B$5:B$15,ROWS(B$5:B5)-COUNTA(Sheet1!B$5:B$15)),
""))

INDEX MATCH obtaining values for duplicate names

I have one example table with the following data in Sheet1 with the following random data
------A ----------------- B ----------------------C ------------------------D
1 --First--------------Last-----------------Start Date--------------End Date
2 --John--------------Smith--------------08/08/2014------------01/01/2015
3---John--------------Smith--------------08/11/2014------------17/11/2014
4---John--------------Smith--------------06/06/2014------------23/12/2014
5---Abel--------------Jones--------------14/05/2014------------29/04/2015
6---Abel--------------Jones--------------04/07/2014------------26/04/2015
Then I have another table in Sheet2
------A ----------------- B ----------------------C ------------------------D
1 --First--------------Last-----------------Start Date--------------End Date
2 --John--------------Smith---------------------------------------------------
3---John--------------Smith---------------------------------------------------
4---John--------------Smith---------------------------------------------------
5---Abel--------------Jones---------------------------------------------------
6---Abel--------------Jones---------------------------------------------------
I am using INDEX MATCH to transfer the data between the two sheets.
=INDEX(Sheet1!$C:$C,
MATCH(1,INDEX((Sheet1!$A:$A=$A3)*(Sheet1!$B:$B=$B3),0),0))
To populate column C with the start dates from Sheet1.
=INDEX(Sheet1!$D:$D,
MATCH(1,INDEX((Sheet1!$A:$A=$A3)*(Sheet1!$B:$B=$B3),0),0))
and this to populate column D with the end dates.
The problem is, when I perform this INDEX MATCH function, for a duplicate name, it will only copy over the first value. So this formula will paste 08/08/2014 into all 'John Smith' Start dates in column C of Sheet2.
How do I obtain all values so that C2 should be 08/08/2014, C3 should be 08/11/2014, C4 should be 06/06/2014 etc.
One solution would be to insert a column in both sheets with a "running count" of instances of the same name. For example, insert col C and in C2 enter =IF(A2&B2 = A1&B1, C1+1, 1). This starts the count at 1 if the concatenated first and last name is new, and increases the previous count by 1 if not. So you would have
First Last Count by Person
John Smith 1
John Smith 2
John Smith 3
Abel Jones 1
Abel Jones 2
George Washington 1
Thomas Jefferson 1
Thomas Jefferson 2
You can then add this column to your MATCH() function (and change the lookup column as necessary).
Edit: It is worth noting that this requires your raw data is sorted by name.
You can narrow the $A:$A refferances to something like $Ax+1:$Ay where y = last row of your excel sheet and x is position of previous occurance of this name/surname (you could store this in some dummy column).

Match name and copy row from sheet 1 to sheet 2 on corresponding column

I asked a very similar question to this one here, but I am trying to identify if a cell's numerical value is contained in a list of cells on a different sheet. If the cell from sheet A matches a cell in sheet B, mark a different column in B with a corresponding row in sheet A, otherwise leave it blank. An example is below:
Sheet A
Column A | Column B
-------------------
1 John
2 Sue
4 Bob
I would like the corresponding Sheet B to populate Column B like this:
Sheet B
Column A | Column B
-------------------
2 Sue
3
4 Bob
=IF(ISNUMBER(MATCH(I2, 'SALT, WOD, Champion Members'!A:A, 0)), "Y", "N")
I have been using the above answer to populate a different column in the same workbook, and I'm thinking I can maybe use this formula, but instead of "Y" or "N", somehow preserve the row.
You need to use VLOOKUP as already mentioned. But you will need to use another function to check for existence of the value, else you will get #N/A against ID 3
I used COUNTIF
=IF(COUNTIF($A$2:$A$4,E2)=0,"",VLOOKUP(E2,$A$2:$B$4,2,FALSE))
Use the VLOOKUP function:
=VLOOKUP(A1;Sheet1!A:B;2;FALSE)
Where A1 is the value you want to look up, Sheet1!A:B is the original sheet with the data.

Resources