IF function

P

pedro_king

Hi, real simple one here for someone who knows excel. I'm creating a simple
spreadsheet for an assignment and need to use the IF function. Basically I
need the cell to display "failure" if a cell = > than 981.2 and I need it to
display the value of that cell if it = <981.2.

So if 980 is imputted, i need it to show 980. If 982 is imputted then i need
it to show FAILURE.

I'd be really greatful of any help, thanks
 
D

David Biddulph

=IF(A2>=981.2,"failure",A2)

You've been inconsistent as to what you want for exactly 981.2 as you said
= and <= so one of the = signs shouldn't be there. If you intended <= (so
that 981.2 gets displayed, rather than being shown as failure, then the >=
in the formula should become >.
 
Top