what is the wrong with this formula always get this error in the the pic attached

1.2k Views Asked by At

excl formula

=IF(OR(B2:D2>10;E2>20);TRUE;FALSE)

2

There are 2 best solutions below

0
JvdV On BEST ANSWER

It looks like you haven't got Microsoft365 which means an array calculation within OR() needs to be CSE-confirmerd (Control+Shift+Enter). For Microsoft365 users this is done by default and your formula would actually work. You could now either use CSE-entering, or circumvent that using other methods to inspect a range of cells. For example using MAX():

=IF(OR(MAX(B2:D2)>10,E2>20),"Special Order","No")
3
Scott Craner On

Use COUNTIF()

=IF(OR(COUNTIF(B2:D2;">"&10);E2>20);TRUE;FALSE)

But the if is not needed it the true output is TRUE or FALSE. Just use the first part:

=OR(COUNTIF(B2:D2;">"&10);E2>20)