ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If (cell a2 is greater than 1, but less than B2 - C2, "X") how do (https://www.excelbanter.com/excel-worksheet-functions/32166-if-cell-a2-greater-than-1-but-less-than-b2-c2-%22x%22-how-do.html)

Colin F

If (cell a2 is greater than 1, but less than B2 - C2, "X") how do
 


greg7468


=IF(AND(A21,A2<(B2-C2)),"x")


--
greg7468


------------------------------------------------------------------------
greg7468's Profile: http://www.excelforum.com/member.php...fo&userid=9031
View this thread: http://www.excelforum.com/showthread...hreadid=381588


BenjieLop


greg7468 Wrote:
=IF(AND(A21,A2<(B2-C2)),"x")


Technically, there should be another argument in the above formula,
i.e., the ELSE argument in the IF/THEN statement. One way is


=IF(AND(A21,A2<(B2-C2)),\"X\",\"\")

which will return a blank cell if the A2 conditions are not met.

Regards.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=381588



All times are GMT +1. The time now is 04:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com