'Excel copy cell from a column if value is starting with Formula
I have this kind of column in my Excel:
A B
gbgdf,
dsfsd,
gdgdf,
TC-EVTgfdsfs,
gdfgd,
I am willing to copy every cell that is NOT starting with 'TC-EVT'
I tried to use different formulas, such as:
LOOKUP
SWITCH
but with no success at all.
I need column B to look like this:
gbgdf,
dsfsd,
gdgdf,
gdfgd,
Thank you!
Solution 1:[1]
Try this formula, assuming you are using either O365 or Excel 2021
• Formula used in cell B1
=FILTER(A1:A5,LEFT(A1:A5,6)<>"TC-EVT")
Or,
• Formula used in cell C1
=FILTER(A1:A5,NOT(LEFT(A1:A5,6)="TC-EVT"))
Solution 2:[2]
THE ANSWER I FOUND TO BE PERFECTLY WORK:
=FILTER(A1:A5,NOT(LEFT(A1:A5,6)="TC-EVT"))
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | PyberGeek |