Expanding Range in Formula?

J

John Sofillas

The formula below works the way I want it to for cell O5. How can I
open this formula up for a range of cells O5:O20?

=IF(O5>(O22-4*D3),"Bad Data",0)

As always, much appreciated for the advice.
 
N

NBVC

=IF(Sumproduct(--(O5:O20>(O22-4*D3))),"Bad Data",0)

This will return "Bad Data" if any value in O5:O20 is greate
thanO22-4*D

--
NBV

Where there is a will there are many ways.

'The Code Cage' (http://www.thecodecage.com
 
M

M Thompson

Hello-

Can I ask what is the purpose of the two dashes in the formula?

Thanks
 
Top