How to automatically populate column values into another sheet in Excel? - excel

I have certain columns in sheet one of an excel file that looks like this.
The player No and the Player has been manually created while the Sold to column has been selected using data validation (list).
Right now the sheet two of the excel file looks like this.
Now the question is how do I automatically populate the values of Player No and Player into the respective team(s)?
Expected output is as follows :-
I am currently using Excel version 2013. Can you suggest whether I should use any formula or Macros to achieve this ? Many thanks in advance.

You need to filter data based on condition. There are many way to do that. One of approch is as following.
As per below screenshot use below formula
=IFERROR(INDEX($A$2:$A$7,AGGREGATE(15,6,(ROW($A$2:$A$7)-ROW($A$1))/($C$2:$C$7=$F$1),ROW(1:1))),"")
You have to adjust the formula for other team. For Sheet 2 just you need to refer Sheet 1 in formula like
=IFERROR(INDEX(Sheet1!$A$2:$A$7,AGGREGATE(15,6,(ROW(Sheet1!$A$2:$A$7)-ROW(Sheet1!$A$1))/(Sheet1!$C$2:$C$7=$F$1),ROW(1:1))),"")

Related

Copying single cell value when multiples exist in one column in Excel

I need to copy ID numbers from one spreadsheet with the raw data to the spreadsheet with the countifs formulas that works everything out for me. But each ID number has multiple entries so it is repeated many times in the ID column of the raw data sheet. I would like to copy one ID number for all of the ID numbers entered in the raw data sheet, is there a way to ask Excel to ignore these multiple entries and copy only one across? I've attached an example screenshot but I have thousands of entries so it would not be possible to do this manually. Thanks!
What version of Excel are you using? If you are using 365 or 2021 the UNIQUE function will do this. If an older version see this post: https://superuser.com/questions/49614/how-do-i-get-the-distinct-unique-values-in-a-column-in-excel

PIvot and Formula function to show unique plus multiple results

I've been racking my brain how to accomplish this but what I am trying to do is use a a pivot table to identify how many IDs only have the 1 skill and by which site.
I also want to show if they have more than one skill. For example they have Maths and Writing, by site.
I am also trying to do this via a formula.
Might sound a bit silly and i'm sorry but was hoping someone may be able to help.
I have shared my Google sheet showing this (i'm assuming I can do the same in excel).
https://docs.google.com/spreadsheets/d/1btkhhYyVG_GYrz_SYXwO4wUsxq3ay3eZv5AOF7h95o4/edit?usp=sharing
As per the sample data provided, it seems that the ID's have just one site, so showing the order ID\Site\Skills, therefore I would suggest the PivotTable layout below, adding a subtotal to count the quantity of skills per ID, remove the Grand Totals as they are not required.
You may also want to sort the Data by the Skills count in ascendant order to show first the ID's with just one skill.
So this is your PivotTable:
Another Layout:
You can do it in excel. Either you make a PivotTable and make something like this.
or you can just copy the ID, site and insert the skills like I have done in this picture.
Then use these formulas in the field. In the first column No Skills (Number of skills) I use the following formula: COUNTIF(A:A;F2) Where A:A are the first column ("ID") in your original table and then in the rest cells I use the following formula COUNTIFS($A:$A;F2;$B:$B;I$1) where A:A are the same as above and B:B is the second column "Skills" in your original table and I1 is the Skills in the new table..
Is this the result you want?
If so, it was just a matter of moving "Site" above "skill" under the Column section of the Pivot Table Editor. See below:

How to extract data using two Filters in Excel?

I am school student and new to the Forum and I need help with some problems.
I have been lately trying to build a Inventory Sheet in Excel, where there is a table of Partnumber, Responsible Department, Delivered Calendar Week and Product type.
I want to filter the data using two filters, for example: The parts that has been taken by customer on calendar week KW(10).
And I then need to take the total number of this filtered parts to another sheet.
Can anyone help me with this?
There is no need for VBA. You can use a simple formula for this in the example shown below:
=COUNTIFS(Tabelle1[Responsible Department],$F2,Tabelle1[Delivered KW],G$1)
Enter this formula in G2 and copy it to the other cells. Tabelle1 is the name of the formatted table.

extract specific rows in a new sheet based on criteria

I have an excel file with hundreds of steps(one on each row) and each column represents a scenario. If that step is executed in the scenario there is a value "x" in the same row.
I would like to extract the data from this sheet to another sheet where for each scenario I would see just the steps executed in it. (a scenarios has a few steps).
Here is a representation of what I would like to do
I tried using advanced filtering function but it did not give me the results i would like and I am not very skilled at writing IF conditions. Any help would be appreciated.
Try this array formula in J3 if your data is as per my screenshot and drag it as required.
=IFERROR(INDEX($A$3:$A$12,SMALL(IF(ISTEXT(B$3:B$12),ROW($A$1:$A$10)),ROW(A1))),"")
You may try to use a pivot table, where rows are the steps and columns are the scenarios. Use scenarios as values and using the count instead sum.
That way you can later on the output sheet use de getpivotdata to fill it.

Find and Compare Two Columns Excel (With Screenshots)

I have a spreadsheet that will occasionally get new data that I don't know the contents of, I just have to add it to the spreadsheet. Some of the new data is just updating rows that are already in the spreadsheet, and other data is adding new rows. I'm looking for a way to add a column that will tell me if something has changed in the row when I compare the old spreadsheet to the new one.
The sheets have one column that will always have a unique value among all the rows, so I can use that to match rows if the sheets aren't sorted the same way. Here are some screenshots to show what I'm trying to do:
Old Spreadsheet:
New Spreadsheet:
The only solution I can think of is a large nested IF formula that compares each column one by one, something like:
=IF(Old!B2=New!B2,IF(Old!C2=New!C2,"NO","YES"),"YES")
The problem with that is that it gets very hard to look at since my actual data is using 33 columns (not including this "Changed?" column) and new columns could be added in the future.
I'm not very technical with Excel, nor have I ever used VBA, so I apologize in advance if there is a simple/obvious solution that I'm missing.
Thanks in advance for your help.
Using your example, in the 'New' sheet cell D2 and copied down:
=IF(COUNTIF(Old!A:A,A2)=0,"YES",IF(SUMPRODUCT(COUNTIF(INDEX(Old!A:AG,MATCH(A2,Old!A:A,0),0),LEFT(A2:AG2,254)&"*"))=SUMPRODUCT(COUNTIF(A2:AG2,LEFT(A2:AG2,254)&"*")),"NO","YES"))
vlookup would also work well for this problem.
in D2, the formula would be:
=IF(AND(VLOOKUP(A2,Old!A:C,2,FALSE)=B2,VLOOKUP(A2,Old!A:C,3,FALSE)=C2),"NO","YES")
The column numbers (2 and 3) are the columns that correspond to the data you are trying to match, using the ID column.
It's possible to find the appropriate column using MATCH if the column names you have match the column names in the old sheet
This would make the formula look more complex, but Excel would adjust the Old!A:C reference if more columns are inserted.
The formula would look like this to match against column names
=IF(AND(VLOOKUP(A2,Old!A:C,MATCH($B$1,Old!$1:$1,0),FALSE)=B2,VLOOKUP(A2,Old!A:C,MATCH($C$1,Old!$1:$1,0),FALSE)=C2),"NO","YES")
The difference between this and the last one is the use of MATCH($B$1,Old!$1:$1,0) to find the column (using $s to anchor the lookup values)
In this case, specialized software for Excel compare is better.
My company use this software. Check it out.
http://www.suntrap-systems.com/ExcelDiff/
http://www.youtube.com/watch?v=QQgnWr_RT-8

Resources