简体   繁体   中英

Split conditions into two columns in Excel 2010

Does anyone knows how i can split an IF statement which is hosted in one cell? Example One cell contains: IF Condition1 THEN Action1 so i want to: FIRST CELL: IF Condition1 SECOND CELL: THEN Action1

For an IF...THEN... condition in B4:

In C4:

=LEFT(B4,LEN(B4)-SEARCH("THEN",B4)-1)

In D4:

=MID(B4,SEARCH("THEN",B4),500)

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