简体   繁体   中英

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!

Try this formula, assuming you are using either O365 or Excel 2021

FORMULA_解决方案

• 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"))

我发现完美的答案:

=FILTER(A1:A5,NOT(LEFT(A1:A5,6)="TC-EVT"))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM