简体   繁体   中英

Insert X or Y for Column A, B, C, D

What I need is an X placed if the start range (A1:A) equals range (E1:K1) until range (B1:B). Then the same for C and D in the same row. So Y should take place of X if true. What I have tried is =IF(AND($A1<=E$1,$B1>=E$1),"X","") but I cant seem to get it to work for both sets. 在此处输入图片说明

Here is the formula I put in as per the requirement.
The trick was that I split it into two IF function calls one inside the other, there by allowing opportunity for our third value of "".

在此处输入图片说明

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