I would like to split the rows out in the first table based on comma separated values in Column C.
So columns A,B,D,E would be duplicated for each comma separated value in column C.
So the data would result in the table below.
Thanks
Here's an algorithmic approach you can try
Get a reference to your data range
Loop over the rows in that range
Since you're going to be adding rows, loop bottom to top
For each row
Split the value in column C
If the resulting array has > 1 values, insert rows for the new values
Copy Values into the new rows
Transpose the Split array into column C
Repeat
I am working on a table with thousands of entries. I am looking for a formula that will count all the records in the column A that have data in column B.
Some cells from column A could be merged and being represented by 2 entries in column B which are 2 cells. It is like one cell in column A have 2 cells in column B, being altogether one line. I hope I made myself understandable.
I tried to use like countif, but it's not the case I guess...
I have attached a little example in the below link.
Hope there is someone that could help me with that.
=SUMPRODUCT(--(A1:A5<>"")*--(B1:B5<>""))
The above counts the number of rows where A is not blank and B is not blank
I tried to search the web but no good answer came up.
I got 2 columns (not with same number of rows), that contains values.
I need to count how many times the values are equal ignoring empty cells and duplicates.
Many Thanks!
Suppose the two columns you have are A and B (with data beginning in row 2 because there are headers in row 1). You could make a third column in C with the following formula:
=A2=B2
This will return TRUE for rows where the values in column A and column B are equal to each other and FALSE for those where they are not.
I have two columns in a spreedsheet each with different values, I need to compare the two columns and remove the duplicates from each. I need the columns to stay separate from each other so I cant remove the duplicates and mash the two columns into one. How do I remove the duplicates while keeping the columns separate?
The simplest way for you to do this would be to have one column next to each of your data columns where you can have the formulas.
Say that you have the data in column A and D.
In column B you can write;
=IF(IFERROR(MATCH(A1;D:D;0);FALSE);A1;"")
And copy this to all rows below. In column E you can write;
=IF(IFERROR(MATCH(D1;A:A;0);FALSE);D1;"")
And copy to all rows in E.
This will write out the value if it exists in the other column.
I have two columns in excel that have some shared data and some unique data to each column. What I want is to have two more columns that will have the data that is in Column A but not B and the data that is in Column B but not in A. I have tried using Vlookups but I don't think I can get what I am looking for by doing this.
For Col A items not in column B, try this array-entered formula (entered in some cell, then fill down until it returns blanks)
=IFERROR(INDEX(ColA,SMALL(IF(ISNA(MATCH(ColA,ColB,0)),ROW(ColA),""),ROWS($1:1))-1),"")
and for Col B items not in Column A:
=IFERROR(INDEX(ColB,SMALL(IF(ISNA(MATCH(ColB,ColA,0)),ROW(ColB),""),ROWS($1:1))-1),"")
The formulas assume that your data starts in row 2 (row 1 would be a label) and the ranges ColA and ColB also start in Row 2
The formulas also assume no blanks in the data. If there are empty cells, then use these formulas:
=IFERROR(INDEX(ColA,SMALL(IF(ISNA(MATCH(ColA,ColB,0))*(ColA<>""),ROW(ColA)),ROWS($1:1))-1),"")
=IFERROR(INDEX(ColB,SMALL(IF(ISNA(MATCH(ColB,ColA,0))*(ColB<>""),ROW(ColB)),ROWS($1:1))-1),"")
Example Image:
Easy with a PivotTable, if you are prepared to rearrange your data somewhat: