Search code examples
excelmathexcel-formulaformulaformula-editor

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


excl formula

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


Solution

  • 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")