Excel - Comparing Two columns to get a difference count - excel-formula

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.

Related

How to modify a sheet column regarding another sheet column?

I have 2 excel sheets (Sheet1 and Sheet2).
In sheet1 I have a table, I want to modify the table regarding to the second sheet as shown in the image such that the column in table of sheet1 (column called needed) looksup values in sheet2 and if id(1) is found in colmn of id in sheet2 then the cell of this id should get the value that corresponds to the same id in sheet 2.
That is what I basically want, but I can't figure out how to do that in excel
On Sheet1 in cell D2 enter the following formula:
=VLOOKUP(A2;Sheet2!$A$2:$D$5;4;FALSE)
Note that you might need to change the semicolons ; to regular commas , depending on your version of Excel. Then just copy that cell down the entire column of the table.

Autofill Excel if A1 = sheet2 A1 then B1 = Sheet2 B2

I am maintaining an excel sheet where Sheet1 A1 would be the name of people and B2 would be their contact number. All of the details are in sheet 2 row A and B.
So, what I want is if I put a valid name (i.e. should be in Sheet2 A) then it automatically finds the number of that name and adds in the second row. Is this possible? I have around 10-15 contacts there.
Assuming Sheet workers list is as follows:
then in Cell B2 of Sheet assignment received enter either of the following formulas
=VLOOKUP(A1,'workers list'!A2:B10,2,FALSE)
or
=INDEX('workers list'!B2:B10,MATCH(A1,'workers list'!A2:A10,0))
Change range as required.
Use this formula in sheet -1 B2 cell "=IF(A2="","",VLOOKUP(A2,Sheet2!$A:$B,2,0))"
and Dropdown this formula till you want
Sheet-2
Sheet-1

How to copy one sheet 1 colums to another sheet 2

I have two sheets Sheet1 and Sheet2. From Sheet2 there are two columns one with the stock name (B) and the other with Grade (F). In sheet1 I would like to match the Grade with the stock names from sheet2.
There are few that will not match anything in Sheet1 just leave blank.
Here is a pick of Sheet1 & 2 with Sheet1 column (B) to be filled in.
Sheet1 & Sheet2
Sheet3 Results into Column B
Thnx in advance for all your help.
Marty

Match concatenated columns from this worksheet to another worksheet with multiple conditions

I have two worksheets. One is Sheet1 and another is Sheet2.
In Sheet2, I want to use a formula to get the value from column N in Sheet 1.
I concatenate column A:B:C or A:B:D or A:B:E in Sheet1 and if any of this three conditions match X&Y&Z in sheet2, I get the value from column N in Sheet 1.
The formula below seems make sense to me but I get #Value! error.
=INDEX(SHEET1!$N$2:$N$100,MATCH(X2&Y2&Z2,OR((SHEET1!$A$2:$A$100&SHEET1!$B$2:$B$100&SHEET1!$C$2:$C$100),(SHEET1!$A$2:$A$100&SHEET1!$B$2:$B$100&SHEET1!$D$2:$D$100), (SHEET1!$A$2:$A$100&SHEET1!$B$2:$B$100&SHEET1!$E$2:$E$100)),0))
I suggest inserting a new ColumnA into Sheet1 populated from A2 down to suit with:
=B2&C2&D2&E2&F2
then in Sheet2 applying:
=INDEX(Sheet1!$O$2:$O$100,MATCH(X2&Y2&Z2,Sheet1!$A$2:$A$100,0))
This assumes your existing C, D and E columns in Sheet1 are blank if not containing the value you seek.

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.

Resources