compare 2 sheets (very big) in excel - excel

I want to compare 2 sheets, each sheet has 1 column with id numbers.
there is a difference of 30 rows between the sheets.
sheet 2 is the biggest.
I want to find the 30 rows which not appear in sheet 1,
how should I find it with vlookup?
thank you in advance

Assuming your IDs on Sheet2 are in column A (with a header in Row 1), try this formula in cell B2 and copy it down your range:
=IF(ISERROR(VLOOKUP(A2,SHEET1!$A$2:$A$1000,1,FALSE)),1,0)
You will need to change $A$1000 to the last cell in your range on Sheet1. The 1's will be the 30 missing rows, which you can now filter on.

Related

copy row values from one sheet to another sheet for the matched records in Excel

I have two sheets in an excel workbook and Sheet1 has the following columns:
and Sheet 2 has only ID column:
If ID in sheet 2 matches with ID in sheet 1 I want to write col1 and col2 values in sheet1 to sheet 2
I used VLOOK up to identify the matched records but I am manually copying the values of the matched records into sheet 2 and I have to do this for 100,000 rows. I really appreciate if I can get some help.
In your sheet 2, in cel B2 write this formula: =IFERROR(INDEX(Sheet1!$A$1:$C$4,MATCH(Sheet2!A2,Sheet1!A:A,0),2),"")
In your sheet 2, in cel C2 write this formula: =IFERROR(INDEX(Sheet1!$A$1:$C$4,MATCH(Sheet2!A2,Sheet1!A:A,0),3),"")
Change matrix offcourse to your needs and drag down!

Excel - Comparing Two columns to get a difference count

Scenario:
An Excel Workbook has 3 sheets. Sheet1 has an 'original' list of users WHICH DOES NOT CHANGE, Sheet2 has a list of 'current' users which does change, Sheet3 has some totalled information, like the total number of users on Sheet1 who are still on Sheet2.
Problem:
I can flag and count those on Sheet1 who are no longer on Sheet2, and provide a total count on Sheet3 - this uses another column on Sheet1 and an IF statement - but I can't do that for those on Sheet2 who are not on Sheet1 (someone was added, say) because the Sheet1 information is overwritten weekly by a manual process.
Question:
How do I show, on Sheet3 and from Sheet3, the total count of the number of users on Sheet2 who are not on Sheet1 when I can't add a column to Sheet2?
Many thanks in advance for your consideration of this problem - NigeH
Further Info:
Sheet1 ColumnA Rows 1-10 - Enter any 10 first names you want.
Sheet2 ColumnA Rows 1-10 - Enter 8 of the names from Sheet1 and 2 new ones.
Sheet3 - without using any new fields on Sheet1 or Sheet2 - and preferably only one field on Sheet3 - show the count of names on Sheet2 that aren't on Sheet1.
Try this array formula (assumes your lists are in column A in both sheets) ...
{=COUNTA(Sheet2!$A:$A)-SUM(IF(ISERROR(MATCH(Sheet2!$A:$A,Sheet1!$A:$A,0)),0,1))}
If you want to show the users that aren't on Sheet1 on Sheet3, fill down this formula ...
=IF(ISERROR(MATCH(Sheet2!$A1,Sheet1!$A:$A,0)),Sheet2!$A1,"")
I have a quick solution not so clever but works.
You will need 2 heaping columns. One column to get all users names from Sheet2
In Sheet3 in cell A1 you should write:
=Sheet2!A1
You should copy this in all cells from A1 to A(user name count);
Then in Sheet3 in cell B1 write:
=IF(ISBLANK(A1),"",VLOOKUP(Sheet2!A:A,Sheet1!A:A,1,FALSE))
You should copy this in all cells from B1 to B(user name count) NOT MORE;
And finally in Sheet3 in cell C1 you will have your count if you write:
=COUNTIF(B:B, NA())
If I get smarter way will edint.

Does any one know how to fetch last entered value from a column which has formula?

I have an excel sheet (Sheet 1) which have data from day 1 to end of the month in two columns (column A & B). In sheet 2 i am maintaining the sum of each day, ie column A+B from sheet 1. So in sheet 2 i have formula in each row to add column A+B from sheet 1. I need to fetch the last displayed (or last entry) non-zero value from this column in sheet 2 which contains the formula and display it in another cell in sheet 2.
For last non-zero value try this formula assuming data in A2:A100, change as required
=LOOKUP(2,1/(A2:A100<>0),A2:A100)

Excel Automatically update a row in another sheet

I have a excel workbook with 3 sheets, sheet1 contains all the data which is split into remanning 2 sheets.
sheet1 data is updated on daily bases therefore i need to split sheet1 and update the reming two sheets, so at the moment i copy a each row from sheet1 and replace corresponding row in sheet2 or sheet3 with new data , each sheet contains the same columns: customer_id, customer_name, customer_surname, customer_deposit, total_deposits.
This requires so much manual work is there way where i can just automatically update a row in sheet2
and sheet3 with the data from sheet1.
Ps. The customer_id never changes so maybe there is a way i could use this t update the rows....?
If you only use sheet 2 & 3 for viewing the data then you can do something like this:
In sheet 2 set the formula for A1 to be
=(Sheet1!A1)
then drag the cell to the left (copying the formula) for however many columns you want. Then drag the higlighted cells down to copy the formula to all the desired cells. Then do the same on sheet 3 but starting at the point you want to split sheet 1. Then update sheet 1 and sheet 2 and 3 will automatically update.

VLOOKUP in 2 sheets of an excel

I have a column in Sheet 1 of an excel which I want to compare with an column of Sheet 2 of the same excel.
The values of Sheet 1 column to be present in some rows of Sheet 2 column (not necessary to be row by row).
How to use VLOOKUP here ?
Something like:
=IF(ISNA(MATCH(A1,Sheet2!B:B,0)),"no match","match")

Resources