MS Excel Help (simp...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] MS Excel Help (simple...)

4 Posts
4 Users
0 Reactions
40 Views
Posts: 467
Free Member
Topic starter
 

Hello,

I need to report in a cell 'PASS' if H8-J8 is between -2 and +5 otherwise 'FAIL'

I've got it to work with AND, but would prefer to use IF so I get the words PASS and FAIL rather than the default true/ false.
=AND((H8-J8)>MIN(-2,5),(H8-J8)<MAX(-2,5))

It's hurting my (not too powerful) head this a.m.

Thanks as ever!

Dan


 
Posted : 03/07/2017 10:26 am
Posts: 17273
Free Member
 

=if((h8-j8)<-2,"FAIL",if(h8-j8)>5,"FAIL","PASS")


 
Posted : 03/07/2017 10:30 am
Posts: 12482
Free Member
 

Just put IF around what youhave

=IF(AND((H8-J8)>MIN(-2,5),(H8-J8)<MAX(-2,5)),"PASS","FAIL")


 
Posted : 03/07/2017 10:31 am
Posts: 0
Free Member
 

Just put the if supposition around what you have...

=if(AND((H8-J8)>MIN(-2,5),(H8-J8)<MAX(-2,5)),"pass","fail")


 
Posted : 03/07/2017 10:33 am
Posts: 467
Free Member
Topic starter
 

Thanks!!!


 
Posted : 03/07/2017 11:13 am

6 DAYS LEFT
We are currently at 95% of our target!