Combine the multiple Match Values in Excel - excel

I want to combine Multiple Match Values in Excel an illustrative picture
the example is in the picture.
I want to concat the the match values in one cell
thanks in advance

How large is your data source ?
Are you considering VBA ?
If you need something quick and dirty, one way could be to use intermediate columns that will add item if they match a given ID. For example, if you have your data in column A and B, then column C could be based on formula_in_C2 = IF(A2="v1",C1&B2,C1).
Expand the formula on the whole column. The last row will give you what you are after. Create similar columns for the other IDs.

Related

Using VLOOKUP() to compare and filter two columns in different worksheets

When I filter a column using VLOOKUP() between two worksheets, how can I also filter all of its respective row elements too? Maybe this will help illustrate my question.
I have two worksheets:
Sample0.xlsx
Sample1.xlsx
I want to filter the items that are in the New list column of Sample1.xlsx but are not in the Old List column of Sample0.xlsx. And have its respective matching Type row elements also filtered along with it.
I'm using the following VLOOKUP() formula:
=FILTER(A2:A15,ISNA(VLOOKUP(A2:A15,[Sample0.xlsx]Sheet1!$A$2:$A$15,1,FALSE)))
And I get these results:
How can I also filter the Type column that goes along with the New List column that I just filtered out? I hope it makes sense. Thanks
The first argument of FILTER() describes what column(s) you want to return, irrespective of what columns you want to match. Your formula =FILTER(A2:A15,… specifically means “just give me the column A values for whatever values match.”
I believe you want the first argument to be =FILTER(A1:B15,…

Excel Multiple Values for one anwer

Hello looking to solve a problem in excel. Here is an example of my data: Please see attached file.
I am looking to just grab One barcode to one value(Yes/No) for example if I wanted to see how many Yes answers there are its skewed because you can have multiple Yes/No values per barcode. which would count as 2 instead of just one value. I hope this makes sense. I tried a pivot table and everything because we need to set the barcode to a count distinct but I am lost on how to create a formula or something that would work. I cannot Remove multiple values because each line contains data I need since this is just an example.
I think you're looking for countifs. =Countifs(a:a,1,b:b,"yes")
This will only count instances where the bar code is 1 and column b is yes
You can use COUNTA with UNIQUE and FILTER formulas nested. =COUNTA(UNIQUE(FILTER(A:A,B:B="yes")))
The filter formula tells Unique to only look at rows where column B = Yes. Unique then creates an array of just unique entries. While CountA will count how many entries are in the array.
I added some extra entries to the example so it showcases it better. I colored the first instance of each unique entry blue to highlight the instances the unique formula is pulling.

VBA to return the occurrence of a name in a list

What im trying to achieve is the following in excel:
example
So what i need to do is list the occurrence of cat and dog based on the index (a or b). I have a large amount of data that i need to do this on
In lieu of vba you can use pivot.. create a pivot based on column 1 and column 2 and set the value of pivot as count of column 2.... u can then make the pivot range dynamic by using offset function to adjust automatically as per the height of the table....
Why don't you use a function?
=> Countif(A1:A15,"Cat")
Adjust the function the way you need it and it should output the number of occurrences.
It is even possible to combine multiple criteria.
https://support.office.com/en-us/article/COUNTIF-function-e0de10c6-f885-4e71-abb4-1f464816df34
Hope this helps

In excel - comparing column of items to same array

I'm working in excel.
I've got a column of numbers.
I want to compare this column to another column of numbers and find exact matches. Then show these matches in another column.
I've tried using MATCH but I cannot get one column to move through the numbers in it and the other to stay the same.
Is there anyway to do this?
If your columns are say A and B (and either both with or both without headers) please try:
=IFERROR(INDEX(B:B,MATCH(A:A,B:B,0)),"")
in the first row of data, copied down to suit. The result should be in the same order as ColumnA, so you might want to sort A.

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