Excel 求解决方案 B1中函数为=IF(OR(--A1={1,3,5}),"A","B")

2024-12-28 22:34:47
推荐回答(1个)
回答1:

转换第2位和第3位    

=IF(OR(--MID(A2,2,1)={1,3,5}),"A","B")&IF(OR(--MID(A2,3,1)={1,3,5}),"A","B")

全部转换

=IF(OR(--LEFT(A3)={1,3,5}),"A","B")&IF(OR(--MID(A3,2,1)={1,3,5}),"A","B")&IF(OR(--RIGHT(A3)={1,3,5}),"A","B")