I have to compare 2 columns & get the result in another column. I´m using FILTER function but not getting the correct results. I'm sure I must have done some mistake. Can the experts help please?
Scenario - I have a table (source table) with 3 columns - name, C, L. Columns C & L are not filled for all names. In the column 'both´, I want to get the names where both columns C & L are not empty. If one either C or L is empty, both column will be blank. The results should be as shown in the desired output table.
I have used FILTER function, but not getting the required output. Is there a better way to get the desired output?
2nd part is to use dynamic array formula to get the same result.
Source table:
Desired output:
Incorrect result with FILTER formula:
Scenario - I have a table (source table) with 3 columns - name, C, L. Columns C & L are not filled for all names. In the column 'both´, I want to get the names where both columns C & L are not empty. If one either C or L is empty, both column will be blank. The results should be as shown in the desired output table.
I have used FILTER function, but not getting the required output. Is there a better way to get the desired output?
2nd part is to use dynamic array formula to get the same result.
Source table:
excel problems.xlsx | |||||
---|---|---|---|---|---|
O | P | Q | |||
2 | name | C | L | ||
3 | ffafds | ffafds | ffafds | ||
4 | qewq | qewq | |||
5 | tyery | tyery | tyery | ||
6 | ryut | ryut | |||
7 | hjg | hjg | hjg | ||
8 | zvzvc | zvzvc | |||
9 | vnc | vnc | |||
10 | gsdg | gsdg | |||
11 | fhd | fhd | fhd | ||
12 | fjgg | fjgg | fjgg | ||
13 | lghl | lghl | |||
Sheet2 |
Desired output:
excel problems.xlsx | ||||||
---|---|---|---|---|---|---|
O | P | Q | R | |||
2 | name | C | L | both | ||
3 | ffafds | ffafds | ffafds | ffafds | ||
4 | qewq | qewq | ||||
5 | tyery | tyery | tyery | tyery | ||
6 | ryut | ryut | ||||
7 | hjg | hjg | hjg | hjg | ||
8 | zvzvc | zvzvc | ||||
9 | vnc | vnc | ||||
10 | gsdg | gsdg | ||||
11 | fhd | fhd | fhd | fhd | ||
12 | fjgg | fjgg | fjgg | fjgg | ||
13 | lghl | lghl | ||||
Sheet2 |
Incorrect result with FILTER formula:
excel problems.xlsx | ||||||
---|---|---|---|---|---|---|
U | V | W | X | |||
2 | name | C | L | both | ||
3 | ffafds | ffafds | ffafds | ffafds | ||
4 | qewq | qewq | qewq | |||
5 | tyery | tyery | tyery | tyery | ||
6 | ryut | ryut | ryut | |||
7 | hjg | hjg | hjg | hjg | ||
8 | zvzvc | zvzvc | zvzvc | |||
9 | vnc | vnc | vnc | |||
10 | gsdg | gsdg | gsdg | |||
11 | fhd | fhd | fhd | fhd | ||
12 | fjgg | fjgg | fjgg | fjgg | ||
13 | lghl | lghl | lghl | |||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
X3:X13 | X3 | =FILTER($O$3:$O$13,(P3<>"")*(Q3<>"")) |
Dynamic array formulas. |